API
On this section

Fabric H3

Submit a Fabric H3 job

image
audio
prompt
produces
video
$0.125–$0.25per second

Start an asynchronous job that animates a source image to speak an audio recording. A text prompt can describe the scene and the motion.

Inputs

  • image_url — public URL of the source image: PNG, JPEG or WebP, up to 30 MB, each side between 128 and 5,760 pixels, at most 16 million pixels in total, with an aspect ratio between 1:4 and 4:1
  • audio_url — public URL of the speech: WAV, MP3, FLAC, OGG, M4A or AAC, up to 50 MB, between 0.25 and 14 seconds long. The model takes audio, not text: to make the image say a script, generate the audio with a text-to-speech tool first
  • prompt — optional; what should happen in the video, up to 2,000 characters. Omit it for a person speaking naturally to the camera
  • resolution — optional; the short side of the output frame, 768p (the default), 1080p or 2k. The model renders 768p; 1080p and 2k are upscales of the finished clip

The speech is transcribed automatically, so the recording must contain speech. A job fails with:

  • input_validation when no speech is recognized, the audio is too short, or the image dimensions are outside the limits above
  • audio_too_long when the audio is over 14 seconds
  • invalid_file when the image or audio is corrupt or in another format
  • transload_failed when the image or audio cannot be downloaded from its URL
  • content_moderation when the input breaks the usage policy

Output

An MP4 at 24 frames per second that keeps the supplied audio and is as long as it. The aspect ratio follows the image.

What happens next

The job is accepted immediately — you get 202 Accepted with a job_id and status PROCESSING. Rendering usually takes about a minute. Poll GET /v1/fabric-h3/{job_id} until the job is COMPLETED or FAILED.

POST
/v1/fabric-h3
Try it ▷

Headers

X-Veed-Store-IOenumoptional

Set to 0 to not store this request's and response's bodies. They are then not available in your request logs for debugging.

Accepts01Defaults to "1".
X-Veed-Media-Expiration-Secondsintegeroptional

Number of seconds before the media URLs returned for this request expire. A value above the maximum is capped rather than rejected.

At most 2592000.Defaults to 86400.

Request body FabricH3Input ↗

audio_urlurlrequired

URL of the speech to lip-sync, between 0.25 and 14 seconds long.

Must be an http(s) URL.
image_urlurlrequired

URL of the source image to animate: PNG, JPEG or WebP.

Must be an http(s) URL.
promptstringoptional

What should happen in the video: the scene and the motion. Omit it for the model default.

resolutionenumoptional

Output video resolution: the short side of the frame. 1080p and 2k are upscales of the 768p render.

Accepts768p1080p2kDefaults to "768p".

Responses

dataobjectrequiredFabricH3Job ↗
Show 6 nested fields
credits_chargedintegeroptional

Credits charged for the job. Present once the job is COMPLETED and the final charge is known.

credits_estimatedintegeroptional

Credits quoted before the job ran. Present only on the response that created the job. This is an estimate, not the price: the charged amount can be higher or lower.

Failure information. Present once the job has FAILED.

Show 3 nested fields
codeenumrequired

Stable, machine-readable failure code for this job type.

Acceptsinput_validationcontent_moderationinvalid_fileaudio_too_longtransload_failedgeneration_failedtimeoutinsufficient_credits
detailsarray of objectoptionalJobErrorDetail ↗

Optional structured failure details.

Show 3 nested fields
fieldstringoptional

Dotted path to the offending input, when applicable.

messagestringrequired

Human-readable explanation of this detail.

typestringrequired

The category of this detail entry.

messagestringrequired

Human-readable failure message.

job_iduuidrequired

Stable identifier of the job and of the resource it produces.

resultobjectoptionalFabricH3Video ↗

The produced resource. Present once the job is COMPLETED.

Show 1 nested field
videoobjectrequiredFile ↗

The generated talking video. It keeps the supplied audio and is as long as it.

Show 4 nested fields
content_typestringoptional

The mime type of the file.

file_namestringoptional

The name of the file.

file_sizeintegeroptional

The size of the file in bytes.

urlstringrequired

The URL where the file can be downloaded from.

statusenumrequired

Current lifecycle state of the job.

