imagesarray必填
The URLs of the images to use for image-to-image generation or image editing.
openai/gpt-image-2.6-sunburst/editGPT Image 2.6 Sunburst Edit prioritizes precision and consistency across successive edits for complex image editing workflows.
试用该模型
PNG, JPEG, WebP, or GIF · 20 MiB maximum each
选择一个示例,将其输入和结果加载到 playground 中。
{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/bec64267-964f-4a5a-b62b-6f207c63743c/input/fb945b36-6bf2-41c8-abd4-9b3be9279570.png"
],
"prompt": "Create a realistic billboard mockup of the shampoo on a highway scene during sunset.\nBillboard text (EXACT, verbatim, no extra characters):\n\"Fresh and clean\"\nTypography: bold sans-serif, high contrast, centered, clean kerning.\nEnsure text appears once and is perfectly legible.\nNo watermarks, no logos."
}{
"aspect_ratio": "16:9",
"images": [
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/789202c7-4d63-478e-975e-cba99f1718b3.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/d6dd73cb-70d8-4cff-ba22-1d3c0e88638a.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/d619ca4a-c2d5-45b5-af16-4ade3898330e.png",
"https://static.sandbase.ai/examples/981b2926-dfa6-47b7-b6c9-e6f188eaf7cc/input/caedb740-34aa-4950-94c1-1cf2531236cb.png"
],
"output_format": "png",
"prompt": "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures.",
"quality": "high"
}GPT Image 2.6 Sunburst edit: precise edits and multi-image composition that stay consistent across rounds of revision. Send images with an instruction; untouched areas, faces, and text stay as they were.
| Field | Type | Default | Notes |
|---|---|---|---|
images | image URL[], required | — | Images to edit or combine, Image 1, Image 2, … |
prompt | string, required | — | Up to 32,000 characters. |
quality | low / medium / high | 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 / 2:3 / 3:2 / 3:4 / 4:3 / 4:5 / 5:4 / 9:16 / 16:9 / 9:21 / 21:9 | — | Omit to follow the first input image. |
output_format | jpeg / png / webp | png | Output file format. |
Price depends on quality and resolution, per output image, plus $0.015 for each input image after the first:
| Quality, 1 input | 1k | 2k | 4k |
|---|---|---|---|
| low | $0.025 | $0.035 | $0.045 |
| medium | $0.039 | $0.055 | $0.085 |
| high (default) | $0.105 | $0.165 | $0.285 |
Failed runs are not charged.
Other GPT Image endpoints: openai/gpt-image-2.6-flare, openai/gpt-image-2.6-flare/edit, openai/gpt-image-2.6-sunburst, openai/gpt-image-2.5-flare, openai/gpt-image-2.5-sunburst.
开始构建
通过 SandBase Unified Run API 提交此模型。
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"model": "openai/gpt-image-2.6-sunburst/edit",
"images": [
"https://cdn.openai.com/API/docs/images/body-lotion.png",
"https://cdn.openai.com/API/docs/images/soap.png",
"https://cdn.openai.com/API/docs/images/incense-kit.png",
"https://cdn.openai.com/API/docs/images/bath-bomb.png"
],
"prompt": "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures.",
"quality": "high",
"output_format": "png"
}
SANDBASE_JSON
)
printf '%s\n' "$result"创建一个 SandBase API 密钥,并将其设置到服务器环境中。所有请求都使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它,也不要提交到仓库。
在模型的 image、video 或 audio 字段中传入一个可公开访问的文件 URL。支持的格式和限制显示在每个 Playground 输入项旁边。
在 Playground 中支持的图片字段上使用上传或替换控件。视频 URL 字段接受托管的 driving video;这并不表示支持视频上传。
imagesarray必填The URLs of the images to use for image-to-image generation or image editing.
promptstring必填The text prompt to generate an image from.
默认值:"Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures."
qualitystringRendering quality. Higher quality adds detail at higher latency and cost.
默认值:"high"
可选值:"low", "medium", "high"
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:2", "2: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.6-sunburst/edit",
"images": [
"https://cdn.openai.com/API/docs/images/body-lotion.png",
"https://cdn.openai.com/API/docs/images/soap.png",
"https://cdn.openai.com/API/docs/images/incense-kit.png",
"https://cdn.openai.com/API/docs/images/bath-bomb.png"
],
"prompt": "Generate a photorealistic image of a gift basket on a white background labeled 'Relax & Unwind' with a ribbon and handwriting-like font, containing all the items in the reference pictures.",
"quality": "high",
"output_format": "png"
}已完成的运行会在输出中展示结果。以下内容是该模型保存的示例,而不是新的生成结果。
[
{
"url": "https://static.sandbase.ai/examples/bec64267-964f-4a5a-b62b-6f207c63743c/output/19700ba3-20a7-4941-969b-48014312c73a.png"
}
]