Skip to main content
POST
/
v1
/
video
/
text2video
Text To Video
curl --request POST \
  --url https://api.domoai.com/v1/video/text2video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "Close-up of a smiling woman in soft sunlight, gentle breeze in her hair, 4K",
  "model": "t2v-2.4-faster",
  "callback_url": "https://example.com/callback",
  "seconds": 5
}
'
{
  "data": {
    "task_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "code": 0
}
Read Text To Video Styles to see all available styles

Authorizations

Authorization
string
header
required

API Key Bearer Token

Body

application/json
prompt
string
required
Required string length: 1 - 2000
seconds
integer
required

Output video duration in seconds.

Required range: 1 <= x <= 10
callback_url
string<uri> | null

Callback notification URL for task results. If configured, the server will actively send notifications when the task status changes. The message schema of the notification can be found in the Callback Protocol section.

Required string length: 1 - 2083
Example:

"https://example.com/callback"

model
enum<string>
default:t2v-2.4-faster
Available options:
t2v-2.4-faster,
t2v-2.4-advanced
style
enum<string> | null
Available options:
japanese_anime,
realistic,
pixel,
cartoon_game,
flat_color_anime,
90s_style
Example:

"japanese_anime"

aspect_ratio
enum<string>
default:1:1

Output video aspect ratio.

Available options:
16:9,
9:16,
1:1,
4:3,
3:4

Response

Successful Response

data
TaskOut · object
required
code
integer
default:0