Skip to main content

Canonical model endpoints

Use a model’s provider-independent URL in new integrations. When provider is omitted, Sunra keeps the model’s existing automatic route:
The following canonical models are available for GPT Image 2, Midjourney, and Kling: For example:
Model names that contain preview remain canonical version names. Preview identifies a model version, not a provider.

Provider routing

Discover the providers that can serve a canonical model and operation:
The response exposes only the provider ID and display name. Availability is scoped to the requested model, operation, organization access, enabled provider route, and endpoint price. To require one provider, add provider.only to the same canonical queue request:
An unavailable explicit provider returns a 4xx error and is never silently replaced. The selected provider remains fixed for task retries, and billing uses that provider route’s endpoint price. Omit provider to return to Automatic routing. JavaScript:
Python:

GPT Image output formats

For openai/gpt-image-2, openai/gpt-image-2-azure, openai/gpt-image-2.5-flare, and openai/gpt-image-2.5-sunburst, output_format supports only png and jpeg, with png as the default. This applies to both image generation (text-to-image) and editing (image-editing). Use PNG for transparent backgrounds and JPEG for optional output_compression (an integer from 0 to 100). Requests with output_format: "webp" for these four models fail format validation before image generation or billing, including requests that specify a provider. If you need WebP, convert the returned PNG or JPEG file in your client. WebP support remains available on openai/gpt-image-1.5, openai/gpt-image-2.6-flare, and openai/gpt-image-2.6-sunburst.

Legacy compatibility

Provider-specific model URLs remain callable for existing integrations, but no longer appear in the public model catalog. Their URL, response, fixed provider mapping, task lookup, pricing, and prediction identity are unchanged. Input schemas are also unchanged except for the PNG/JPEG restriction on openai/gpt-image-2-azure described above. A legacy URL cannot be switched to another provider. New integrations should use the canonical model in the right-hand column. If a legacy endpoint exposes provider-specific capabilities, you may keep using that legacy URL. Compatibility does not redirect the request to the canonical model.