Create a cast member
POST
https://api.vidmoat.com/v1/castSave a member from 1 to 8 images in the account: uploads (referenceUrls), a generated image (fromUrl), or a frame of a video (fromJobId, or fromFrame { src, time }; without a time the sharpest last frame). Characters get a face print for the consistency check.
Body#
namestringrequiredUp to 60 characters.kindenumdefaultcharacterWhat it is.One ofcharacter,location,prop,styledescriptionstringThe words that must never drift, appended to every prompt that uses the member. Up to 600 characters; longer is refused, never truncated.referenceUrlsarray of stringsImages in the account, 1 to 8.viewsarray of enumsOne per reference: front, three_quarter, profile, back, full_body, expression, wide or detail.fromUrlstringA generated image in the account.fromJobIdstringA finished video generation; its frame becomes the reference.voiceIdstringA Speech Lab voice of the account or a published one, or a stock voice withvoiceProvider.
Response#
Returns 201.
Response fields#
memberobjectThe member.problemsarrayFor example: no face found, so the face check reports this member as unknown.
Errors#
Besides the errors any request can get (authentication, rate limits):
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | A missing name, an image not in the account, more than 8 images, a description over 600 characters, or a real person. |