Skip to main content
Grok Imagine Image Quality is available through the native image API described below. Uses native aspect_ratio and resolution fields rather than the GPT Image size field. The quality control is available only for Image 2.0. 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

Send model and prompt in the JSON body. Generation needs no input image; editing uses the separate editing endpoint and reference-image fields. Quality controls vary by model version.

API Reference

Endpoint availability depends on your API key’s group.