OpenAdapterOpenAdapter
Endpoints

Image Generation

Generate images with DALL-E compatible parameters. The gateway routes to the best available image model.

Base URL & authentication

Base URL: https://api.openadapter.in

All requests need an Authorization: Bearer sk-cv-... header. Generate or copy your API key from the Dashboard → API Keys page.

Generate images with DALL-E compatible parameters. The gateway routes to the best available image model.

POST https://api.openadapter.in/v1/images/generations
curl https://api.openadapter.in/v1/images/generations \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen-image-2512",
    "prompt": "A serene mountain lake at sunset with vibrant colors",
    "n": 1,
    "size": "1024x1024"
  }'
response = client.images.generate(
    model="qwen-image-2512",
    prompt="A serene mountain lake at sunset with vibrant colors",
    n=1,
    size="1024x1024"
)

image_url = response.data[0].url
# or response.data[0].b64_json if response_format="b64_json"
print(image_url)
const response = await client.images.generate({
  model: 'qwen-image-2512',
  prompt: 'A serene mountain lake at sunset with vibrant colors',
  n: 1,
  size: '1024x1024',
});

console.log(response.data[0].url);