Output resolution
Supports 1k, 2k, 4k from the published endpoint schema.
curl -X POST https://runapi.ai/api/v1/gpt_image_2_5/edit_image \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2.5-sunburst",
"source_image_urls": [
"https://cdn.runapi.ai/public/samples/image.jpg"
],
"prompt": "Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light."
}'
import { GptImage25Client } from "@runapi.ai/gpt-image-2-5";
const client = new GptImage25Client();
const result = await client.editImage.run({
model: "gpt-image-2.5-sunburst",
source_image_urls: ["https://cdn.runapi.ai/public/samples/image.jpg"],
prompt: "Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light.",
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/gpt_image_2_5/edit_image",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"gpt-image-2.5-sunburst","source_image_urls":["https://cdn.runapi.ai/public/samples/image.jpg"],"prompt":"Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light."}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/gpt_image_2_5/edit_image");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'gpt-image-2.5-sunburst',
'source_image_urls' => ['https://cdn.runapi.ai/public/samples/image.jpg'],
'prompt' => 'Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light.',
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.editImage().run({"model":"gpt-image-2.5-sunburst","source_image_urls":["https://cdn.runapi.ai/public/samples/image.jpg"],"prompt":"Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light."});
task.waitForResult();
require "runapi/gpt_image_2_5"
client = RunApi::GptImage25::Client.new
result = client.edit_image.run(
model: "gpt-image-2.5-sunburst",
source_image_urls: ["https://cdn.runapi.ai/public/samples/image.jpg"],
prompt: "Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light."
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.editImage.Run({"model":"gpt-image-2.5-sunburst","source_image_urls":["https://cdn.runapi.ai/public/samples/image.jpg"],"prompt":"Generate a 4K product hero image of a matte-black water bottle on a beige stone surface, soft side light."})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model gpt-image-2.5-sunburst \
--endpoint edit_image \
--wait
2 versions available
Pick any model and generate in seconds.
Pick any model and generate in seconds.
| Provider | OpenAI |
| Model ID | gpt-image-2.5-sunburst |
| Modality | Image |
| Task types | Asynchronous |
| API endpoint | /api/v1/gpt_image_2_5/edit_image, /api/v1/gpt_image_2_5/text_to_image |
| Billing unit | call |
| Input parameters | aspect_ratio, output_resolution, prompt, source_image_urls |
| Max resolution | 1k, 2k, 4k |
| Aspect ratios | 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 |
| Catalog status | Operational |
Sign up for free and create an API key for gpt-image-2.5-sunburst from the dashboard.
POST to /api/v1/gpt_image_2_5/edit_image with the gpt-image-2.5-sunburst model slug and your parameters.
Poll the task or follow the callback to retrieve the completed gpt-image-2.5-sunburst result.
Supports 1k, 2k, 4k from the published endpoint schema.
Configure 4 documented parameters, including aspect_ratio, output_resolution, prompt, source_image_urls.
Exposes 2 public endpoint(s): edit_image, text_to_image.
Metered by call with no subscription requirement.
promptNo description available.
aspect_ratioNo description available. (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)
output_resolutionNo description available. (1k, 2k, 4k)
source_image_urlsNo description available.
Auto-generate lifestyle product photos for e-commerce catalogs that lack studio photography.
Rapidly concept environments and characters before committing to final art.
Generate unique cover art and illustrations for blog posts and articles at scale.
Pass the model ID shown in the quickstart.
Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.
Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.
Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.
Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.
No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.
We're here to help with enterprise setup, integrations, and technical questions.
Contact Us