Dreamina API v1 updates:

Table of contents

  1. Text-to-image via POST /images using seedream-4.5
  2. Upscale to 4K via POST /images/upscale
  3. Image with reference via POST /images using seedream-4.5
  4. 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"
}'

Result (2K)


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"
}'

Result (4K)


Image with reference via POST /images using seedream-4.5

imageRef_1

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:

Screenshot from Dreamina website