API Reference
Image Generation
Last updated March 3, 2026
Generate images from text prompts using multiple AI providers with a unified API.
Supported Models
| Provider | Model | Description |
|---|---|---|
| OpenAI | gpt-image-1.5 | Best text rendering, top ELO rating |
| OpenAI | gpt-image-1 | ChatGPT image generation |
| OpenAI | dall-e-3 | High quality, creative |
| OpenAI | dall-e-2 | Fast, cost-effective |
gemini-3-pro-image | High photorealism, fast | |
imagen-3 | Google Imagen 3, high quality |
Usage
SDK
const response = await cencori.ai.generateImage({
prompt: "A futuristic city at sunset with flying cars",
model: "dall-e-3",
size: "1024x1024",
quality: "hd"
});
console.log(response.images[0].url);API Request
POST https://cencori.com/api/ai/images/generate
Headers: { "CENCORI_API_KEY": "YOUR_API_KEY" }
Body: {
"prompt": "A futuristic city at sunset",
"model": "dall-e-3",
"size": "1024x1024"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Text description of the image |
model | string | No | Image model (default: dall-e-3) |
size | string | No | 1024x1024, 1792x1024, 1024x1792 |
n | number | No | Number of images (1-4) |
quality | string | No | standard or hd |
style | string | No | vivid or natural (DALL-E 3) |
Response
{
"images": [
{
"url": "https://...",
"revisedPrompt": "A futuristic cityscape..."
}
],
"model": "dall-e-3",
"provider": "openai"
}