GPT Image 2.5 Flare Text to Image API

openai/gpt-image-2.5-flare/text-to-image
1K · 2K · 4K

GPT Image 2.5 Flare Text to Image 将文本提示词转化为 1K–4K 高清图像,支持透明背景与低延迟推理。它在敏捷响应的同时精准呈现自然光影,消除超大画幅结构失真。

获取 API Key
Input
必填1144/32000
可选
可选
可选
可选
可选
Output已就绪

预估费用: high / 1K · 11.78 credits · $0.05890

费用由画质与分辨率决定,按张计费。1 credit = $0.005。

继续使用

示例

output-85a91c45c78c.png

Create a narrative picture-book illustration in textured gouache with soft colored-pencil lines. In a small wooden cottage during a snowy blue evening, an elderly grandmother kneels on the left beside a child in blue knitted pajamas seated on a rug. They both face a plain plaster wall on the right. The grandmother raises both hands to make the silhouette of one rabbit. A small uncovered amber lamp is on a low stool at the far left behind her raised hands; establish the straight spatial order from left to right: lamp bulb, hands, wall. Show the two hands silhouetted directly between the bulb and the clearly cast rabbit shadow on the wall; the rabbit shadow must be visibly connected to this light path. Keep the grandmother in a gentle side profile and the child gazing at the shadow, only two people. A small rear window reveals icy blue snow-covered pines, contrasting with honey-amber lamplight, rough timber and cozy woven quilts indoors. Believable fingers and warm affectionate expressions, quiet shared play, no text, brands, logos, advertisements, watermarks or comparison panels.

output-f5e55ff76a7f.png

Create a single self-contained handcrafted papercraft miniature of a lunar explorer on a genuinely transparent background. The explorer wears an unbranded folded ivory paper spacesuit with a pale blue visor and holds an unfolded small lunar topographic map with both hands; the map has only simple contour lines and no writing. Include a small irregular folded-paper moon-rock base physically attached under both boots. Show precise paper folds, cut edges, layered cardstock seams and subtle paper fibers, slightly playful proportions but clear arms and hands. The complete explorer, map and attached base must be fully visible and separated from all image edges. Soft directional studio illumination only on the subject, no floor, room, colored backdrop, checkerboard, surrounding shadow rectangle or typography. No brands, logos, products for sale, advertisements, promotional graphics, watermark, split screen or comparison panels.

GPT Image 2.5 Flare Text to Image

GPT Image 2.5 Flare Text to Image 是 OpenAI 推出兼顾卓越画质与高效推理的主力文生图模型。相较前代大幅降低生成延迟,原生支持 1K、2K 与 4K 输出、透明背景及多种预设与自定义比例画幅。模型在自然光感、排版与微观纹理上表现出色,为高频创意探索与营销物料生产提供敏捷高性价比的图像交付能力。

为什么选择 GPT Image 2.5 Flare Text to Image?

  • 低延迟高效推理与敏捷响应针对日常交互与规模化生产深度优化,图像生成延迟较前代降低达 50%,极大加速创意探索与批量出图效率。

  • 原生 1K、2K 至 4K 多档分辨率支持 1K、2K 与 4K 三档原生高分辨率渲染,满足从轻量社媒预览到印刷级广告物料的多样化交付需求。

  • 原生透明背景与无缝素材集成支持直接生成免抠图透明背景(transparent),输出无瑕边缘的 PNG 或 WebP,便于直接嵌入设计合成与海报排版。

  • 丰富比例预设与像素级自定义尺寸提供 1:1、16:9、21:9 等 10 种常用比例,并支持最长边达 3840 像素的自定义尺寸,灵活适配各端显示规范。

  • 五档画质与灵活成本控制从 low 到 max 提供五档精细质量选项,单张生成 1.31 积分($0.00655)起,帮助团队在出图速度、品质与预算间取得最佳平衡。

参数

参数要求说明
prompt必填

非空文本,最多 32,000 个字符。

size可选

默认 1:1。可用比例:auto、1:1、2:3、3:2、4:3、3:4、4:5、5:4、16:9、9:16、21:9。auto 仅支持 1K。自定义 WIDTHxHEIGHT 需使用 2K/4K,两边为正的 16 倍数,最长边不超过 3840,比例不超过 3:1,总像素为 655360–8294400;3840 边长必须使用 4K。

默认值1:1
resolution可选

1K、2K 或 4K,默认 1K。

默认值1K2K4K
output_format可选

png、jpeg 或 webp,默认 png。

默认值pngjpegwebp
quality可选

low、medium、high、xhigh 或 max,默认 high。价格由 quality 与 resolution 决定。

默认值highlowmediumxhighmax
background可选

auto、transparent 或 opaque,默认 auto。transparent 必须搭配 png 或 webp。

默认值autotransparentopaque

使用方法

  1. 编写提示词并标定文字在 prompt 中详尽描述画面主体、光影氛围与构图视角;若画面中包含排版文字,建议使用英文半角双引号精确包裹标出。

  2. 选择画幅比例与输出分辨率根据使用载体指定 1:1、16:9 等画幅比例或自定义 WIDTHxHEIGHT,并选择 1K、2K 或 4K 输出分辨率。

  3. 配置背景模式与画质档位如需免抠图素材可将 background 设为 transparent 并选用 png 格式;根据业务场景在 low 至 max 间选择质量级别。

  4. 提交异步生成任务向 API 发送生成请求获取唯一 task_id,底层高性能集群立即启动并行渲染推理。

  5. 轮询状态并获取成品图片使用 task_id 查询任务状态,待状态为 finished 后读取返回的高保真图片访问链接。

用量与计费

