# Create a sign video

`POST /v1/speech-to-sign/studio`

Turns text into one downloadable MP4, signed by a photorealistic avatar and powered by Echo 2.0. Every word plays in full (in, sign, out), with no cuts. Billed at $1.32 / min of video from your prepaid wallet. See [full pricing](/pricing).

For long scripts, add `?async=true` to get a background job instead (see [Async jobs](/docs/async-jobs)).

## Headers

- `Authorization` (string, required): Bearer authentication of the form `Bearer <token>`, where the token is your API key (`sk-live-…` or `sk-test-…`).
- `Idempotency-Key` (string): Any unique string (up to 255 characters). A retry with the same key and body returns the first answer and is never charged twice. See [Idempotency](/docs/idempotency).
- `Talksign-Version` (string): Optional dated API version. See [Versioning](/docs/authentication#versioning).

## Request body

- `text` (string, required): The text to sign, 1 to 5,000 characters. Words without a sign are fingerspelled or swapped for a synonym.
- `language` (enum): The sign language to sign in. ASL (`asl`) is live and is the default. One of: `asl`.
- `avatar` (string): Who signs. A preset id (defaults to `arthur`) or one of your custom avatar ids. `elena` and `daniel` are coming soon and return `409`. One of: `arthur`, `amara`.
- `model` (enum): The signing model. Defaults to `echo-2.0`, the only one. Any other value returns `400`. One of: `echo-2.0`.
- `durationSeconds` (number): Length hint in seconds, max 3600. Billing uses the measured video length when available.

## Response

Returns the rendered video in `data`, and what was charged in `usage`.

- `download_url` (string): Signed link to the MP4, valid for 1 hour. Works directly in `<video src>` (no key needed). `null` if the link could not be made: use `video_url`.
- `video_url` (string): Permanent link for 7 days. Needs your key to download. Same as `videoUrl`.
- `expires_at` (string): ISO 8601 time `download_url` stops working.
- `requestId` (string): Render id. Use it with [Get a sign video](/docs/api/sign-video/get).
- `durationSeconds` (number): Billed length of the video, in seconds.
- `avatar` (string): The avatar used.
- `language` (string): The sign language used.
- `usage` (object): `{ type, durationSeconds, costUsd, walletRemainingUsd }`. Test keys show `costUsd: 0`.

## Errors

- 400 Bad request: A required field is missing or a value is not allowed (`invalid_request`).
- 401 Unauthorized: The API key is missing or not valid (`invalid_api_key`).
- 402 Payment required: Your wallet does not have enough funds for this request (`insufficient_credits`). Nothing is charged.
- 409 Conflict: The avatar is coming soon or not ready yet (`avatar_coming_soon`, `avatar_not_ready`).
- 413 Payload too large: `text` is longer than 5,000 characters (`text_too_long`). Nothing is charged.
- 429 Too many requests: You hit a rate limit. Wait for `Retry-After` seconds. See [Rate limits](/docs/rate-limits).

## Example request

```bash
curl https://api-staging.talksign.co/v1/speech-to-sign/studio \
  -H "Authorization: Bearer $TALKSIGN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "The next train to Leeds leaves from platform 4.",
    "language": "asl",
    "avatar": "amara"
  }'
```

## Example response

```json
{
  "success": true,
  "data": {
    "videoUrl": "https://api.talksign.co/v1/speech-to-sign/video/req_8f2k1x",
    "video_url": "https://api.talksign.co/v1/speech-to-sign/video/req_8f2k1x",
    "download_url": "https://storage.googleapis.com/…/req_8f2k1x.mp4?…",
    "expires_at": "2026-11-22T13:00:00.000Z",
    "requestId": "req_8f2k1x",
    "durationSeconds": 4.2,
    "avatar": "amara",
    "language": "asl"
  },
  "usage": {
    "type": "speech-to-sign/studio",
    "durationSeconds": 4.2,
    "costUsd": 0.1,
    "walletRemainingUsd": 49.9
  }
}
```
