promptstring必填
The text prompt to generate an image from.
默认值:"Generate an image of gray tabby cat hugging an otter with an orange scarf"
openai/gpt-image-2.5-sunburstGPT Image 2.5 Sunburst prioritizes visual fidelity and precision for complex image generation workflows.
试用该模型
选择一个示例,将其输入和结果加载到 playground 中。
{
"aspect_ratio": "16:9",
"prompt": "Create a photorealistic candid photograph of an elderly sailor standing on a small fishing boat.\nHe has weathered skin with visible wrinkles, pores, and sun texture, and a few faded traditional sailor tattoos on his arms.\nHe is calmly adjusting a net while his dog sits nearby on the deck. Shot like a 35mm film photograph, medium close-up at eye level, using a 50mm lens.\nSoft coastal daylight, shallow depth of field, subtle film grain, natural color balance.\nThe image should feel honest and unposed, with real skin texture, worn materials, and everyday detail. No glamorization, no heavy retouching."
}{
"aspect_ratio": "16:9",
"prompt": "Create a detailed Infographic of the functioning and flow of an automatic coffee machine like a Jura.\nFrom bean basket, to grinding, to scale, water tank, boiler, etc.\nI'd like to understand technically and visually the flow."
}{
"aspect_ratio": "16:9",
"prompt": "Give me a cool in culture ad / fashion shot for a brand called Thread.\nIt's a hip young street brand. The ad shows a group of friends hanging out together with the tagline \"Yours to Create.\"\nMake it feel like a polished campaign image for a youth streetwear audience: stylish, contemporary, energetic, and tasteful.\nUse clean composition, strong color direction, natural poses, and premium fashion photography cues.\nRender the tagline exactly once, clearly and legibly, integrated into the ad layout.\nNo extra text, no watermarks, no unrelated logos."
}{
"aspect_ratio": "1:1",
"output_format": "png",
"prompt": "茶饮果茶门店玻璃静电贴,主标题使用“茶饮果茶”,副标题使用“清新果香 欢迎品尝”,采用透明饮品杯主题,背景必须是纯白色(纯白底 RGB 255,255,255),透明塑料饮品杯图案放在纯白背景上,不要灰色背景、不要深色背景、不要渐变、不要场景背景,不出现茶饮品牌,不作减脂、美容等功效宣传,黄绿橙色清新年轻高级设计,1比1比例,不规则边缘,边缘完整不超出画面,去掉阴影。",
"quality": "low",
"resolution": "2k"
}GPT Image 2.5 Sunburst is the fidelity-first GPT Image 2.5 tier, for complex scenes, dense text, and precise layouts. Five quality levels and 1K to 4K output let you trade cost for detail.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
quality | low / medium / high / xhigh / max | high | Higher quality costs more; high is the default. |
resolution | 1k / 2k / 4k | — | Output size tier; omit for 1K. |
aspect_ratio | 1:1 / 1:2 / 2:1 / 1:3 / 3:1 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 9:21 / 21:9 | 1:1 | Output frame shape. |
output_format | jpeg / png / webp | png | Output file format. |
Price depends on quality and resolution, per image:
| Quality | 1k | 2k | 4k |
|---|---|---|---|
| low | $0.01 | $0.02 | $0.03 |
| medium | $0.024 | $0.04 | $0.07 |
| high (default) | $0.09 | $0.15 | $0.27 |
| xhigh | $0.16 | $0.27 | $0.48 |
| max | $0.36 | $0.60 | $1.00 |
Failed runs are not charged.
low or medium, then rerun at high.Other GPT Image endpoints: openai/gpt-image-2.5-sunburst/edit, openai/gpt-image-2.5-flare, openai/gpt-image-2.5-flare/edit, openai/gpt-image-2, openai/gpt-image-2/edit.
开始构建
通过 SandBase Unified Run API 提交此模型。
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-image-2.5-sunburst",
"prompt": "Generate an image of gray tabby cat hugging an otter with an orange scarf",
"quality": "high",
"aspect_ratio": "1:1",
"output_format": "png"
}'创建一个 SandBase API 密钥,并将其设置到服务器环境中。所有请求都使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它,也不要提交到仓库。
在模型的 image、video 或 audio 字段中传入一个可公开访问的文件 URL。支持的格式和限制显示在每个 Playground 输入项旁边。
在 Playground 中支持的图片字段上使用上传或替换控件。视频 URL 字段接受托管的 driving video;这并不表示支持视频上传。
promptstring必填The text prompt to generate an image from.
默认值:"Generate an image of gray tabby cat hugging an otter with an orange scarf"
qualitystringRendering quality. `xhigh` and `max` add detail at higher latency and cost.
默认值:"high"
可选值:"low", "medium", "high", "xhigh", "max"
resolutionstringThe resolution of the generated image. Leave unset to preserve the provider's standard dimensions.
可选值:"1k", "2k", "4k"
aspect_ratiostringThe aspect ratio of the generated image.
默认值:"1:1"
可选值:"1:1", "1:2", "2:1", "1:3", "3:1", "2:3", "3:2", "3:4", "4:3", "4:5", "5:4", "9:16", "16:9", "9:21", "21:9"
output_formatstringThe format of the generated image.
默认值:"png"
可选值:"jpeg", "png", "webp"
{
"model": "openai/gpt-image-2.5-sunburst",
"prompt": "Generate an image of gray tabby cat hugging an otter with an orange scarf",
"quality": "high",
"aspect_ratio": "1:1",
"output_format": "png"
}已完成的运行会在输出中展示结果。以下内容是该模型保存的示例,而不是新的生成结果。
[
{
"source": "OpenAI Cookbook prompt (MIT)",
"source_url": "https://developers.openai.com/cookbook/examples/multimodal/image-gen-models-prompting-guide",
"url": "https://static.sandbase.ai/examples/7d0dd810-5511-4b8c-9dc3-dbaad5f081d2/output/242b2ec1-ba62-4fa7-9df2-227bd48ec43e.png"
}
]