Dreamina API v1 updates:
- Image generation with Seedream 4.5, Seedream 4.1, Seedream 4.0 (free), Nano Banana, and Seedream 3.0 models
- Text-to-image with up to 6 reference images, upscale to 2K/4K/8K
- Generation history via GET /assets, delete via DELETE /assets
Table of contents
- Text-to-image via POST /images using
seedream-4.5 - Upscale to 4K via POST /images/upscale
- Image with reference via POST /images using
seedream-4.5 - Image-to-video via POST /videos using
seedance-2.0
Text-to-image via POST /images using seedream-4.5
curl --location 'https://api.useapi.net/v1/dreamina/images' \
--header 'Authorization: Bearer user:12345-…' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Cinematic nighttime outdoor portrait: A striking, highly detailed side-profile shot of a beautiful young woman standing inside a vintage public phone booth. She is delicately holding a classic blue phone receiver to her ear, with one hand softly resting against the glass in a relaxed, elegant posture. She wears a stylish trench coat draped effortlessly over a white silk blouse. Her facial features are perfectly captured in profile, showcasing delicate skin texture and soft contouring. The booth'\''s glass is slightly fogged, reflecting vibrant neon city streetlights with a breathtaking, deep bokeh effect. Cinematic lighting, rim light illuminating her hair, hyper-realistic, photorealistic, shot on 35mm lens, moody vintage film aesthetic, masterpiece, 8k resolution, high-end commercial photography.",
"model": "seedream-4.5",
"ratio": "9:16"
}'

Upscale to 4K via POST /images/upscale
Using the generated image from the example above:
curl --location 'https://api.useapi.net/v1/dreamina/images/upscale' \
--header 'Authorization: Bearer user:12345-…' \
--header 'Content-Type: application/json' \
--data '{
"jobid": "j0302…-bot:dreamina",
"imageIndex": 0,
"upscaleResolution": "4k"
}'

Image with reference via POST /images using seedream-4.5
curl --location 'https://api.useapi.net/v1/dreamina/images' \
--header 'Authorization: Bearer user:12345-…' \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Sitting at the beach bar on a high stool, wearing flip-flops, and holding a cigar and a margarita, we see calm ocean behind him.",
"model": "seedream-4.5",
"ratio": "9:16",
"imageRef_1": "US:…-image:w…:h…:s…-uri:…"
}'
Result (2K):

Image-to-video via POST /videos using seedance-2.0
Using the generated image from Example 3 above as firstFrameRef:
curl --location 'https://api.useapi.net/v1/dreamina/videos' \
--header 'Authorization: Bearer user:12345-…' \
--form 'prompt="A man relaxing on a high stool at a sunny beach bar, holding a margarita in his left hand and a smoking cigar in his right. He takes a drink from the glass, then immediately takes a drag from the cigar, blowing out smoke. He makes direct eye contact with the viewer and says: \"Smoking and drinking is bad for you, buddy.\""' \
--form 'model="seedance-2.0"' \
--form 'firstFrameRef="US:…-image:w…:h…:s…-uri:…"' \
--form 'duration="12"'
Result: