# Quickstart

Create a key, send text, and download your first sign language video.

SignAPI turns English text into an American Sign Language (ASL) video signed by a realistic avatar. You send text to `POST /v1/jobs`, the job renders in a few seconds, and you download an MP4 (or play it while it renders).

Base URL: `https://signapi.fingerdance.ai`

## Step 1: Create an API key

Sign in at https://signapi.fingerdance.ai/account/keys and create a key with permission to create jobs, read their status, and download files (`jobs:write`, `jobs:read`, `artifacts:read`). Store it on your server, never in a browser or mobile app.

```bash
export FINGERDANCE_API_KEY='your_api_key'
export REQUEST_ID="$(uuidgen)"
```

Access is invite-only while SignAPI rolls out. Request access at https://signapi.fingerdance.ai/waitlist.

## Step 2: Check that you have video credits

Usage is measured in delivered video time. A job holds a limit worked out from your text (the sample sentence holds 30 seconds) and is charged only the delivered length. Check your balance at https://signapi.fingerdance.ai/account/billing or with `GET /v1/usage`. You can watch the sample in the Playground (https://signapi.fingerdance.ai/account/playground) without using credits.

## Step 3: Submit your first job

Keep the same `Idempotency-Key` if you retry this submission. Use a new one for each new job.

```bash
curl --fail-with-body "https://signapi.fingerdance.ai/v1/jobs" \
  -H "Authorization: Bearer $FINGERDANCE_API_KEY" \
  -H "Idempotency-Key: $REQUEST_ID" \
  -H 'Content-Type: application/json' \
  --data '{"text": "Hello. Thank you.", "sign_language": "aslue", "quality": "fast", "resolution": "1280x720"}'
```

```python
import os, json, uuid
from urllib.request import Request, urlopen

request = Request(
    "https://signapi.fingerdance.ai/v1/jobs",
    data=json.dumps({"text": "Hello. Thank you."}).encode(),
    headers={
        "Authorization": "Bearer " + os.environ["FINGERDANCE_API_KEY"],
        "Idempotency-Key": str(uuid.uuid4()),
        "Content-Type": "application/json",
    },
)
with urlopen(request, timeout=30) as response:
    job = json.load(response)
print(job["id"], job["status"])
```

```typescript
const response = await fetch("https://signapi.fingerdance.ai/v1/jobs", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.FINGERDANCE_API_KEY,
    "Idempotency-Key": crypto.randomUUID(),
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ text: "Hello. Thank you." }),
});
if (!response.ok) throw new Error(await response.text());
const job = await response.json();
```

The first submission returns `202 Accepted` with the job and a `Location` header. Retrying the same request with the same key returns `200 OK` and the existing job.

## Step 4: Get the video

Read the job until its `status` is `succeeded`. Find the `mp4` entry in `artifacts`, then exchange its ID for a short-lived download URL.

```bash
curl "https://signapi.fingerdance.ai/v1/jobs/JOB_ID" -H "Authorization: Bearer $FINGERDANCE_API_KEY"
curl "https://signapi.fingerdance.ai/v1/artifacts/ARTIFACT_ID?download=true" -H "Authorization: Bearer $FINGERDANCE_API_KEY"
```

The artifact response is `{"url": "...", "expires_in": 300, "sha256": "...", "size_bytes": 1265035}`. The URL lasts a few minutes: download it right away, and ask again for a fresh URL when you need one later.

A short sentence usually finishes in a few seconds. To show the video sooner, play it while it renders: see [Live playback](https://signapi.fingerdance.ai/developers/streaming).

## Next steps

- [Jobs and results](https://signapi.fingerdance.ai/developers/jobs): job states, cancellation, artifacts.
- [Webhooks](https://signapi.fingerdance.ai/developers/webhooks): get a signed callback when a job finishes.
- [AI agents](https://signapi.fingerdance.ai/developers/agents): use SignAPI from Claude, Cursor, VS Code, or Codex through MCP and agent skills.
