Skip to navigation

Generate SVG with GPT Image 2.6 Sunburst

Generates SVG artwork from a prompt with GPT Image 2.6 Sunburst. The model renders an image and writes it out as SVG markup. Text prompts only: reference images are not supported.

Authentication

Api-Keystring

API key for access control. Use in the header with the name “Api-Key”

Query parameters

dry_runbooleanOptionalDefaults to false

When true, the request is validated and priced but not run: nothing is generated, stored, or billed, and no safety review is performed. The response is a PriceQuote object instead of the usual response for this endpoint. Send exactly the request you would send to generate, so the quote reflects the same options.

Request

This endpoint expects an object.
promptstringRequired1-9500 characters
What the SVG should show, passed to the model as written.
aspect_ratiostringOptionalDefaults to auto

The output aspect ratio, for example “1:1”, “16:9”, or “9:16”. “auto” (the default) lets the model choose a shape that suits the prompt. The long:short ratio is at most 3:1.

qualityenumOptionalDefaults to auto

How much rendering effort GPT Image 2.6 Sunburst spends on the image the SVG is drawn from. Lower tiers return sooner and cost less; auto lets the model choose, which it currently renders at high.

thinking_levelenumOptionalDefaults to high

How much the model plans before it renders, separate from quality. Lower levels return sooner.

Allowed values:
num_imagesintegerOptional1-8Defaults to 1
seedintegerOptional0-2147483647
Random seed. Set for reproducible generation.
privatebooleanOptional
Outputs are private by default. Enterprise outputs are always private.
target_collection_idstringOptional

URL-safe base64 ID of a writable destination collection.

webhook_urlstringOptionalformat: "uri"<=2048 characters

HTTPS URL that Ideogram delivers the generated result to. Ideogram sends a JSON POST to this URL once all images for the request have finished generating. The body mirrors the synchronous generate response: request_id, created, and a data array containing every generated image (url, prompt, resolution, seed, is_image_safe). Each delivery is signed with Ed25519 and verifiable against the public keys at https://api.ideogram.ai/v1/.well-known/jwks.json. Must be HTTPS; private and loopback hosts and the cloud metadata service are rejected.

Response

Generation accepted. Dry runs return a PriceQuote.
generation_idstring

URL-safe base64 generation ID. Poll the shared generations endpoint for SVG results.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
503
Service Unavailable Error