Make videos from your code.

Fivelabs Studio has two programmatic interfaces: a REST API for your backend (create, generate, render, status), compatible with the vid.ai tool shapes, and an MCP server so AI assistants such as Claude and ChatGPT can make videos in a conversation. Both drive the same researching writer, render stack and editor as the studio.

Access and authentication

The API is in early access. Write to hello@fivelabs.xyz and we’ll set you up with a base URL and credentials.

  • REST API v1 uses bearer tokens: Authorization: Bearer $TOKEN. Tokens are created in Settings, shown once, stored hashed, can carry an expiry date and can be revoked. Up to 10 can be active at once.
  • MCP accepts OAuth 2.1 (authorization code with PKCE S256 and dynamic client registration) or a separate MCP key.
  • Media links in responses are signed and expire after 7 days.

The video lifecycle

Shorts and long-form videos follow the same five calls.

  1. Create a project with either a script or a prompt. With a prompt, the writer researches the topic on the web and drafts the script; the project stays a draft until its sections appear. duration takes 45 for a 35–45 second fact Short or 60 for a 30–60 second story Short (35 and 90 are also accepted); long-form videos take 1–20 minutes.
  2. Edit sections if you want to change a line or pin an image as a shot’s first frame. This is allowed until generation starts.
  3. Generate: narration with caption timing, then the shot renders on the GPU. If the shot list isn’t written yet, the writer drafts it and rendering starts automatically.
  4. Render assembles the final cut once generation is done.
  5. Poll the rendering status until it returns a videoLink. Add &download=1 to download the file.

When the writer drafts the script, the project’s metadata carries its research alongside the usual notes and sources: titles, three title options in the narration language; fact_check, every claim sorted into verified (with where it comes from), folklore (told as tradition, and how the script marks it) and unverified (and what the writer did about it); and critique, the writer’s own note on where the script is still weak. Read them from the project before you generate, and reject or revise a draft from code the same way you would in the studio.

Create a Short from your own scriptREST API v1
curl -s "$FIVELABS/api/v1/faceless-shorts/create" \
  -H "Authorization: Bearer $TOKEN" \
  -H "content-type: application/json" \
  -d '{
    "name": "Octopus hearts",
    "duration": 45,
    "narrator": "andrew",
    "imageTheme": "cinematic",
    "script": "Octopuses have three hearts. Two pump blood to the gills. The third stops when they swim."
  }'

REST endpoints

All paths are under /api/v1. Long-form videos use the same calls under /faceless-videos, with extra options on generate such as image theme and chapter titles.

Method and pathWhat it does
GET /meThe account, its credit balance and the token in use.
GET /projectsProjects with pagination and filters by status, tool and name.
POST /faceless-shorts/createCreate a Short from a script or a prompt; duration 45 or 60 (35 and 90 also accepted). With a prompt, the writer’s titles, fact_check and critique land in the project metadata.
POST /faceless-shorts/edit-sectionsReplace a section’s script or pin an image (PNG, JPEG or WebP, up to 10 MB) before generation.
POST /faceless-shorts/generateStart narration and shot renders. Idempotent; accepts max_credits and retry.
GET /faceless-shorts/generation-statusProgress of narration and renders.
POST /faceless-shorts/renderAssemble the final video.
GET /faceless-shorts/rendering-statusRender state, and a signed videoLink when it’s done.
… /faceless-videos/…The same six calls for long-form videos.

Responses and errors

Every response is wrapped as { requestId, data } and carries an X-Request-Id header. Unknown fields are rejected, so typos fail loudly instead of being ignored.

Error codes include invalid_api_token, insufficient_credits, project_not_found, invalid_project_state, validation_error (with details), script_duration_exceeded, invalid_narrator, section_not_found, invalid_image_url, image_too_large, media_generation_failed, render_failed and rate_limited.

MCP server

The MCP server speaks Streamable HTTP (protocol 2025-06-18, and also 2025-03-26 and 2024-11-05). When an assistant connects, a consent screen names the app and where it will send you, and you choose Allow or Deny. Authorization codes are single-use, and refresh tokens rotate with reuse detection.

Finished videos come back with a player resource, so the assistant can show the video in the conversation with download and copy-link actions.

What a session looks likeMCP
You: Make a 45-second Short in Hindi about why Ganesha
     broke his tusk, cinematic style. Keep it under 60 credits.

