Ideogram: Ideogram 4.5
ideogram-4-5- 價格
- 起 $0.008
- 模態
- 圖片
關於 Ideogram 4.5
Ideogram 4.5 是 Ideogram 用於生成與編輯圖片的影像模型,專為反覆迭代的工作流程而設計,確保未選取的區域在多次編輯後保持不變。它能以 1K 和 2K 預設值將文字轉換為圖像,並可使用最多四張額外參考圖及選用的遮罩來編輯原始圖像。當圖片需要經過多次修改時,這是最佳選擇。
適用場景
- 精確編輯功能會直接從原始來源複製未更動的像素,因此多次編輯不會導致影像品質下降。
- 遮罩可限制變更範圍:黑色標記需要編輯的區域,白色則標記需要保留的區域。
- 最多可使用四張參考圖來引導編輯,若同時提供遮罩,則最多可使用三張。
- 編輯結果將以原始圖像的寬度和高度回傳,而非調整畫布大小。
- 編輯指令可以是簡單的句子,也可以是結構化的 JSON。
其他選擇建議
- 編輯的長寬比必須介於 1:6 到 6:1 之間,這排除了極端的橫幅比例。
- 使用遮罩時,參考圖的上限會降至三張,因為遮罩佔用了一個名額。
- 這是一個靜態影像模型;動態影像、3D 和向量輸出需要使用其他模型。
入門指南
建立 API 金鑰
請至 Console 建立金鑰,即可在平台上使用各類模型。
發送您的第一個請求
複製您所選語言的範例,並針對端點執行它。
影像編輯文字生成圖片TokenLab 端點POST/v1/images/generationscurl -X POST "https://api.tokenlab.sh/v1/images/generations" \ -H "Authorization: Bearer sk-xxx" \ -H "Content-Type: application/json" \ -d '{ "operation": "image-to-image", "model": "ideogram-4-5", "prompt": "A minimalist product photo of matte black headphones on a soft blue background.", "image_url": "https://example.com/source.png" }'
參數設定
影像編輯
| 參數 | 可選值與限制 | 預設值 | 說明 |
|---|---|---|---|
height | 未提供 | 未提供 | For source-image requests, supply width and height together as integers, each at least 256 and divisible by 32, with width*height <= 4194304 and aspect ratio from 1:6 to 6:1. Omitted dimensions have no shared fixed default: one delivery path selects a supported size automatically, while another uses 1024x1024. |
image | 未提供 | 未提供 | Multipart source-image file input. Repeat image or image[] for multiple files. Source inputs are combined into one ordered list of 1 to 5 images. The first image is edited; the remaining images guide the edit. Use JPEG, PNG, or WEBP, at most 25 MiB per image. Source aspect ratios must be from 1:6 to 6:1. |
image_url | 未提供 | 未提供 | One source-image URL. Source inputs are combined into one ordered list of 1 to 5 images. The first image is edited; the remaining images guide the edit. Use JPEG, PNG, or WEBP, at most 25 MiB per image. Source aspect ratios must be from 1:6 to 6:1. |
image_urls | 未提供 | 未提供 | A list of source-image URLs. Source inputs are combined into one ordered list of 1 to 5 images. The first image is edited; the remaining images guide the edit. Use JPEG, PNG, or WEBP, at most 25 MiB per image. Source aspect ratios must be from 1:6 to 6:1. |
images | 輸入數量:≥ 1, ≤ 5 | 未提供 | Limits apply when this input is supplied. Image aliases are combined into one input image list; the limit applies to the combined list. |
n | 1, 2, 3, 4 | 1 | Integer from 1 to 4; default 1. Counts 2 to 4 require PNG output and a delivery path that supports multiple results. A combination with no compatible delivery path fails before generation. |
operation必填 | 未提供 | 未提供 | 未提供 |
output_format | png, jpeg, webp | 未提供 | Use png, jpeg, or webp. JPEG and WebP require n=1. Omitted output_format has no shared fixed encoding: delivery paths return PNG or JPEG. Set it explicitly when the encoding matters. The spelling jpg is not accepted by the public endpoint. |
prompt | 未提供 | 未提供 | Required non-blank prompt or edit instruction, from 1 to 10000 characters. Prompts above 10000 characters are not supported by either delivery path. |
quality | very_low, low, medium, high | very_low | 未提供 |
seed | ≥ 0, ≤ 2147483647 | 未提供 | Optional integer from 0 to 2147483647. Omit it to let the model choose a random seed. No fixed seed default is asserted. |
width | 未提供 | 未提供 | For source-image requests, supply width and height together as integers, each at least 256 and divisible by 32, with width*height <= 4194304 and aspect ratio from 1:6 to 6:1. Omitted dimensions have no shared fixed default: one delivery path selects a supported size automatically, while another uses 1024x1024. |
文字生成圖片
| 參數 | 可選值與限制 | 預設值 | 說明 |
|---|---|---|---|
height | 未提供 | 未提供 | Without source images, supply width and height together as one of these exact pixel pairs: 2048x2048, 1440x2880, 2880x1440, 1664x2496, 2496x1664, 1792x2240, 2240x1792, 1440x2560, 2560x1440, 1600x2560, 2560x1600, 1728x2304, 2304x1728, 1296x3168, 3168x1296, 1152x2944, 2944x1152, 1248x3328, 3328x1248, 1280x3072, 3072x1280, 1024x3072, 3072x1024, 1024x1024, 896x1120, 1120x896, 864x1152, 1152x864, 832x1248, 1248x832, 800x1280, 1280x800, 720x1280, 1280x720, 720x1440, 1440x720. Omitted dimensions have no shared fixed default: one delivery path selects a supported size automatically, while another uses 1024x1024. |
images | 未提供 | 未提供 | Text-to-image does not accept source images. Do not send this field for that operation. Use one of this model's declared image operations for source-image requests. |
n | 1, 2, 3, 4 | 1 | Integer from 1 to 4; default 1. Counts 2 to 4 require PNG output and a delivery path that supports multiple results. A combination with no compatible delivery path fails before generation. |
operation必填 | 未提供 | 未提供 | 未提供 |
output_format | png, jpeg, webp | 未提供 | Use png, jpeg, or webp. JPEG and WebP require n=1 and quality=low or medium. High requires PNG output. Omitted output_format has no shared fixed encoding: delivery paths return PNG or JPEG. Set it explicitly when the encoding matters. The spelling jpg is not accepted by the public endpoint. |
prompt | 未提供 | 未提供 | Required non-blank prompt or edit instruction, from 1 to 10000 characters. Prompts above 10000 characters are not supported by either delivery path. |
quality | low, medium, high | low | Use low, medium, or high; default low. The gateway sends the selected tier explicitly. High requires PNG output. The text-to-image operation rejects source images; use operation=image-edit for source-image editing. |
seed | ≥ 0, ≤ 2147483647 | 未提供 | Optional integer from 0 to 2147483647. Omit it to let the model choose a random seed. No fixed seed default is asserted. |
width | 未提供 | 未提供 | Without source images, supply width and height together as one of these exact pixel pairs: 2048x2048, 1440x2880, 2880x1440, 1664x2496, 2496x1664, 1792x2240, 2240x1792, 1440x2560, 2560x1440, 1600x2560, 2560x1600, 1728x2304, 2304x1728, 1296x3168, 3168x1296, 1152x2944, 2944x1152, 1248x3328, 3328x1248, 1280x3072, 3072x1280, 1024x3072, 3072x1024, 1024x1024, 896x1120, 1120x896, 864x1152, 1152x864, 832x1248, 1248x832, 800x1280, 1280x800, 720x1280, 1280x720, 720x1440, 1440x720. Omitted dimensions have no shared fixed default: one delivery path selects a supported size automatically, while another uses 1024x1024. |
Fields outside this contract are rejected.
quality selects the price tier: text-to-image low (default), medium, high; image-edit very_low (default), low, medium, high.
定價
Verified 價格用於 Verified,多數模型更便宜;Official 價格是模型廠商公布的價格,用於更穩定的 Official。Auto 按最終完成請求的線路計價。
文字生成圖片
每張圖片- Official 價格
- $0.03
- Verified 價格
- —
- 折扣
- —
文字生成圖片 · 品質 · 低
每張圖片- Official 價格
- $0.03
- Verified 價格
- —
- 折扣
- —
文字生成圖片 · 品質 · medium
每張圖片- Official 價格
- $0.06
- Verified 價格
- —
- 折扣
- —
文字生成圖片 · 品質 · 高
每張圖片- Official 價格
- $0.10
- Verified 價格
- —
- 折扣
- —
影像編輯
每張圖片- Official 價格
- $0.008
- Verified 價格
- —
- 折扣
- —
影像編輯 · 品質 · very_low
每張圖片- Official 價格
- $0.008
- Verified 價格
- —
- 折扣
- —
影像編輯 · 品質 · 低
每張圖片- Official 價格
- $0.03
- Verified 價格
- —
- 折扣
- —
影像編輯 · 品質 · medium
每張圖片- Official 價格
- $0.06
- Verified 價格
- —
- 折扣
- —
影像編輯 · 品質 · 高
每張圖片- Official 價格
- $0.22
- Verified 價格
- —
- 折扣
- —
| Official 價格每張圖片 | Verified 價格每張圖片 | 折扣 | |
|---|---|---|---|
| 文字生成圖片 | $0.03 | — | — |
| 文字生成圖片 · 品質 · 低 | $0.03 | — | — |
| 文字生成圖片 · 品質 · medium | $0.06 | — | — |
| 文字生成圖片 · 品質 · 高 | $0.10 | — | — |
| 影像編輯 | $0.008 | — | — |
| 影像編輯 · 品質 · very_low | $0.008 | — | — |
| 影像編輯 · 品質 · 低 | $0.03 | — | — |
| 影像編輯 · 品質 · medium | $0.06 | — | — |
| 影像編輯 · 品質 · 高 | $0.22 | — | — |
使用量與活動
成功率是請求完成的比例;延遲是一次完整回應所需的時間,P95 表示 95% 的請求在該時間內完成。
用量與可用性
過去 24 小時- 請求數
- 成功率
- P95 延遲
- 總 Token 用量
資料基於彙總的使用者請求,不包含狀態檢查。
直接在 Console 裡試
在 Console 中開啟 Ideogram 4.5,並準備好編輯或發送提示詞。
協助我使用 ideogram-4-5 透過 /v1/images/edits 執行 image-edit 建立圖像,並顯示結果、成本與相關限制。
應用情境
適合場景- 文生圖
產品修圖
在多次編輯過程中重新為包包上色、更換標籤或重新調整產品照的光線,同時保持照片其餘部分與原始拍攝完全一致。
行銷活動變體
以一張核准的主視覺圖為基礎,僅編輯文案區域或背景,即可製作出在地化或季節性的版本。
室內風格重塑
遮罩室內照片中的沙發或牆面,並將其替換為參考項目,同時保持房間其餘部分不變。
提示詞範例
將照片中的夾克換成深綠色燈芯絨,並保留臉部、姿勢和背景不變。
一張極簡主義護膚品海報,霧面奶油色背景,產品瓶身置中,標題為「Slow Mornings」,使用細襯線字體。
使用隨附的骨架參考圖,讓舞者擺出左臂抬起的姿勢,並保留攝影棚背景。
FAQ
Ideogram 4.5 最擅長什麼?
迭代編輯。Ideogram 的設計初衷是讓重複的變更保持未選取區域的完整性,這有助於產品修圖、重新打光、重新上色、文字替換和家具更換。它也能從文字生成新圖像。
Ideogram 4.5 支援遮罩嗎?
支援。請提供一張灰階遮罩,其中黑色為要變更的區域,白色為要保留的區域。使用遮罩的請求可在原始圖像之外,額外攜帶最多三張參考圖。
精確編輯(Precise edit)有什麼作用?
它會保留編輯未顯著更動區域的像素,直接從原始圖像精確複製,並以原始寬度和高度回傳輸出結果。這能防止多輪編輯導致影像偏移。
文字轉圖像提供哪些輸出尺寸?
目錄中描述了用於文字生成的 1K 和 2K 預設值。編輯功能會保留原始圖像的尺寸,因此您的輸入解析度決定了編輯後的輸出結果。
Ideogram 4.5 的費用是多少?
在 TokenLab 上,Ideogram 4.5 價格為 $0.008-$0.22 每張圖片。完整明細見上方價格表。 價格因計費單位、規格和用量而異。請在模型的詳細定價中比較相同條件下的費率;單一費率不代表總價。
Ideogram 4.5 應該使用哪一個端點?
請使用 https://api.tokenlab.sh/v1/images/edits 進行 Ideogram 4.5 的呼叫。下方的請求範例展示了對應的程式碼格式。
Ideogram 4.5 支援哪些操作?
Ideogram 4.5 支援 影像編輯, 文字生成圖片。請在上方選擇一項操作以查看其端點與請求範例。
比較 Ideogram 4.5
來源
更新於 2026年10月2日