Generate AI images for avatars, banners, and creative content. Style presets optimized for each use case.
https://api.dyva.ai/v1Photorealistic and stylized images up to 1024×1024. Three style presets cover common use cases.
Portrait-style character images for profile pictures. 1:1 ratio.
Wide cinematic landscapes for headers and covers. 16:9 ratio.
Flexible creative scenes. Any supported aspect ratio.
Dyvas created without an avatar get one generated automatically from their name, tagline, and personality. Appears within seconds.
/v1/images/generateAuth RequiredGenerate an image from a text prompt. Returns the image URL.
| Name | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | Image description (3-500 characters). Be specific about subject, style, and mood. |
style | string | Optional | Image style preset. Options: "avatar" (portrait, 1:1), "banner" (landscape, 16:9), "scene" (flexible). Defaults to "avatar". |
aspect_ratio | string | Optional | Output aspect ratio. Options: "1:1", "16:9", "9:16", "4:3". Defaults to "1:1". |
{
"url": "https://cdn.dyva.ai/generated/img_a1b2c3d4e5f6.png",
"width": 1024,
"height": 1024
}curl -X POST https://api.dyva.ai/v1/images/generate \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A wise old wizard with a long silver beard, mystical blue eyes",
"style": "avatar",
"aspect_ratio": "1:1"
}'Instead of "a person", try "a young woman with auburn hair, freckles, and green eyes, wearing a leather jacket"
"warm golden hour lighting", "moody neon-lit cyberpunk atmosphere", "soft studio portrait lighting"
"digital painting", "anime style", "photorealistic", "watercolor illustration", "pixel art"
"in a cozy library", "standing on a mountain peak", "in a futuristic city"
| Plan | Generations/day | Max resolution |
|---|---|---|
| Free | 5 | 1024 x 1024 |
| Plus | 50 | 1024 x 1024 |
| Pro | 200 | 1024 x 1024 |
| Creator | 500 | 1024 x 1024 |