Quickstart
Make your first Mostly API calls in five minutes: check your key, find what's working, and write a video.
Step 2 costs 1 credit. Everything else here is free until you choose to render.
1. Get a key and check it
Create a key in Settings → API & MCP and keep it in an environment variable:
export MOSTLY_API_KEY="mst_live_..."Then ask for your credit balance:
curl https://mostly.so/api/v1/credits \
-H "Authorization: Bearer $MOSTLY_API_KEY"{
"organizationId": "org_…",
"organizationName": "Glow Labs",
"totalAvailable": 1500,
"breakdown": { "SUBSCRIPTION": 1000, "GRANT": 500 }
}If you get 401, the key is wrong, expired or revoked.
2. Find what's working
Search TikTok for outlier posts on your topic, meaning posts doing at least 2.5x their creator's usual:
curl "https://mostly.so/api/v1/creatives?query=morning%20skincare%20routine&platforms=TIKTOK&outliersOnly=true&limit=5" \
-H "Authorization: Bearer $MOSTLY_API_KEY"Each result has outlierMultiplier, the caption, the creator and postUrl. One platform costs 1 credit, and repeating the same search within 24 hours is free. More in Creatives.
3. Write a video
Turn the winning angle into a 30-second UGC storyboard. Writing is free, and render: "none" (the default) means nothing is rendered yet:
curl -X POST https://mostly.so/api/v1/storyboards \
-H "Authorization: Bearer $MOSTLY_API_KEY" \
-H "content-type: application/json" \
-d '{
"prompt": "UGC ad for our vitamin C serum. Hook: the one mistake that makes your serum useless.",
"duration": 30
}'{
"status": "writing_scenes",
"storyboardId": "b7e2…",
"studioUrl": "https://mostly.so/script-projects/b7e2…",
"render": "none",
"estimatedCredits": 0,
"message": "…"
}Scenes are ready in about a minute. Read them with GET /api/v1/storyboards/b7e2…, or open studioUrl to see them.
4. Get the price, then render
Ask to render without maxCredits. Nothing is spent, and you get the price:
curl -X POST https://mostly.so/api/v1/storyboards/b7e2…/render \
-H "Authorization: Bearer $MOSTLY_API_KEY" \
-H "content-type: application/json" \
-d '{}'{ "status": "needs_confirmation", "estimatedCredits": 140, "availableCredits": 1499, "…": "…" }Happy with it? Send the same call with "maxCredits": 140. When the shots are done, export the final MP4. The Storyboards page covers rendering, editing, exports and webhooks.
Where next
- Overview: brands, credits, errors, and calling any tool over HTTP.
- Slide decks: carousels with your brand kit.
- Posts: publish to TikTok, Instagram, X, LinkedIn, Facebook and YouTube.
- MCP setup: let Claude, ChatGPT or Cursor do all of this for you.