GPT Image 2 API 面向生产级图像生成工作流,适合提示词创作、参考图编辑和可预测的 API payload。你可以用它生成活动视觉、商品图、社媒素材和设计稿,并继续沿用 SdanceAI 的生成流程。
当前集成提供 Text to Image 和 Image to Image 两种模型类型,支持 1K、2K、4K 价格档位,并覆盖常用的方图、竖图、横图和肖像比例。
最低成本从 $0.015/image
1K: 3 积分 - 文生图 - 单次生成固定价格
2K: 5 积分 - 文生图 - 单次生成固定价格
4K: 8 积分 - 文生图 - 单次生成固定价格
美元估算按最佳年付套餐 $0.005/积分 计算。最终计费跟随所选分辨率和模型类型。
核心请求字段
用精简 payload 管理提示词、源图、比例、分辨率、回调和安全设置。
{
"model": "gpt-image-2-text-to-image",
"input": {
"prompt": "A cinematic night city poster with neon reflections on a rainy street.",
"aspect_ratio": "auto"
}
}使用 Text to Image 生成
本页的 Playground、请求示例、请求字段和价格都会跟随当前选择的模型类型变化。
查看 API 详细文档打开完整 API 文档,查看接口、鉴权、任务轮询和 payload 细节。 /models/gpt-image-2.md
promptstringText prompt. Required, maximum 20,000 characters.aspect_ratioenumThe aspect ratio of the generated image is set to auto by default. (auto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:21)resolutionenumImage resolution: Note: Images with a 1:1 aspect ratio cannot be converted to 4K images. Images with the aspect ratio set to "auto" or without a specified aspect ratio parameter will only be converted to 1K images; otherwise, the task will fail to create. (1K, 2K, 4K)GPT Image 2 API 为图像工作流带来的能力
页面按 API 优先的结构组织:先测试模型,再理解字段,最后进入集成。
文生图创作
把结构化提示词转成海报、广告、缩略图、概念图和商品场景等可用于生产的视觉素材。
参考图编辑
使用输入图片保留主体上下文,同时修改风格、背景、构图、光影或商品呈现。
分辨率档位
在 1K、2K、4K 间选择,平衡迭代成本、预览质量和最终素材清晰度。
API 就绪 payload
在一个可预测请求中管理模型 ID、回调地址、提示词、输入图片 URL、画面比例和分辨率字段。
从提示词测试到图像 API 请求
适合团队先验证图像质量,再把生成能力接入应用或内容生产管线。
1. 选择模式
新建视觉素材选择 Text to Image;需要参考图引导编辑时选择 Image to Image。
2. 提交生成
使用账户密钥、模型 ID、提示词、可选输入图 URL、画面比例和分辨率调用 API。
3. 轮询并使用
跟踪任务直到成功,然后把生成图像用于应用、活动页面或素材库。
你可以用 GPT Image 2 API 创作什么
当产品需要稳定、可重复的高质量图像生成,而不是一次性手动导出时,可以直接接入 API。
社区公开的 GPT Image 2 成功案例
查看数据库中公开且已成功生成的 GPT Image 2 作品,打开案例可继续查看提示词、参数和生成结果。

GPT Image-2 - Text to Image
舊官員至今仍然不願悔改。持續讓魔鬼撒旦駕馭他們的身體:〔魔成肉身〕。 ▲上述文字意境的繪圖風格: 社論漫畫插圖,黑色墨水勾勒輪廓,柔和的水彩渲染,交叉排線陰影,邊緣呈現暈染效果; 採用深色墨水陰影點綴。 使用MBM素描紙,高品質的進口素描紙。纖維略長且質地結實,紙面有明顯且獨特的橫條紋理,耐摩擦、抓粉力極強,

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, suns and one complete water-globe-planet is prominent, no land on the planet 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants. They are similar to man, not ugly. 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated. The shows the son of God making clothing for Adam and Eve while Adam and Eve are sacrificing a lamb on an alter.

GPT Image-2 - Text to Image
I stationary clipart graphics/icons to symbolically represent one stage of the universes history. More like iconic clipart. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; The beginning of created things. The foundation of the universe, suns and one complete water-globe-planet is prominent, no land on the planet

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, suns and the water-globe-planet is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants. They are similar to man, not ugly. 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated. The shows the son of God making clothing for Adam and Eve while Adam and Eve are sacrificing a lamb on an alter.

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, plants suns, and the creation only a water planet globe is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women. Eve is clothed 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated.

GPT Image-2 - Text to Image
I need 11 distinctly separate stationary clipart graphics/icons to symbolically represent these stages of the universes history spaced out on the canvas. More like iconic clipart. The Father looks the same as the son, but give the Father white hair. You can see the son's face. Can you make them as big as you can on an A3 size minimum, high resolution. Add no text or numbers. less detailed pictorial and more icons; 1. God the Father - A majestic being of light, has a form and feature like man but face diffused by light. God the Father Is represented by His Spirit. His spirit is the light that hides His face. The Holy Spirit is an essence/power not a person 2. Son of God. First Begotten. Has some original essence from the Father / like metal casting. 3. Plan of redemption conceived and the anointing of the Son of God with the Father’s spirit. Foreordained. 4. The beginning of created things. The foundation of the universe, plants suns, and the creation also of the water-globe called earth is prominent 5. The creation of Angels. Lucifer was created first. 6. Other worlds and other inhabitants 7. Planning of the creation of man between the Father and the Son 8. Lucifers rebellion 9. The creation of man and women 10. The Fall of man by deception of the snake. 11. The plan of redemption reconfirmed and activated.
面向真实图像 API 工作流构建
账户级执行
用户登录后提交任务,并通过现有 SdanceAI 生成流程消耗积分。
输入图片处理
Image to Image 接收源图片 URL,团队可以保留自己的素材管线,再生成新的版本。
按分辨率控制成本
先用 1K 快速迭代,确认提示词和视觉方向后,再切换到 2K 或 4K 生成最终素材。
GPT Image 2 API 常见问题
GPT Image 2 API 最适合什么场景?
它适合提示词图像生成和参考图编辑,包括商品图、广告图、社媒素材、海报和设计稿。
Text to Image 和 Image to Image 有什么区别?
Text to Image 只从提示词开始生成。Image to Image 使用一张或多张源图 URL 加提示词,更适合编辑、变体和保留参考关系的工作流。
支持哪些分辨率?
当前 API 配置包含 1K、2K 和 4K 价格档位。低分辨率适合迭代,高分辨率适合最终素材。
支持哪些画面比例?
可用比例包括 auto、1:1、9:16、16:9、4:3 和 3:4。建议在最终生成前按目标渠道选择比例。
Image to Image 可以使用多少张输入图?
当前图生图 payload 支持输入图片 URL 数组,最多 16 张源图。
接入前在哪里测试?
可以直接使用本页 Playground 测试提示词、输入图片 URL、比例、分辨率和 API payload。
GPT Image 2 API 可以用于商业工作流吗?
本页面面向生产图像工作流配置。商业使用前,请确认账户套餐、积分余额、模型可用性以及适用的内容政策要求。
API 支持回调吗?
支持。请求 schema 包含可选 callback URL,你的服务可以接收任务完成通知。
如何控制成本?
用 1K 做提示词探索和批量草稿,筛选出满意方向后,再用 2K 或 4K 重新生成最终版本。
可以编辑现有商品照片吗?
可以。使用 Image to Image,传入源图 URL,并在提示词中明确需要调整的背景、光影、构图或风格。