- APIs
- Designcombo API
- Generate Image
Generate image
Generate an image based on a text prompt.
POST
Parameters
Body
application/jsonpromptREQUIRED
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 code | Description |
|---|---|
| 200 | Image generation successful |
| 400 | No description |
| 401 | No 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"}'