# Getting started

The Faceless API turns a narration script into a finished faceless video (AI visuals, TTS voiceover, captions) and publishes it to connected YouTube, TikTok, Instagram, X, Facebook, LinkedIn and Threads accounts. This guide takes you from no account to a published video: price, credential, payment, video, connected account, post.

Base URL: `https://faceless.so/api/v1`. Every response uses one envelope: `{ "success": true, "data": ..., "pagination"? }` on success, `{ "success": false, "error": { "type", "message" } }` on failure.

## 1. Price it first (no key needed)

`POST /estimates` answers without a key, priced for a new workspace, and charges nothing. A short Storyboard video is 20 credits (about $2 from the $10 pack); credit packs are $10 for 100 credits, $25 for 275, $50 for 600, and no subscription is needed for videos (automated series need a plan).

```bash
curl -s -X POST https://faceless.so/api/v1/estimates \
  -H "Content-Type: application/json" \
  -d '{"items":[{"operation":"createVideo","input":{"script":"Did you know the ocean has lakes and rivers of its own? ...","voiceId":"EXAVITQu4vr4xnSDxMaL","model":"storyboard"}}]}'
```

`GET /voices` and `GET /options` also work without a key.

## 2. Get a credential

Pick one:

- **An agent with no account and no human at hand:** `POST /agent/signup` (no key) opens a workspace and returns an API key plus a claim link for your human. The key can pay for credit packs, make checkout links for the person and make connect links for their social accounts. See [agent signup](/developers/docs/agent-signup).

```bash
curl -s -X POST https://faceless.so/api/v1/agent/signup \
  -H "Content-Type: application/json" \
  -d '{"agentName":"TikTok video agent","email":"owner@example.com"}'
```

- **A person with an account:** create a key in team settings at https://faceless.so/team (Team settings > Claude & API). For this guide pick `catalog:read`, `videos:read`, `videos:write`, `accounts:write` and `posts:write`. The full key is shown once.
- **A client that can open a browser:** `faceless login` signs in with OAuth (PKCE); MCP clients do the same from the server's 401. See [authentication](/developers/docs/authentication).

```bash
export FACELESS_API_KEY=fl_live_...
```

`GET /me` checks it and returns the team, credit balance, plan and the key's scopes:

```bash
curl -s https://faceless.so/api/v1/me \
  -H "Authorization: Bearer $FACELESS_API_KEY"
```

Or with the CLI: `npm install -g faceless-cli`, then `faceless whoami --json`.

## 3. Pay for credits

A new workspace has 0 credits, so a video answers `402 insufficient_credits` until someone pays. Pick the way that fits the person:

- **A card (the usual case):** give the person a Stripe Checkout link. The `402` already carries one in `checkoutUrl` (no login needed to open it), or make one with `POST /checkout-sessions {"packId":"pack_10"}`. Poll `GET /checkout-sessions/{id}` until `status` is `complete`; the credits arrive when they pay.
- **A Stripe Link wallet:** pay in-band over the Machine Payments Protocol: `POST /credits {"packId":"pack_10"}` answers `402` with a `WWW-Authenticate: Payment` challenge that `npx @stripe/link-cli mpp pay` answers.

