minimax-h3-image API 价格
所有价格均以 USD 计。对比 APISea 费率与相同计费单位的官方标价。
| Token 类型 | APISea | 官方 | 节省 |
|---|---|---|---|
| 文本输入 每 1M 个 token | $2.36 | $2.68 | −12% |
| 缓存文本输入 每 1M 个 token | $0 | $0 | — |
| 图像输入 每 1M 个 token | $1.57 | $1.79 | −12% |
| 缓存图像输入 每 1M 个 token | $0 | $0 | — |
| 文本输出 每 1M 个 token | $0 | $0 | — |
| 图像输出 每 1M 个 token | $3.93 | $4.46 | −12% |
每次输出的预估费用
| 选项 | APISea | 官方 |
|---|---|---|
| 1K | ≈ $0.0264 | $0.03 |
| 2K | ≈ $0.0264 | $0.03 |
| 4K | ≈ $0.088 | $0.10 |
minimax-h3-image 是什么?
minimax-h3-image 是 MiniMax 的标准图像模型,适用于生成逼真的摄影作品、海报、产品图像和含文字图像。在 APISea 上,开发者可以通过图像生成 endpoint 使用它进行批量生成或基于参考图编辑。该模型接受中文和英文提示词;添加 image_urls 后,请求将切换到编辑模式,最多可使用 16 张参考图。每个请求最多可生成 10 张图像,且默认启用自动提示词增强。
输出控制选项包括宽高比、最高 20 megapixels 的精确像素尺寸、1K / 2K / 4K 分辨率档位,以及 JPEG、PNG 或 WebP 格式。请求以异步方式处理,并返回用于查询状态的 task_id。APISea 按量付费,采用基于 token 的计费方式,且仅对成功的请求收费。预估单张图片费用:1K 约 $0.0264,2K 约 $0.0264,4K 约 $0.088;默认配置的价格比服务提供商的标价低约 12%。
minimax-h3-image 的亮点
图像生成与编辑
根据文本生成图片,或通过 image_urls 传入最多 16 张参考图片,切换到编辑模式。
灵活选择输出尺寸
选择 1K、2K 或 4K 分辨率档位并设置宽高比,也可以指定最高 20 megapixels 的精确像素尺寸。
批量生成图片
每个请求可生成 1 到 10 张图片。建议使用标准模型进行批量生成。
自动优化提示词
默认情况下,模型会将提示词扩展为详细的场景描述。扩展后的文本可在查询结果的 revised_prompt 中查看。
分 4 步调用 minimax-h3-image API
- 01
获取 API 密钥
登录 APISea,充值 $50 起,并在控制台创建一个 sk-sea 密钥。
- 02
设置 base URL
在 SDK 或 HTTP 客户端中将 https://api.apisea.ai/v1 设置为 base URL。
- 03
发送请求
调用 POST /v1/images/generations,并传入 "model": "minimax-h3-image" 及以下参数。
- 04
处理响应
响应中包含 task_id。轮询 GET /v1/tasks/{task_id},直到状态变为 completed,然后下载结果 URL。
curl --request POST \
--url https://api.apisea.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "minimax-h3-image",
"prompt": "A seaside cafe at dusk, photorealistic, warm tones",
"size": "16:9",
"resolution": "2K",
"n": 1
}'参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
|---|---|---|---|---|
model | string | 必填 | — | Image generation model name. Must be `minimax-h3-image`. |
nsfw_check | boolean | 可选 | false | Whether to run content moderation before submitting the image task. |
prompt | string | 必填 | — | Text description for image generation or editing. |
image_urls | string[] | 可选 | — | Array of reference images, up to `16`. Passing this field automatically switches to editing mode. |
size | string | 可选 | auto | Aspect ratio or exact pixel dimensions of the output image. |
resolution | string | 可选 | 4K | Resolution tier. Combined with the aspect ratio, it determines the actual output pixels. |
n | integer | 可选 | 1 | Number of images to generate, from `1` to `10`. |
prompt_optimizer | boolean | 可选 | true | Whether to automatically expand the prompt. |
output_format | string | 可选 | jpeg | Output file format. |
output_compression | integer | 可选 | 95 | Compression quality, from `0` to `100`. Has no effect on `png`. |
watermark | boolean | 可选 | false | Whether to add a visible AI-generated watermark to the image. Does not affect the implicit marker in the image metadata. |
minimax-h3-image 的应用场景
产品视觉工作流
构建可生成产品图片的工具,或支持上传参考图片以编辑现有视觉素材。
海报创作工具
创作海报和带文字的图片,并在提示词中指定所需的版式和文案。
写实图片生成
提供由文本驱动的摄影图生成,并通过输出尺寸控制适配不同构图。
批量创意内容制作
支持每个请求生成多张图片,满足团队批量制作营销活动或商品目录视觉素材的需求。
获得更好结果的技巧
- 01
明确设置分辨率
不需要 4K 时,请将 resolution 设为 2K。省略该参数时默认使用 4K,预估单张费用约为 $0.088,而 2K 约为 $0.0264。
- 02
选择一种尺寸设置方式
使用 size 设置宽高比并指定分辨率,或者仅指定精确像素尺寸而不设置分辨率。将精确尺寸与分辨率同时使用会返回 400 错误。
- 03
控制提示词扩展
将 prompt_optimizer 设为 false,即可根据原始文本生成。此设置仅适用于文生图,且必须明确指定 size。
- 04
查询任务状态
保存返回的 task_id,并用它查询状态。需要查看自动扩展后的提示词时,请读取查询结果中的 revised_prompt。
限制与须知
提示词去除首尾空白后必须包含 1–32,000 个字符;编辑模式最多接受 16 张参考图片。
处理以异步方式进行,每个请求支持输出 1–10 张图片。
quality、style、seed、negative_prompt、background 和 mask_url 参数不受支持,会被忽略。
minimax-h3-image API 常见问题
在 APISea 上使用 minimax-h3-image 的费用是多少?
预估单张图片费用:1K 约 $0.0264,2K 约 $0.0264,4K 约 $0.088。计费基于 token,而非按固定的单张图片费用收取;默认配置的价格比服务提供商的标价低约 12%。
如何调用 minimax-h3-image?
向 https://api.apisea.ai/v1/images/generations 发送 POST 请求,使用 Bearer Token 身份验证,将 model 设为 minimax-h3-image,并提供必填的 prompt。异步响应会返回用于查询状态的 task_id。
minimax-h3-image 支持图片编辑吗?
支持。传入 image_urls 会自动切换到编辑模式,最多可接受 16 张参考图片;图片需使用可公开访问的 HTTP(S) 直链或内联 Base64 图片数据。
支持哪些输出参数?
使用 size 设置宽高比或精确像素尺寸,使用 resolution 选择 1K / 2K / 4K 分辨率档位,并使用 n 设置生成 1–10 张图片。输出格式包括 JPEG、PNG 和 WebP;指定精确像素尺寸时不要传入 resolution。
我可以将生成的图像用于商业用途吗?
商业用途须遵守服务提供商的条款。在将生成结果用于商业产品或营销活动前,请查阅适用的 MiniMax 条款。
标准版与高速版有何区别?
标准版 minimax-h3-image 单位价格更低,建议用于批量生成。高速版生成速度更快,适合对延迟敏感的场景,但其图片输入和输出的单位价格均为标准版的 2 倍。