AcceptsPROCESSINGCOMPLETEDFAILEDCANCELLED
X-Request-IDCorrelation id for this request, adopted from the request or minted at the edge.
401UnauthorizedErrorResponse ↗
errorobjectrequiredErrorBody ↗
Show 4 nested fields
codeenumrequired
Acceptsinvalid_requestunauthenticatedinsufficient_tokenspermission_deniednot_foundconflictrate_limitedunavailableinternal
detailsarray of objectoptionalErrorDetail ↗
Show 6 nested fields
fieldstringoptional
messagestringoptional
reasonenumoptional
Acceptsapi_key_expiredapi_key_inactiveapi_key_invalidapi_key_revokedapi_key_workspace_unavailableavatar_not_foundconcurrency_limitinsufficient_creditsjob_not_foundmodel_access_requiredoauth_token_invalidsession_not_found
retry_after_msintegeroptional
typestringrequired
valueobjectoptional
messagestringrequired
request_idstringrequired
X-Request-IDCorrelation id for this request, adopted from the request or minted at the edge.
402Payment RequiredErrorResponse ↗
errorobjectrequiredErrorBody ↗
Show 4 nested fields
codeenumrequired
Acceptsinvalid_requestunauthenticatedinsufficient_tokenspermission_deniednot_foundconflictrate_limitedunavailableinternal
detailsarray of objectoptionalErrorDetail ↗
Show 6 nested fields
fieldstringoptional
messagestringoptional
reasonenumoptional
Acceptsapi_key_expiredapi_key_inactiveapi_key_invalidapi_key_revokedapi_key_workspace_unavailableavatar_not_foundconcurrency_limitinsufficient_creditsjob_not_foundmodel_access_requiredoauth_token_invalidsession_not_found
retry_after_msintegeroptional
typestringrequired
valueobjectoptional
messagestringrequired
request_idstringrequired
X-Request-IDCorrelation id for this request, adopted from the request or minted at the edge.
422Unprocessable EntityErrorResponse ↗
errorobjectrequiredErrorBody ↗
Show 4 nested fields
codeenumrequired
Acceptsinvalid_requestunauthenticatedinsufficient_tokenspermission_deniednot_foundconflictrate_limitedunavailableinternal
detailsarray of objectoptionalErrorDetail ↗
Show 6 nested fields
fieldstringoptional
messagestringoptional
reasonenumoptional
Acceptsapi_key_expiredapi_key_inactiveapi_key_invalidapi_key_revokedapi_key_workspace_unavailableavatar_not_foundconcurrency_limitinsufficient_creditsjob_not_foundmodel_access_requiredoauth_token_invalidsession_not_found
retry_after_msintegeroptional
typestringrequired
valueobjectoptional
messagestringrequired
request_idstringrequired
X-Request-IDCorrelation id for this request, adopted from the request or minted at the edge.
429Rate limit exceededErrorResponse ↗
errorobjectrequiredErrorBody ↗
Show 4 nested fields
codeenumrequired
Acceptsinvalid_requestunauthenticatedinsufficient_tokenspermission_deniednot_foundconflictrate_limitedunavailableinternal
detailsarray of objectoptionalErrorDetail ↗
Show 6 nested fields
fieldstringoptional
messagestringoptional
reasonenumoptional
Acceptsapi_key_expiredapi_key_inactiveapi_key_invalidapi_key_revokedapi_key_workspace_unavailableavatar_not_foundconcurrency_limitinsufficient_creditsjob_not_foundmodel_access_requiredoauth_token_invalidsession_not_found
retry_after_msintegeroptional
typestringrequired
valueobjectoptional
messagestringrequired
request_idstringrequired
Retry-AfterSeconds until the rate limit resets.
X-RateLimit-ClassThe rate-limit class that was hit (read, mutation, ai-generation).
X-RateLimit-LimitRequest budget for the matched class.
X-RateLimit-RemainingRemaining requests in the current window.
X-RateLimit-ResetUnix time (seconds) when the budget resets.
X-Request-IDCorrelation id for this request, adopted from the request or minted at the edge.
500Internal Server ErrorErrorResponse ↗
errorobjectrequiredErrorBody ↗
Show 4 nested fields
codeenumrequired
Acceptsinvalid_requestunauthenticatedinsufficient_tokenspermission_deniednot_foundconflictrate_limitedunavailableinternal
detailsarray of objectoptionalErrorDetail ↗
Show 6 nested fields
fieldstringoptional
messagestringoptional
reasonenumoptional
Acceptsapi_key_expiredapi_key_inactiveapi_key_invalidapi_key_revokedapi_key_workspace_unavailableavatar_not_foundconcurrency_limitinsufficient_creditsjob_not_foundmodel_access_requiredoauth_token_invalidsession_not_found
retry_after_msintegeroptional
typestringrequired
valueobjectoptional
messagestringrequired
request_idstringrequired
X-Request-IDCorrelation id for this request, adopted from the request or minted at the edge.

Example request

terminal
curl -X POST "https://api.veed.io/v1/fabric-h3" \
  -H "Authorization: Bearer $VEED_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "audio_url": "https://static-assets.veed.io/api-examples/fabric-h3-input.mp3",
  "image_url": "https://static-assets.veed.io/api-examples/fabric-h3-input.png"
}'

Example response

HTTP 202
{
  "data": {
    "job_id": "123e4567-e89b-12d3-a456-426614174000",
    "status": "PROCESSING",
    "credits_estimated": 162
  }
}