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:

Legacy compatibility

Provider-specific model URLs remain callable for existing integrations, but no longer appear in the public model catalog. Their URL, input schema, response, fixed provider mapping, task lookup, pricing, and prediction identity are unchanged. 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.