POST/videos/charactersDeprecated

Create a video character

Creates a character from an uploaded video. Send the video in video and provide a name of 1 to 80 characters. This operation is closing down and will be removed on a date not specified in the API definition.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

2 body fields

Multipart form data containing the video and the character's display name.

videostringrequired
Video file used to create a character.
namestringrequired
Display name for this API character.

5 status codes
200Returns the created character's identifier, name, and creation timestamp.
idstringrequired
Identifier for the character creation cameo.
namestringrequired
Display name for the character.
created_atintegerrequired
Unix timestamp (in seconds) when the character was created.
400Returned when the character request or video upload is invalid, or the organization does not support video generation.
errorobjectrequired
404Returned when the video character endpoint is unavailable.
errorobjectrequired
500Returned when the character could not be created.
errorobjectrequired
504Returned when the character creation request times out.
errorobjectrequired

Error handling

A 400 is returned when the request or upload is invalid or video generation is unsupported; a 404 indicates the character endpoint is unavailable; a 500 means character creation failed; and a 504 indicates the request timed out. The multipart body must include video and name, and name must be 1 to 80 characters.