|
Image Generation
Generate images from text prompts using multiple AI providers with a unified API.
Supported Models
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": "csk_..." }
Body: {
"prompt": "A futuristic city at sunset",
"model": "dall-e-3",
"size": "1024x1024"
}Parameters
Response
{
"images": [
{
"url": "https://...",
"revisedPrompt": "A futuristic cityscape..."
}
],
"model": "dall-e-3",
"provider": "openai"
}