Assistant calls:
  estimate_credits
  create_faceless_shorts
  generate_faceless_shorts   max_credits: 60
  get_faceless_shorts_generation_status
  render_faceless_shorts
  get_faceless_shorts_rendering_status

The 26 MCP tools

Read-only tools are annotated as such, and every tool has a strict input schema.

  • how_to_create_full_video_creation_to_render
  • get_user
  • get_credit_balance
  • get_projects
  • get_project
  • get_script
  • list_voices
  • list_voice_engines
  • list_image_styles
  • list_avatars
  • list_upgrades
  • estimate_credits
  • add_custom_voice
  • remove_custom_voice
  • create_faceless_shorts
  • edit_faceless_shorts_sections
  • generate_faceless_shorts
  • get_faceless_shorts_generation_status
  • render_faceless_shorts
  • get_faceless_shorts_rendering_status
  • create_faceless_video
  • edit_faceless_video_sections
  • generate_faceless_video
  • get_faceless_video_generation_status
  • render_faceless_video
  • get_faceless_video_rendering_status

Publishing

  • YouTube: resumable uploads, the synthetic-media disclosure set on every upload, and #Shorts added for vertical videos.
  • Instagram and Facebook: Reels through the Instagram Graph API, and Facebook cross-posting.
  • Hashtags and metadata follow the studio’s researched YouTube rules: the first three hashtags, length limits and Hindi tags.
  • Publishing jobs retry automatically if an upload fails.

Under the hood

The long version of what the studio does, for technical visitors. The home page keeps to the short one.

  • Writer. Built on Claude. Live web research before writing, cited URLs, every claim sorted into verified, folklore and unverified, three titles and a self-critique per script. Rules enforce a hook in the first seconds, a payoff close instead of a repeated hook, rationed dramatic pauses, and lengths of 35–45 s for a fact Short and 30–60 s for a story. Hindi narration marks traditions as traditions.
  • Visuals. Native 9:16 generation with MiniMax H3 (open weights, native audio) on our own GPUs. Three visual modes, documentary, illustrated legend and historical reconstruction, so a myth is never rendered as fake news footage; 15 image styles for long-form; character reference images to keep a face consistent across shots. A motion check re-renders clips that come back frozen, an orientation review catches sideways takes, and failed renders retry with backoff.
  • Voice and sound. Open-source Hindi narration with the Indic Parler-TTS voice “Aman” and punctuation-driven emphasis; ElevenLabs optional; custom voices. Narration is matched to the picture after the cut. Royalty-free music beds by mood and per-beat sound cues chosen by the writer are mixed under the voice; a music-free export exists for in-app trending sounds.
  • Cut and quality. Final assembly runs on the GPU (about 3× faster than on the studio server). Quality gates are code: duration, loudness, frozen frames and sources. The chosen thumbnail is embedded as the Short’s first frames (its cover).
  • Publishing. YouTube uploads with thumbnail selection, the synthetic-media flag and an AI-content disclosure; a hashtag and metadata module built from researched YouTube rules (first three hashtags, length limits, Hindi tags); Instagram Reels and Facebook cross-posting; comment replies and pinned sources; multi-language versions and long-form compilations of a run of Shorts.
  • Autopilot. A showrunner that researches topics, produces, QC-checks and publishes 4 Shorts a day at set times, brings GPUs up and down within a daily budget, keeps a buffer of finished videos and approves its own pipeline gates when you let it. A festival calendar feeds its topic choice.
  • Strategist and analytics. A daily strategist analyses channel and video retention, studies what works for comparable creators, keeps a living playbook and runs one experiment slot a day (formats, styles, lengths, captions on or off). The Performance page shows views, average percentage viewed, shares and subscribers per video with 28-day series; retention curves are captured for bandit allocation of themes.
  • Operations. A live Production board (every video’s stage, clip progress, GPU throughput, ETA and credit), live project pages, a Telegram bot with an hourly digest, alerts, a daily report, commands such as /status, /pause and /publish, and free-text instructions. One-click GPU scripts bring a machine up, connect, install the voice and shut it down; cuts can run remotely. Projects and media are backed up.

Spending controls

One credit is $0.01 of GPU or provider spend. estimate_credits gives an itemised estimate before anything is charged, max_credits caps a single call, queued work reserves its estimate, and renders stop at the monthly budget. Requests over the rate limit get 429 rate_limited.

Want to build on Fivelabs? Request API access and tell us what you’re making.