Short answer
You must passmodel explicitly. If you omit model on /v1/images/generations, or send an empty string or null, APIYI applies the OpenAI-compatible default model dall-e-2.
If the current token group has no available channel for dall-e-2, the gateway returns 503 immediately at the channel selection stage:
gpt-image-2.5-flare, is unstable.
Why the default is dall-e-2
- In the official OpenAI OpenAPI specification,
modelis optional for image generation and defaults todall-e-2; it also acceptsnull. - APIYI’s gateway follows the historical one-api implementation:
middleware/utils.gowritesdall-e-2whenmodelis empty on/v1/images/generations, andgetImageRequestinrelay/controller/image.goalso sets an emptymodeltodall-e-2. - The gateway selects a channel by model name before calling the provider. Once the model name has been filled in as
dall-e-2, it no longer looks for agpt-image-2.5-flarechannel; if the group has nodall-e-2channel, it can only return “no available channels” immediately.
This is not a “channel outage.” The model name in the error is the key clue: whenever you see
no available channels for model dall-e-2, check the model in your request body first instead of troubleshooting image channels.Common ways the model gets dropped
Migrating from Azure OpenAI
Azure puts the model name in the URL deployment path, so the request body can omit
model. Changing only the Base URL and path without adding model triggers the default.Hand-written HTTP requests
Requests built directly with requests, HttpClient, OkHttp, or Go
http.Client may serialize only prompt, size, and n, leaving model in configuration but out of the request body.Separate generation and edit paths
The model picker lives in the frontend while the backend has separate code for text-to-image and image editing; the edit path forwards
model, but the generation path does not.Older SDKs or low-code nodes
Some older SDKs, third-party wrappers, or workflow nodes do not include
model in their default image parameters, or allow it to be omitted.A middle layer drops the field
DTO conversion, field allowlists, queue serialization, or task replay may keep only the prompt, so
model is lost at one layer.Test template defaults
Console or debugging templates fall back to
dall-e-2 when no model is selected, and that behavior can carry over into production.How to diagnose and fix it
1
Read the model name in the 503
If the error says
no available channels for model dall-e-2, your request body did not carry the model you intended. Trust that model name rather than the selection shown in your platform UI.2
Inspect the request body actually sent
Log the final serialized body on your server and confirm at least
model, size, and n. Do not log only the frontend selection or a configuration value.3
Pass the model explicitly
Pass
model on both /v1/images/generations and /v1/images/edits, and make sure it reaches the final request body. Do not rely on the compatibility default.4
Verify the model name and group permission
Use
/v1/models to confirm the model name, then check whether the current group can use it in the console or on the Model Pricing page before sending production traffic.