Newshot
Account

MiniMax H3 Image 与 Highspeed 上线 AI Gateway

AI summary

MiniMax H3 Image 和 MiniMax H3 Image Highspeed 现已在 AI Gateway 上线。用户用一个 API key 即可文生图或编辑已有图片,无需单独的 MiniMax 账号,两款模型均支持自定义尺寸与宽高比,包括 2K 和 4K 输出。Highspeed 版本生成更快,生成与编辑选项相同。

Translation(model translation, not the source's own text)
题图
题图

MiniMax H3 Image 和 MiniMax H3 Image Highspeed 现已在 AI Gateway 上线。只需一个 API key、无需单独的 MiniMax 账号,即可从文本生成图像或编辑已有图像。

两个模型都支持自定义尺寸和宽高比,包括 2K 和 4K 输出。用文本 prompt 创建产品视觉图或插画,再把图像连同指令传回去,即可更改颜色、主体或构图。Highspeed 变体提供更快的生成速度,生成和编辑选项与前者相同。

使用 minimax/minimax-h3-image 或 minimax/minimax-h3-image-highspeed 作为模型名:


        import { writeFile } from 'node:fs/promises';import { generateImage } from 'ai';
const { image } = await generateImage({  model: 'minimax/minimax-h3-image',  prompt: 'A blue ceramic vase with wildflowers on a sunlit wooden table.',  size: '2048x2048',  maxRetries: 0,  providerOptions: { minimax: { outputFormat: 'png' } },});
await writeFile('image.png', image.uint8Array);
      

要编辑生成的图像,把它连同指令一起传回去:


        const { image: editedImage } = await generateImage({  model: 'minimax/minimax-h3-image',  prompt: {    text: 'Change the vase to terracotta and keep the flowers and setting.',    images: [image.uint8Array],  },  size: '2048x2048',  maxRetries: 0,  providerOptions: { minimax: { outputFormat: 'png' } },});
await writeFile('edited-image.png', editedImage.uint8Array);
      

两个模型还支持兼容 OpenAI 的 /v1/images/generations 和 /v1/images/edits 路由。详见图像生成指南。

在模型 playground 中试用 MiniMax H3 Image。

AI Gateway 提供统一的 API,用于调用模型、跟踪用量与成本,并用一个 API key 管理访问权限。可在 dashboard 中查看请求和支出。

AI Gateway 按提供商定价计费,不加价,也不收取推理平台费。详见 AI Gateway 定价。

你可以查看 AI Gateway 上所有可用的图像模型。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