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/generationscurl 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);Messages API (Anthropic)
OpenAdapter also supports the native Anthropic Messages format on `/v1/messages`. This is what Claude Code, Claude Desktop, and the Anthropic SDK use. Your same
Audio Transcription
Transcribe audio files using Whisper-compatible models. Supports mp3, mp4, wav, webm, and other common formats.