🚀 Launch prices - Limited time offer!Get access now

Generate image

Generate an image based on a text prompt.

POST

Parameters

Body

application/json
promptREQUIRED
string
Text prompt describing the desired image
aspectRatio
string enum: 1:1, 4:3, 16:9, 9:16, 21:9
Aspect ratio of the generated image
style
string enum: realistic, artistic, cinematic, cartoon, anime
Visual style of the image
resolution
string enum: 512x512, 1024x1024, 1920x1080, 3840x2160
Resolution of the generated image
Status codeDescription
200Image generation successful
400No description
401No description
cURL
curl -L -X POST \
"https://api.designcombo.dev/v2/images/generate" \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"prompt": "A cinematic shot of a dragon flying over mountains at sunset",
"aspectRatio": "16:9",
"style": "cinematic",
"resolution": "1920x1080"
}'