Skip to main content
POST
/
videos
Create a new Video
curl --request POST \
  --url https://api.argil.ai/v1/videos \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "moments": [
    {
      "transcript": "<string>",
      "avatarId": "<string>",
      "voiceId": "<string>",
      "gestureSlug": "<string>",
      "audioUrl": "<string>",
      "zoom": {
        "level": 1
      }
    }
  ],
  "subtitles": {
    "enable": true,
    "styleId": "<string>",
    "position": "Top",
    "size": "Small"
  },
  "aspectRatio": "16:9",
  "enableAutoBrolls": true,
  "autoBrolls": {
    "enable": true,
    "source": "GENERATION",
    "intensity": "LOW",
    "layout": "FULLSCREEN"
  },
  "extras": {},
  "backgroundMusic": {
    "assetId": "<string>",
    "volume": 0.5
  },
  "model": "ARGIL_V1"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "status": "<string>",
  "moments": [
    {
      "transcript": "<string>",
      "avatarId": "<string>",
      "voiceId": "<string>",
      "audioUrl": "<string>",
      "videoUrl": "<string>",
      "gestureSlug": "<string>"
    }
  ],
  "videoUrl": "<string>",
  "videoUrlSubtitled": "<string>",
  "subtitles": {
    "enable": true
  },
  "extras": {}
}

Authorizations

x-api-key
string
header
required

API key to be included in the x-api-key header

Body

application/json
name
string
required
moments
object[]
required

An array of Moment items, each representing a portion of the complete video.

subtitles
object

Subtitles settings for the video

aspectRatio
enum<string>

Select desired output aspectRatio: 16:9 or 9:16. Optional, default depends on used avatar.

Available options:
16:9,
9:16
enableAutoBrolls
boolean

[DEPRECATED] Enable automatic B-roll generation and placement. When enabled, the system will analyze your content and automatically add relevant B-rolls to appropriate moments.

autoBrolls
object

Configuration for automatic B-roll generation and placement.

extras
object

Optional dictionary of custom key-value pairs to extend the video metadata. Maximum of 5 key-value pairs of 256 characters allowed

backgroundMusic
object

Optional configuration for background music

model
enum<string>

Model to use for the video generation.

Available options:
ARGIL_V1,
ARGIL_ATOM

Response

Successfully created Video

id
string<uuid>
name
string
createdAt
string<date-time>
updatedAt
string<date-time>
status
string

Can be either IDLE, GENERATING_AUDIO, GENERATING_VIDEO, DONE or FAILED.

moments
object[]

An array of Moment items, each representing a portion of the complete video.

videoUrl
string

The url of the final avatar rendering video, containing all the moments merged.

videoUrlSubtitled
string

The url of the final avatar rendering video with subtitles. Only available if subtitles are enabled.

subtitles
object

Subtitles settings for the video

extras
object

A dictionary of custom key-value pairs to extend the video metadata. Maximum of 5 key-value pairs of 256 characters allowed.