minimax-h3-image API 定價
所有價格皆以 USD 計價。比較 APISea 費率與相同計費單位的官方牌價。
| Token 類型 | APISea | 官方 | 節省 |
|---|---|---|---|
| 文字輸入 每 1M tokens | $2.36 | $2.68 | −12% |
| 快取文字輸入 每 1M tokens | $0 | $0 | — |
| 圖片輸入 每 1M tokens | $1.57 | $1.79 | −12% |
| 快取圖片輸入 每 1M tokens | $0 | $0 | — |
| 文字輸出 每 1M tokens | $0 | $0 | — |
| 圖片輸出 每 1M tokens | $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 key
登入 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?
使用 Bearer Token 驗證,向 https://api.apisea.ai/v1/images/generations 傳送 POST 請求,並將 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 倍。