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.
{
"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"