Skip to main content
GPT Image 2 is available through the native image API described below. Supports image generation and editing. Size constraints, transparent-background support, and input fidelity are model-specific. POST https://api.mixroute.ai/v1/images/generations

Examples

Use your MixRoute key in the MIXROUTE_API_KEY environment variable. Requests use Authorization: Bearer .... Replace source-image placeholders with accessible images or local files before editing.

Python

Parameters and Limits

Use model and prompt for generation. Output sizes and quality values are model-specific. Editing requires an input image and uses the separate editing endpoint.

API Reference

Endpoint availability depends on your API key’s group.