Integrate AI-powered flyer generation into your applications with our simple REST API.
Create an account and generate an API key from your settings.
Use the examples below to generate your first flyer.
Use the generated image URL in your application.
All API requests require authentication using an API key passed in the header.
X-API-Key: your_api_key_heretitletopicsstylemodelaspectRatiodescriptioncurl -X POST https://your-domain.com/api/flyers \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key_here" \
-d '{
"title": "Summer Music Festival",
"topics": ["music", "summer", "festival"],
"style": "vibrant",
"aspectRatio": "9:16"
}'{
"success": true,
"flyer": {
"title": "Summer Music Festival",
"topics": ["music", "summer", "festival"],
"style": "vibrant",
"aspectRatio": "9:16",
"prompt": "A vibrant summer music festival flyer...",
"imageUrl": "https://...",
"metadata": {
"model": "imagen-4.0",
"generationTime": 5200,
"provider": "gemini"
}
}
}Rate limit headers are included in all responses:
X-RateLimit-Limit: Maximum requests allowedX-RateLimit-Remaining: Requests remainingX-RateLimit-Reset: Time when limit resets (Unix timestamp)400Bad Request - Invalid parameters401Unauthorized - Invalid API key429Too Many Requests - Rate limit exceeded500Internal Server Error