Skip to main content
POST

Authorizations

Authorization
string
header
required

Send your DreamTo API Key in the Authorization: Bearer <API Key> header.

Body

application/json

Request body of a video generation task.

model
enum<string>
default:MiniMax-H3
required

Model name. Must be MiniMax-H3.

Allowed values:

  • MiniMax-H3: MiniMax H3 flagship model.
Available options:
MiniMax-H3
content
object[]
required

Input items. Must include a non-empty text item (the prompt); images, videos and audio are told apart by role. Frame roles (first_frame / last_frame) cannot be combined with reference roles (reference_image / reference_video / reference_audio).

Minimum array length: 1
resolution
enum<string>
required

Output resolution.

Allowed values:

  • 768P: 768P.
  • 2K: 2K.
Available options:
768P,
2K
duration
integer<int64>
required

Video duration in seconds, an integer from 4 to 15.

Required range: 4 <= x <= 15
ratio
enum<string>
default:adaptive

Aspect ratio. Required for text-to-video and cannot be adaptive; image-to-video always follows the input image (other values are ignored); multimodal reference defaults to adaptive.

Allowed values:

  • adaptive: Adaptive: image-to-video follows the input image, reference-to-video is decided by the model. Not available for text-to-video.
  • 21:9: 21:9 ultra-wide.
  • 16:9: 16:9 landscape.
  • 4:3: 4:3 landscape.
  • 1:1: 1:1 square.
  • 3:4: 3:4 portrait.
  • 9:16: 9:16 portrait.
Available options:
adaptive,
21:9,
16:9,
4:3,
1:1,
3:4,
9:16
aigc_watermark
boolean
default:false

Whether to add an AIGC watermark to the video. Defaults to false.

response_format
enum<string>
default:task

Shape of the query response for this task. Defaults to task.

Allowed values:

  • task: Task fields are nested under task.
  • flat: Task fields are at the top level.
Available options:
task,
flat

Response

Task created.

Response of a successful create call.

task_id
string
required

Task ID, used to query the task.