Details and limits: [credits and limits](/developers/docs/credits-and-limits#buy-credits-from-an-agent-post-credits-scope-creditswrite).

## 4. Pick a voice

Every video needs a TTS voice for the narration. List the catalog (no key needed; filter with `search`, `gender`, `language` or `accent`) and note a voice `id`:

```bash
curl -s "https://faceless.so/api/v1/voices?search=Sarah"
```

```bash
faceless voices --search Sarah --json
```

Pass the `id` unchanged as `voiceId`. An id is a bare ElevenLabs id, or the same voice with a model prefix:

| `id` in `GET /voices`                              | What it reads on                                  |
| -------------------------------------------------- | ------------------------------------------------- |
| `EXAVITQu4vr4xnSDxMaL` (Sarah)                     | the model Faceless picks for the video's language |
| `eleven_v3:EXAVITQu4vr4xnSDxMaL` (Sarah (v3))      | Eleven v3                                         |
| `eleven_v4:...`                                    | Eleven v4                                         |
| `eleven_quality:...` (Recommended, Studio Quality) | the model Faceless picks for the content          |

`baseVoiceId` is the bare part. Both forms work everywhere a voice is taken (`voiceId` on `POST /videos`, `voice` on `POST /series`, estimates). An id that is not a Faceless voice is refused with `voice_not_found` before anything is charged, and a voice name sent instead of an id gets a `didYouMean` with the id.

Other catalogs (visual styles, niches, models with their credit costs) live at `GET /options?kind=...`; see `faceless options`.

## 5. Create a video

`POST /videos` takes a finished script and starts generation. Credits are charged now, at creation: `storyboard` 20 credits under 60 s, 30 for 60-89 s, 40 from 90 s, `motion_lite` 60, `motion_pro` 120, each up to 120 s; a longer motion_lite or motion_pro video costs 2.5 credits a second for its whole length (303 for 121 s). The call returns immediately with the video id.

```bash
curl -s -X POST https://faceless.so/api/v1/videos \
  -H "Authorization: Bearer $FACELESS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"script": "Did you know the ocean has lakes and rivers of its own? ...", "voiceId": "EXAVITQu4vr4xnSDxMaL", "model": "storyboard"}'
```

```bash
faceless videos create --script "Did you know..." --voice-id EXAVITQu4vr4xnSDxMaL --model storyboard --wait --json
```

## 6. Poll until generation completes

Poll `GET /videos/{id}/status` every 10 to 30 seconds until `status` is `completed` (or `failed`; check `errorMessages`). The CLI's `--wait` flag in step 5 does this for you.

```bash
curl -s https://faceless.so/api/v1/videos/<videoId>/status \
  -H "Authorization: Bearer $FACELESS_API_KEY"
```

## 7. Render the MP4

Rendering is a separate, free step. `POST /videos/{id}/render` returns a `renderId`; poll `GET /renders/{renderId}` every 5 to 15 seconds until `status` is `done`, which includes the final MP4 `url`.

```bash
curl -s -X POST https://faceless.so/api/v1/videos/<videoId>/render \
  -H "Authorization: Bearer $FACELESS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"codec": "h264"}'

curl -s https://faceless.so/api/v1/renders/<renderId> \
  -H "Authorization: Bearer $FACELESS_API_KEY"
```

```bash
faceless videos render <videoId> --wait --json
```

## 8. Connect the social account (a link for the person)

`POST /accounts/connect-links` (scope `accounts:write`) returns a one-time `url`, valid for an hour, that the account owner opens to connect TikTok (or YouTube, Instagram, X, Facebook, LinkedIn, Threads) without a Faceless login. Poll until `status` is `connected`. See [connecting accounts](/developers/docs/connecting-accounts).

```bash
curl -s -X POST https://faceless.so/api/v1/accounts/connect-links \
  -H "Authorization: Bearer $FACELESS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"platform": "tiktok"}'

curl -s https://faceless.so/api/v1/accounts/connect-links/<linkId> \
  -H "Authorization: Bearer $FACELESS_API_KEY"
```

`GET /accounts` lists what is connected.

## 9. Publish

Publishing is free. Post the rendered video to a connected platform now:

```bash
curl -s -X POST https://faceless.so/api/v1/posts \
  -H "Authorization: Bearer $FACELESS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"videoId": "<videoId>", "platform": "tiktok", "title": "The ocean has rivers underwater", "tiktokPrivacyLevel": "PUBLIC_TO_EVERYONE"}'
```

```bash
faceless posts publish --video-id <videoId> --platform tiktok --title "The ocean has rivers underwater" --json
```

TikTok can accept a post before it finishes processing it; the `post.published` [webhook](/developers/docs/webhooks) then says `publishComplete: false`. For future-dated posting see [publishing and scheduling](/developers/docs/publishing-and-scheduling).

No script? [Fast Track](/developers/docs/videos#fast-track-get-and-post-fast-track) sells ready-made scripts as finished videos (10 credits (3 for Slideshows, Single Fade-in Video and 2x2 Grid Video)).

## Next steps

- [Authentication and scopes](/developers/docs/authentication)
- [Videos](/developers/docs/videos) for the full lifecycle in detail
- [Series](/developers/docs/series) to automate a whole channel
- [CLI](/developers/docs/cli) and [MCP](/developers/docs/mcp)
- Full endpoint reference: [/developers/reference](/developers/reference) or https://faceless.so/llms.txt for agents
