Image generation and editing · gpt-image-1-miniUse this exact MixRoute model ID to select the route.POST /v1/images/generationsCheck availability in the Model Marketplace for your API key’s group. A catalog listing does not guarantee that a route is enabled.
This request format requires pricing to be enabled for this model in your MixRoute group. If the API returns model_price_error, contact MixRoute support; changing the prompt does not make the route available.
Quick Example
Set MIXROUTE_API_KEY before running the example.
curl --fail-with-body --request POST 'https://api.mixroute.ai/v1/images/generations' \ --header "Authorization: Bearer $MIXROUTE_API_KEY" \ --header 'Content-Type: application/json' \ --data '{ "model": "gpt-image-1-mini", "prompt": "A red ceramic mug on a white surface.", "size": "1024x1024", "quality": "low", "n": 1}'
Decode data[].b64_json to save the generated image.
Parameters
Field
Description
model
gpt-image-1-mini. Use the exact model ID shown above.