Skip to main content
XRoute connects you directly to leading computer vision and diffusion models for text-to-image synthesis, visual design, and image modification.
Native Format Only: Image models do not support unified Chat Completions endpoints (/v1/chat/completions). You must use the provider-native endpoints corresponding to each vendor (https://api.xroute.ai/{Provider}/...).

Supported Image Models


1. OpenAI Native Images API

Use standard OpenAI image generation requests by pointing your base URL to https://api.xroute.ai/OpenAI.

Text-to-Image Generation

  • Endpoint: POST https://api.xroute.ai/OpenAI/images/generations
  • Header: Authorization: Bearer $XROUTE_API_KEY

Image Editing & Inpainting

  • Endpoint: POST https://api.xroute.ai/OpenAI/images/edits
cURL

2. Byteplus Seedream Native

Byteplus offers ultra-fast image generation models optimized for high visual fidelity.
  • Endpoint: POST https://api.xroute.ai/Byteplus/images/generations
  • Header: Authorization: Bearer $XROUTE_API_KEY

3. Google Gemini Native Image Generation

Target Google’s image models by enabling IMAGE response modalities over Google GenAI.
  • Endpoint: POST https://api.xroute.ai/Google/image/models/gemini-3.1-flash-image:generateContent
cURL