Skip to content

Image Generation ​

gpt-image-* IDs are image models. TUOYUAN documents image generation separately from text Chat Completions so image Model IDs are not treated as ordinary chat models.

Common OpenAI-compatible endpoint: POST /v1/images/generations

bash
curl https://api.tuoyuan.ai/v1/images/generations \
  -H "Authorization: Bearer $TUOYUAN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-image-2","prompt":"A minimal geometric landscape"}'

Beta compatibility

Image models are present in the current model catalog, while the first end-to-end public-path validation focused on text Chat Completions. Supported size, quality, response-format, and other parameters may differ by image model. Validate the target model with your key before production use. If the gateway reports an unsupported model or endpoint, use /v1/models, console status, and platform notices as the source of truth.

TUOYUAN API · 拓元智算