> Documentation index: https://api.veed.io/llms.txt. Fetch it to find every other page, as Markdown.

# Submit a Fabric H3 job

Model: Fabric H3
Endpoint: `POST /v1/fabric-h3`

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`.

## Request body

- `audio_url` · url · required — URL of the speech to lip-sync, between 0.25 and 14 seconds long.
- `image_url` · url · required — URL of the source image to animate: PNG, JPEG or WebP.
- `prompt` · string · optional — What should happen in the video: the scene and the motion. Omit it for the model default.
- `resolution` · enum · optional — Output video resolution: the short side of the frame. 1080p and 2k are upscales of the 768p render. Accepts `768p`, `1080p`, `2k`. Defaults to `"768p"`.

## Parameters

- `X-Veed-Store-IO` (header) — Set to `0` to not store this request's and response's bodies. They are then not available in your request logs for debugging.
- `X-Veed-Media-Expiration-Seconds` (header) — Number of seconds before the media URLs returned for this request expire. A value above the maximum is capped rather than rejected.

## Example request

```bash
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 (202)

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

Rendered page: https://api.veed.io/docs/api/post-v1-fabric-h3
