Skip to main content
POST
/
avatar-videos
/
agent
Generate a video from a prompt
curl --request POST \
  --url https://api.smartlyq.com/v1/avatar-videos/agent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "dimension": "<string>",
  "title": "<string>"
}
'
{
  "success": false,
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": {}
  },
  "meta": {
    "request_id": "<string>",
    "timestamp": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key from Developer dashboard (Bearer token).

Body

application/json
prompt
string
required

What the video should be about, e.g. 'A 30-second product launch announcement, upbeat and confident'.

Maximum string length: 2000
dimension
string

WxH, e.g. 1920x1080 (default) or 1080x1920.

title
string

Response

Accepted — poll GET /v1/avatar-videos/{uid} for result