Sora

GPT Image 2 API

图像 APIHOT

GPT Image 2 API 面向生产级图像生成工作流,适合提示词创作、参考图编辑和可预测的 API payload。你可以用它生成活动视觉、商品图、社媒素材和设计稿,并继续沿用 SdanceAI 的生成流程。

当前集成提供 Text to Image 和 Image to Image 两种模型类型,支持 1K、2K、4K 价格档位,并覆盖常用的方图、竖图、横图和肖像比例。

模型类型:
价格

最低成本从 $0.015/image

当前模型
Text to Image

1K: 3 积分 - 文生图 - 单次生成固定价格

2K: 5 积分 - 文生图 - 单次生成固定价格

4K: 8 积分 - 文生图 - 单次生成固定价格

美元估算按最佳年付套餐 $0.005/积分 计算。最终计费跟随所选分辨率和模型类型。

生成图片
提交后生成记录会显示在这里
API 输入

核心请求字段

用精简 payload 管理提示词、源图、比例、分辨率、回调和安全设置。

请求 JSON
{
  "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 preview 1
imageGPT Image-2

GPT Image-2 - Text to Image

文章标题:org_b_admin 前台隔离测试标题 20 核心关键词:org_b_admin 测试关键词 20 文章摘要:org b admin 前台隔离测试标题 20 核心摘要 文档类型 :面向决策的榜单型对比文章,适合快速筛选、摘要引用和方案比较。 推荐对象 :正在评估 org b admin 测试关键词 20 相关方案的产品、技术、测试或运营团队,尤其是需要做前台隔离、环境区分或权限边界验证的人群。 TOP Pick : 方案1:独立前台隔离 + 统一后台管控 。它通常在 请生成一张文章封面图,横向构图,适合资讯/博客封面,主体明确,真实、清晰、专业,不要出现文字、水印或 logo。

2026年6月5日查看详情
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

GPT Image-2 - Text to Image

聖人都是窮光蛋。 姜子牙釣的不是魚,是周文王。 諸葛亮等的不是雨,是劉備。 孔子週遊18年,餓到絕糧。 21世紀的聖人,也在茅屋等一個人。 但他們手裡永遠握著光。

2026年5月11日查看详情
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

GPT Image-2 - Text to Image

拍攝一張金色時刻的暖色調光線,模特是一位美麗的女士,使用提供的照片中的面部特徵和髮型。她身穿一件奢華的黑色蕾絲吊帶,袖子上有一個時尚的鏤空設計。優雅自信的姿態,她回眸一瞥,眼神優雅而神秘。她有一雙灰色的眼睛,一頭烏黑的長髮如瀑布般傾瀉而下。

2026年5月6日查看详情
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

GPT Image-2 - Text to Image

Female-oriented Chinese web novel cover, romantic military marriage story, 1980s Chinese period romance, soft anime illustration style, manga promotional poster style, vertical book cover composition, close-up portrait of the main couple, title theme “替嫁糙汉军官后,娇娇军医被宠透”, author “顾翠微”. An anime-style illustration featuring a young couple in a warm nostalgic military romance setting. On the left, a tall rugged young military officer with short slightly messy black hair, sun-tanned skin, sharp eyebrows, deep dark eyes, and a faint restrained smile. He has a masculine, rough, protective temperament, wearing a fictional retro green military-style jacket with no real military insignia or political symbols. His body is angled slightly away, but his eyes look toward the viewer with calm confidence and hidden tenderness. To the right and slightly in front of him, a delicate young female military doctor with fair soft skin, large expressive dark eyes, and long black hair tied neatly with a few gentle loose strands. She wears a light cream blouse under a simple white medical coat, holding a vintage medical kit close to her chest. Her expression is shy, gentle, and slightly nervous, with a soft blush, but her eyes also reveal quiet resilience and kindness. The male officer stands close behind her in a protective posture, creating a strong contrast between his rugged strength and her soft medical beauty. Their relationship feels intimate but restrained, sweet but not overly explicit, full of hidden affection, arranged marriage romance, protective love, healing romance, “rough military husband spoils delicate doctor wife” atmosphere. Background: a soft blurred retro military compound and small-town hospital courtyard, pale sky, warm sunlight, faint green trees, old wooden windows, subtle nostalgic 1980s Chinese period details. The composition focuses on their faces and upper bodies, romantic close-up portrait, gentle pastel colors mixed with warm cream, soft green, pale blue, and light peach tones. Soft diffused lighting, warm backlight, dreamy atmosphere, shallow depth of field, clean and beautiful female-oriented web novel cover style. High-quality anime illustration, delicate line art, beautiful facial features, expressive eyes, soft romantic atmosphere, elegant commercial novel cover, popular Chinese romance manhua style, warm and sweet emotional tension, vertical composition, space reserved at the top for the book title and at the bottom for the author name, high detail, 4K, polished promotional art.

2026年5月5日查看详情
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

GPT Image-2 - Text to Image

Female-oriented Chinese web novel cover, romantic military marriage drama, 1980s Chinese period romance, cinematic TV drama poster style, vertical book cover composition, title theme “替嫁糙汉军官后,娇娇军医被宠透”. A delicate young female military doctor, soft and beautiful, fair translucent skin, gentle yet resilient eyes, black hair neatly tied with a few loose strands, wearing a clean white medical coat over a light-colored blouse, holding a vintage medical kit in her hands. Beside her stands a tall rugged military officer, masculine, broad shoulders, sun-tanned skin, sharp jawline, calm and protective expression, wearing a fictional retro military-style uniform with no real insignia, slightly rough but deeply affectionate temperament. The male officer stands close behind her in a protective posture, one hand lightly holding her wrist or shielding her from the wind, creating a strong contrast between his rugged strength and her soft medical beauty. Their expressions are restrained but full of hidden affection, intimate but not overly explicit, sweet tension, arranged marriage romance, protective love, healing romance, warm and emotional atmosphere. Background: a retro military compound or small-town hospital in the 1980s, muted green walls, old wooden windows, warm sunset light, faint shadows of military barracks and trees in the distance, subtle nostalgic Chinese period details, clean and cinematic environment. Soft golden sunlight mixed with gentle backlight, shallow depth of field, realistic skin texture, natural facial details, high-end romantic drama poster look, emotional but restrained, warm, sweet, protective, dramatic composition. Ultra-realistic, cinematic still, official TV drama poster style, 85mm movie lens, shallow depth of field, soft background blur, delicate natural skin texture, studio-grade lighting, high detail, 4K, vertical composition, popular Chinese romance novel cover, elegant and commercial, warm romantic atmosphere.

2026年5月5日查看详情
GPT Image-2 - Text to Image preview 1
imageGPT Image-2

GPT Image-2 - Text to Image

Create an explanatory slide ({argument name="format" default="ponchi-e diagram"}) for {argument name="theme" default="Momotaro"} that fuses the gentle atmosphere of "Irasutoya" with the overwhelming information density of "Kasumigaseki slides". 做出宝可梦的内容 全部中文

2026年5月4日查看详情
生产说明

面向真实图像 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,并在提示词中明确需要调整的背景、光影、构图或风格。

开始接入

把 GPT Image 2 接入你的图像工作流

先打开生成器测试提示词或参考图,确认效果后再通过 API 文档接入到生产流程。

API 就绪
工作流
1K-4K
分辨率
16 张
参考图