每次生成 1 张图片,按所选画质和分辨率计费,最低 1.31 credits/张。API 默认参数 high / 1K 为 11.78 credits/张($0.05890)。1 credit = $0.005,完整费率见下表。

用量与计费
画质分辨率单张费用
low1K
1.31 credits
$0.00655
2K
2.65 credits
$0.01325
4K
2.47 credits
$0.01235
medium1K
2.95 credits
$0.01475
2K
5.99 credits
$0.02995
4K
5.81 credits
$0.02905
high1KAPI 默认
11.78 credits
$0.05890
2K
23.94 credits
$0.11970
4K
22.39 credits
$0.11195
xhigh1K
20.93 credits
$0.10465
2K
42.55 credits
$0.21275
4K
39.78 credits
$0.19890
max1K
47.11 credits
$0.23555
2K
95.74 credits
$0.47870
4K
89.51 credits
$0.44755

使用场景

  • 社交媒体与品牌营销视觉依托超低生成延迟与高质量光影,快速批量产出多渠道信息流配图、活动主视觉与自媒体封面。

  • 电商产品与广告概念打样利用多画幅与透明背景特性,迅速探索不同构图、背景氛围与光照环境下的商品展示图。

  • UI 图标与免抠设计素材制作直接生成透明背景的插画、图标与装饰元素,省去繁琐的人工抠图步骤,无缝融入设计稿。

  • 自动化生产流水线与程序化出图结合低至 1.31 积分的经济成本与极速 API,支撑自动化内容生成、个性化海报定制等高并发业务场景。

使用技巧

  • 透明背景格式搭配:设置 background 为 transparent 时,output_format 必须选择 png 或 webp,不支持 jpeg 格式输出。
  • 自定义尺寸对齐规则:自定义 WIDTHxHEIGHT 时两边必须为 16 的正整数倍,且仅在 2K 与 4K 分辨率下生效;最长边若为 3840 必须使用 4K 分辨率。
  • 画面排版文字清晰度:在提示词中需要准确呈现的英文标语或短句,使用双引号包裹标明(例如 "COFFEE SHOP"),可显著增强字形清晰度与拼写准确率。
  • 质量档位成本平衡:前期创意打样或高频测试建议选用 low 或 medium 档位以节约开销,确定视觉方向后再使用 high 或 xhigh 渲染交付终稿。

注意事项

  • prompt 字段为必填项,支持最多 32,000 个字符,可承载极其详尽的环境与主体描述。
  • 调用计费由 quality(画质档位)与 resolution(分辨率)共同决定,提交前可在上方体验区查看实时预估扣费。
  • 本端点专为纯文本生成图像设计,如需上传参考图进行局部修改或风格迁移,请使用 GPT Image 2.5 Flare Image Edit 端点。
  • API 采用异步任务处理机制,提交请求后返回 task_id,任务完成后即可通过状态接口拉取生成图片的访问链接。

相关模型

GPT Image 2.5 Flare Text to Image API 常见问题

GPT Image 2.5 Flare Text to Image API 是什么?

GPT Image 2.5 Flare Text to Image 是 OpenAI 研发的高性能文本生成图像模型。它根据文本提示词生成 1K、2K 至 4K 原生分辨率的高保真图像,具备显著降低的生成延迟、多档画质调节与透明背景生成能力。基于 OpenAI 新一代图像生成架构,它在敏捷响应的同时精准再现自然光影、逼真微观纹理与严谨的空间布局。你可以通过 API 进行程序化调用,也可以在上方体验区直接在线试用。

GPT Image 2.5 Flare 与 Sunburst 变体在生成速度上有何不同?

Flare 变体专为高频生产与敏捷交互优化,生成延迟相较前代降低高达 50%,出图响应明显更快;而 Sunburst 变体更注重极致微距纹理与超精细商业终稿交付,用户可根据项目对吞吐时效与极致画质的不同要求灵活选型。

GPT Image 2.5 Flare Text to Image 如何生成免抠图的透明背景图像?

在请求中将 background 参数配置为 transparent,同时将 output_format 设为 png 或 webp 即可。模型会自动识别主体并将背景区域处理为完全透明通道,输出边缘自然的免抠图视觉素材。

GPT Image 2.5 Flare Text to Image 支持自定义图像尺寸吗?

支持。除了 1:1、16:9、21:9 等 10 种常见预设比例外,你可以在 size 参数中输入 WIDTHxHEIGHT 自定义像素规格。自定义尺寸要求两边均为正的 16 倍数,最长边不超过 3840 像素,总像素在 655360 至 8294400 之间,且仅适用于 2K 或 4K 分辨率配置。

GPT Image 2.5 Flare Text to Image 最多支持多长的提示词?

prompt 字段支持最多 32,000 个 Unicode 字符。这允许用户输入极其丰富的人物外观、环境景深、光影走向、镜头参数与艺术风格描述,模型具备出色的长文本逻辑理解与要素还原能力。

GPT Image 2.5 Flare Text to Image 的调用费用是如何计算的?

费用由请求中的 quality(质量)与 resolution(分辨率)两个参数共同决定。以 1 credit = $0.005 计算,最经济的 low / 1K 档位单张仅需 1.31 积分($0.00655),默认的 high / 1K 档位为 11.78 积分($0.05890),最高精度的 max 档位满足终极视觉呈现。

GPT Image 2.5 Flare Text to Image 支持在画面中准确渲染英文字符吗?

支持。该模型显著增强了文本渲染与字形排版能力。在提示词中建议使用英文半角双引号准确包裹所需呈现的词句(如 "COFFEE SHOP"),模型即可在招牌、包装、海报等载体上生成清晰规整、拼写正确的字样。