Vercel News
MiniMax H3 Image and Highspeed now available on AI Gateway
8.5内容质量
TL;DR · AI 摘要
Vercel宣布MiniMax H3 Image和Highspeed模型现已通过AI Gateway提供,支持文本生成图像和编辑功能,无需单独账户。
核心要点
- MiniMax H3支持2K/4K输出及图像编辑功能,通过单个API密钥调用
- 提供OpenAI兼容的/v1/images/generations和/v1/images/edits接口
- AI Gateway实现统一API管理,无平台费用且反映供应商定价
结构提纲
按章节快速跳转。
思维导图
用一张图看清主题之间的关系。
查看大纲文本(无障碍 / 无 JS 友好)
- MiniMax H3模型发布
- 核心功能
- 文本生成图像
- 图像编辑
- 2K/4K输出
- 技术实现
- Node.js SDK示例
- OpenAI兼容接口
- 商业特性
- AI Gateway平台
- 零平台费用
金句 / Highlights
值得收藏与分享的关键句。
Highspeed变体在保持生成和编辑选项的同时提供更快的生成速度
通过单个API密钥即可调用模型,无需单独MiniMax账户
AI Gateway实现使用追踪、成本管理及访问控制的统一API平台
#AI Gateway#图像生成#MiniMax#API
打开原文MiniMax H3 Image 和 Highspeed 现已上线 AI Gateway - Vercel
MiniMax H3 Image 和 MiniMax H3 Image Highspeed 现已上线 AI Gateway。通过一个 API 密钥即可从文本生成图片或编辑现有图片,无需单独的 MiniMax 账户。
两个模型均支持自定义尺寸和宽高比,包括 2K 和 4K 输出。使用文本提示生成产品视觉图或插画,然后通过指令将图片返回以更改颜色、主体或构图。Highspeed 版本在保持相同生成和编辑功能的同时提供更快的生成速度。
使用以下模型名称:
AI SDK
AI CLI
code
1
import
{
writeFile
}
from
'node:fs/promises'
;
2
import
{
generateImage
}
from
'ai'
;
3
4
const
{
image
}
=
await
generateImage
(
{
5
model
:
'minimax/minimax-h3-image'
,
6
prompt
:
'A blue ceramic vase with wildflowers on a sunlit wooden table.'
,
7
size
:
'2048x2048'
,
8
maxRetries
:
0
,
9
providerOptions
:
{
minimax
:
{
outputFormat
:
'png'
}
}
,
10
}
)
;
11
12
await
writeFile
(
'image.png'
,
image
.
uint8Array
)
;复制给代理
查看模型详情
↗
要编辑生成的图片,请通过指令将图片传回:
code
1
const
{
image
:
editedImage
}
=
await
generateImage
(
{
2
model
:
'minimax/minimax-h3-image'
,
3
prompt
:
{
4
text
:
'Change the vase to terracotta and keep the flowers and setting.'
,
5
images
:
[
image
.
uint8Array
]
,
6
}
,
7
size
:
'2048x2048'
,
8
maxRetries
:
0
,
9
providerOptions
:
{
minimax
:
{
outputFormat
:
'png'
}
}
,
10
}
)
;
11
12
await
writeFile
(
'edited-image.png'
,
editedImage
.
uint8Array
)
;两个模型还支持兼容 OpenAI 的 /v1/images/generations 和 /v1/images/edits 路由。详情请参阅图像生成指南。
在模型游乐场中试用 MiniMax H3 Image 。
AI Gateway 提供统一的 API 用于调用模型、跟踪使用情况和成本,并通过一个 API 密钥管理访问权限。在仪表板中查看请求和支出。
AI Gateway 反映供应商定价,无任何附加费用或平台费用。详情请参阅 AI Gateway 定价。
您可以在 AI Gateway 上查看所有可用的图像模型。 /think