> ## Documentation Index
> Fetch the complete documentation index at: https://docs.clippie.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# API and MCP

> Make Clippie videos from code with the REST API, or from Claude, ChatGPT and Cursor with the Clippie MCP server.

Clippie has a public REST API and an MCP server, so you can make videos from your own code or from an AI assistant. Both are on paid plans and use the same credits and minutes as the app.

> [card] [Full API reference](https://clippie.ai/developers)
>
> Quickstart, authentication, every endpoint, errors, limits, jobs, webhooks and the MCP server.

## What you can make

* AI Stories (narrated, with a single voice)
* Captioned videos
* Reddit and Roblox videos
* Previews before rendering
* AI Studio generations

## MCP server

Connect Claude, ChatGPT, Cursor or another MCP client to:

```text theme={null}
https://api.clippie.ai/mcp
```

Then ask in plain words, for example: "Make a 60-second stickman story about a hiker lost in the woods, 9:16, with a deep narrator voice."

## REST API

* Base URL: `https://api.clippie.ai/v1`
* Create an API key in **Settings > API** on a paid plan. Keys start with `clp_pat_`.
* Send it as `Authorization: Bearer <key>`.
* Create calls answer `202` with a job. Wait with `GET /v1/jobs/:id?wait=30` or a signed webhook.
* Add `"dryRun": true` to see the cost first, and an `Idempotency-Key` header to make retries safe.

## Characters and single scenes in an AI Story

Give a story its characters when you create it, so they are drawn the same in every scene that names them:

```json theme={null}
{
  "script": "Bax froze beside my boot. I counted three seconds...",
  "imageModel": "nano-banana-2.1",
  "characters": [
    { "characterId": "<id from list_characters>" },
    { "name": "I", "description": "stickman in an olive coat with a slate backpack" }
  ],
  "sceneInstructions": "Muted colours. Everything is underground until scene 12."
}
```

* `list_characters` (`GET /v1/characters`) lists the characters saved on your Characters page.
* A character named `I` or `Narrator` is the narrator of a first-person story.
* `sceneInstructions` takes up to 5,000 characters, with up to 40 rules for particular scenes.
* `script` takes up to 60,000 characters, `[image prompt: …]` lines included. The narration itself can last up to 20 minutes, the same as the editor.
* `customStyle` is a look in your own words instead of a preset, like the editor's Custom look: `"gritty 2D comic, heavy ink lines, muted teal and rust"`. It works with `imageModel` (default `seedream-5.0-lite`) and in `redo_ai_story_pictures` too.

To fix single pictures afterwards, read the scenes and redraw only the ones you list. It keeps the voiceover and costs nothing:

1. `get_story_scenes` (`GET /v1/videos/:projectId/scenes`) returns each scene's narration and pictures, with what each picture shows (`description`) and which characters are in it. Pass `scenes` (`[3, 9]`, or `?scenes=4-12` over REST) for just those. Over MCP the pictures come back as images the assistant can look at, up to 12 per call, so it can check them against the narration and spot a room or character that changed.
2. `redo_ai_story_pictures` (`POST /v1/videos/:projectId/redo-pictures`) with `scenes` redraws just those:

```json theme={null}
{
  "scenes": [
    { "scene": 4, "prompt": "Bax stands frozen beside a muddy boot in a flooded pump room.", "characters": ["bax", "I"] },
    { "scene": 9, "secondPrompt": "A closed steel floodgate seen from the walkway.", "characters": [] }
  ]
}
```

`prompt` is drawn as written, in the story's look, so describe the picture and not the art style. Add `referenceScenes` to draw a scene to match other scenes' pictures, then call `get_story_scenes` with the redrawn scene numbers to check them. `characters` is exactly who is in the picture; leave it out to use the characters the narration names. The old picture stays in the scene's history in the editor.

> [!NOTE]
>
> `generate_image` makes pictures for your library and spends credits. It does not put a picture into a story. Use `redo_ai_story_pictures` for story scenes.

## Caption colours

Every video that has captions (AI Story, Captions, Reddit and Roblox) takes a `textStyle` object when you create it, and again later with `update_video` (`PATCH /v1/videos/:projectId`):

| Field | What it sets |
| - | - |
| `color` | Text colour of the captions |
| `highlightColor` | Highlight of the word being spoken. On styles that draw a box behind that word (caption styles 5 and 12) it colours the box and the word keeps the text colour. On the others it colours the word |
| `strokeColor` | Outline colour |
| `strokeWidth` | Outline width, 0 to 20 pixels (0 = no outline) |
| `uppercase`, `bold`, `italic`, `shadow` | `true` or `false` |

Colours are hex, like `"#FFD700"`. Keys you leave out keep their saved value. Changing `captionStyleId` later brings that style's font and outline, and your text and highlight colours stay.

```json theme={null}
{ "captionStyleId": 5, "textStyle": { "color": "#FFFFFF", "highlightColor": "#FFD700" } }
```

## For AI assistants and tools

* [API docs index](https://clippie.ai/developers/llms.txt), in llms.txt format
* [All API docs in one file](https://clippie.ai/developers/llms-full.txt)
* [OpenAPI spec](https://api.clippie.ai/v1/openapi.json)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.