gpt-image-2.5-sunburst/text-to-image
https://api.hiapi.ai /v1/tasks Image, video, and audio models are called through theUnified Async API POST /v1/tasks endpoint; only the input fields differ (see input parameters below).
Model summary
| Model ID | gpt-image-2.5-sunburst/text-to-image |
|---|---|
| Mode | Text to image |
| Pricing | View live pricing |
gpt-image-2.5-sunburst Text to image mode.
Production guidance
- Put model at the top level and parameters inside input.
- callback.url must be an HTTPS terminal notification URL; when=final notifies on both success and failure.
Best suited for
Call Text to image with gpt-image-2.5-sunburst/text-to-image.
promptaspect_ratioresolutionbackgroundRequest parameters
model string required Use exactly gpt-image-2.5-sunburst/text-to-image.
input object required Mode parameters.
prompt string required Prompt length: 1–20,000 characters.
aspect_ratio enum optional Output aspect ratio.
resolution enum optional Output resolution.
background enum optional Optional background treatment: transparent, opaque, or auto; no default. transparent only takes effect at resolution=1K and returns a PNG with alpha; at 2K/4K the output is opaque, so do not rely on it. For transparent output, describe an isolated subject with no backdrop, scenery, or shadow.
callback object optional Optional terminal-state callback.
url string required HTTPS URL that receives success or failure terminal notifications.
when enum optional Notify when the task succeeds or fails.
Example requests
Replace the prompt with your description; no reference image is needed for this mode.
{
"model": "gpt-image-2.5-sunburst/text-to-image",
"input": {
"prompt": "Create a museum-grade square still-life photograph of a lacquer conservation studio and lunar cabinet.",
"aspect_ratio": "auto",
"background": "opaque",
"resolution": "1K"
}
}Getting the result
- Receive a taskId after submission.
- Poll GET /v1/tasks/:id or wait for the terminal callback.
- When status=success, download the image from data.output[].url before expireAt.
- When status=fail, inspect data.error, correct the request, and resubmit.
FAQ
Where can I check pricing?
Use the live pricing page. https://www.hiapi.ai/en/pricing#model-pricing