Shorts API
Order vertical Shorts (9:16) in GoMotion’s ready-made niches — Reddit stories, quizzes, AI stories, fake text chats, clips and more — from your code or from an AI agent. Same niches, options, prices and results as the web’s Short form.
- Endpoint
https://gomotionai.com/v1/shorts- Keys
- Your usual GoMotion API key (
videos:read/videos:write) or the MCP connection - Credits
- The Shorts credits pot (
GET /v1/credits→shorts): held when you order, charged when the Short is done, returned if it fails or you cancel - Plans
- Long form, Shorts and Mix plans
- Niches now
- 27 open (the list is live:
GET /v1/shorts/niches)
Quickstart
curl, step by step:
# 1. the niches you can order now
curl -sS https://gomotionai.com/v1/shorts/niches -H "Authorization: Bearer $GOMOTION_API_KEY"
# 2. one niche: its options, lengths, voices, prices
curl -sS https://gomotionai.com/v1/shorts/niches/reddit-story -H "Authorization: Bearer $GOMOTION_API_KEY"
# 3. the price (free)
curl -sS -X POST https://gomotionai.com/v1/shorts/quote -H "Authorization: Bearer $GOMOTION_API_KEY" \
-H "Content-Type: application/json" -d '{"niche": "reddit-story", "options": {"story_prompt": "a cat who runs a bakery"}, "length_seconds": 60}'
# 4. order it (Shorts credits are held now, charged when it is done, returned if it fails)
SHORT=$(curl -sS -X POST https://gomotionai.com/v1/shorts -H "Authorization: Bearer $GOMOTION_API_KEY" \
-H "Idempotency-Key: order-0001" -H "Content-Type: application/json" \
-d '{"niche": "reddit-story", "options": {"story_prompt": "a cat who runs a bakery"}, "length_seconds": 60, "max_cost_credits": 15}')
ID=$(echo "$SHORT" | jq -r .id)
# 5. poll until succeeded (5-60 min), then download
until [ "$(curl -sS https://gomotionai.com/v1/shorts/$ID -H "Authorization: Bearer $GOMOTION_API_KEY" | tee /tmp/s.json | jq -r .status)" != running ] && [ "$(jq -r .status /tmp/s.json)" != queued ]; do sleep 60; done
curl -sSL -o short.mp4 "$(jq -r '.files[0].download_url' /tmp/s.json)"
The same flow in Python (standard library) and Node 18+; these exact files run in our test suite:
"""GoMotion Shorts API quickstart (Python 3, standard library only): price a Reddit-story Short, order it, wait, download.
GOMOTION_API_KEY=gmk_live_... python3 shorts_quickstart.py"""
import json, os, time, urllib.request
BASE = os.environ.get("GOMOTION_API_BASE", "https://gomotionai.com")
KEY = os.environ["GOMOTION_API_KEY"]
def api(method, path, body=None, headers=None):
req = urllib.request.Request(BASE + path, method=method, data=json.dumps(body).encode() if body is not None else None,
headers={"Authorization": "Bearer " + KEY, "Content-Type": "application/json", **(headers or {})})
with urllib.request.urlopen(req, timeout=60) as r:
return json.load(r)
order = {"niche": "reddit-story", "options": {"story_prompt": "a cat who secretly runs the bakery downstairs"},
"length_seconds": 60}
quote = api("POST", "/v1/shorts/quote", order)
print("price:", quote["credits"], "Shorts credits")
short = api("POST", "/v1/shorts", dict(order, max_cost_credits=quote["credits"]),
{"Idempotency-Key": "quickstart-%d" % int(time.time())})
print("short", short["id"], short["status"], flush=True)
while short["status"] in ("queued", "running"):
time.sleep(float(os.environ.get("POLL_S", "60")))
short = api("GET", "/v1/shorts/" + short["id"])
print(short["status"], short["progress"]["percent"], "%", flush=True)
if short["status"] != "succeeded":
raise SystemExit("not finished: %s" % short["error"])
urllib.request.urlretrieve(short["files"][0]["download_url"], "short.mp4")
print("saved short.mp4; edit it:", short["editor_url"])
// GoMotion Shorts API quickstart (Node 18+): price a Reddit-story Short, order it, wait, download.
// GOMOTION_API_KEY=gmk_live_... node shorts_quickstart.mjs
import { writeFile } from "node:fs/promises";
const BASE = process.env.GOMOTION_API_BASE || "https://gomotionai.com";
const api = async (method, path, body, headers = {}) => {
const r = await fetch(BASE + path, { method, headers: { Authorization: `Bearer ${process.env.GOMOTION_API_KEY}`,
"Content-Type": "application/json", ...headers }, body: body ? JSON.stringify(body) : undefined });
if (!r.ok) throw new Error(`${r.status} ${await r.text()}`);
return r.json();
};
const order = { niche: "reddit-story", options: { story_prompt: "a cat who secretly runs the bakery downstairs" }, length_seconds: 60 };
const quote = await api("POST", "/v1/shorts/quote", order);
console.log("price:", quote.credits, "Shorts credits");
let short = await api("POST", "/v1/shorts", { ...order, max_cost_credits: quote.credits }, { "Idempotency-Key": `quickstart-${Date.now()}` });
console.log("short", short.id, short.status);
while (["queued", "running"].includes(short.status)) {
await new Promise((r) => setTimeout(r, Number(process.env.POLL_S || 60) * 1000));
short = await api("GET", `/v1/shorts/${short.id}`);
console.log(short.status, short.progress.percent, "%");
}
if (short.status !== "succeeded") throw new Error(`not finished: ${short.error}`);
await writeFile("short.mp4", Buffer.from(await (await fetch(short.files[0].download_url)).arrayBuffer()));
console.log("saved short.mp4; edit it:", short.editor_url);
Niche options
GET /v1/shorts/niches/{slug} describes every option of a niche, generated from the niche itself: key,
type (string, text, enum, enum_list, boolean, number, range, color, url, upload, voice, language, music,
background, caption_style, ideas, list), label, default, choices (with
seconds on length choices and sets when a choice is a preset that also sets other options),
limits, and show_if (the option only counts when other options have those values; operators
$ne, $in, $truthy). simple: true marks the main options (the web’s
quick form). Send only what you need in options; unknown keys or values are refused with 422
invalid_options and an errors map, before anything is charged.
Shortcuts: length_seconds (the nearest length choice), voice, language (the main
voice / language option) and characters. Empty text fields (story, script, questions, idea) are written by the
niche’s AI, exactly as the web’s Generate does.
Voices & languages
Shorts use high-quality voices only. GET /v1/shorts/voices?language=en&niche=reddit-story lists the
niche’s own narrators, GoMotion’s high-quality catalogue and your own cloned voices; pass an id as
voice, or auto for the niche’s narrator. Standard voices are refused. GET
/v1/shorts/languages?niche=… gives each language option’s codes.
Characters
Niches that take characters (characters.supported) write the story around them and keep their look in
every still and clip. Create one from an image (see uploads), then order with "characters": ["<id>"]
(main character first, up to 4, {"id", "role"} to give a role). GET /v1/shorts/characters also lists
GoMotion’s ready characters (ready: true). Photo niches (characters.photo_options) take an
image file in that option instead.
UP=$(curl -sS -X POST https://gomotionai.com/v1/shorts/uploads -H "Authorization: Bearer $GOMOTION_API_KEY" \
-H "Content-Type: application/json" -d '{"kind": "image", "filename": "hero.png", "size": '$(stat -c %s hero.png)'}')
curl -sS -X PUT --upload-file hero.png "$(echo "$UP" | jq -r .put_url)"
FILE=$(curl -sS -X POST https://gomotionai.com/v1/shorts/uploads/$(echo "$UP" | jq -r .id)/complete \
-H "Authorization: Bearer $GOMOTION_API_KEY" | jq -r .file)
curl -sS -X POST https://gomotionai.com/v1/shorts/characters -H "Authorization: Bearer $GOMOTION_API_KEY" \
-H "Content-Type: application/json" -d '{"name": "Toasty", "image": "'$FILE'", "description": "a toast slice with a face"}'
Uploads
Images, videos and audio for options that take a file: POST /v1/shorts/uploads {kind, filename, size}
returns a signed put_url; PUT the bytes there, then POST /v1/shorts/uploads/{id}/complete returns
the file value to use (image ≤ 25 MB, video ≤ 600 MB, audio ≤ 100 MB).
Results, links, editor
GET /v1/shorts/{id}: status (queued, running, succeeded, failed, cancelled, expired),
progress and stages while it works; when it succeeds, files[] with
download_url and thumbnail_url: signed links that need no key and work for 1 hour (GET the Short
again for fresh ones; files are kept 48 h, so download them). editor_url opens the Short in the GoMotion editor
and job_url its page in the app (the account’s web login). A failed Short has one plain
error line and its credits back. POST /v1/shorts/{id}/cancel cancels a queued Short at once; a
running Short stops at its next step, usually within seconds (the answer may still read running), then reads
cancelled with its credits back.
Webhooks
Subscribe a webhook to short.succeeded, short.failed and short.cancelled
(same signing, retries and dedupe as video events); data.object is the
Short as GET /v1/shorts/{id} returns it.
Limits & errors
Per account: Shorts in progress 3 / 5 / 10 (by plan size), Shorts per day 150 / 400 / 1,500 (per key 100 / 300 / 1,000); a key’s daily credit cap counts Shorts credits too. Need more? support@gomotionai.com.
| HTTP | code | What to do |
|---|---|---|
| 402 | insufficient_shorts_credits | Buy Shorts credits (buy_url); nothing was charged |
| 402 | over_max_cost | The price is above max_cost_credits |
| 410 | niche_closed | The niche is coming soon: pick another one |
| 422 | invalid_options | Fix the options named in errors |
| 422 | not_sellable | Something required is missing (the quote’s missing) |
| 429 | shorts_limit | Wait for a Short to finish (Retry-After) |
| 403 | not_yours | An id or file of another account |
| 503 | shorts_unavailable / api_paused | Retry later; nothing was charged |
AI agents (MCP)
The GoMotion MCP server has the Shorts tools: list_short_niches,
get_short_niche, estimate_short, create_short, get_short,
list_shorts, cancel_short, list_short_voices, list_short_languages,
list_short_characters, create_short_character, delete_short_character,
create_short_upload + complete_short_upload (and upload_short_file in the local
package), a docs resource per niche (gomotion://shorts/niches/{slug}) and the prompt make_short.
Ask your agent: “make me a 60-second Reddit story Short about a cat who runs a bakery, tell me the price
first”.
All niches
| Niche | Name | What it makes | Lengths | Options |
|---|---|---|---|---|
ai-story | AI Story | Narrated story with AI scenes | 30s, 35s, 45s, 60s, 90s, 120s, 180s, 300s | voice lang characters |
argument-conversation | Argument Conversation | Two characters, one debate, voices and captions over gameplay. | 45s, 60s, 75s, 90s, 120s, 150s, 180s | voice lang |
auto-clipper | Auto Clipper | Long video in, viral Shorts out | from content | |
ball-escape-ring | Ball Escape Ring | The ball has 60 seconds to escape | from content | |
clips | Clips | Your clip with a title above it, 9:16. | from content | lang |
cz-3d-cartoon-shorts | 3D Cartoon Shorts | Funny 3D characters act out your story | 45s, 60s, 75s | voice lang |
cz-3d-informational | 3D Informational | How things work, in 3D cutaways | 20s, 30s, 45s | voice |
cz-low-poly-shorts | Low Poly Shorts | “Would you survive…?” in a retro low-poly look | 20s, 30s, 45s | voice lang |
cz-roblox-story-shorts | Roblox Story Shorts | One rule, told as a blocky 3D story | 20s, 30s, 45s | voice |
faith-miracle | Faith Miracle | Talking fruit parables people share | 30s, 45s, 60s, 90s, 120s, 180s, 300s, 600s | voice lang characters |
meme-clips | Meme Clips | Reaction clip + your caption | from content | lang |
objects-explain | Objects Explain | Talking objects, one fact each | 15s, 30s, 45s, 60s, 90s, 120s | voice lang characters |
questions-quiz | Quiz Questions | Tiered answer list, countdown timer, narrated questions over gameplay. | from content | voice lang |
reddit-story | Reddit Story | Post card, Reddit narrator, one-word captions, bright gameplay. | 30s, 45s, 60s, 90s, 120s, 180s | voice lang |
roblox-rant | Roblox Rant | Viral rant + obby gameplay | 15s, 30s, 45s, 60s, 90s, 120s, 180s | voice lang |
room-transformation | Room Transformation | Room makeovers and epoxy floors, built in timelapse. | lang | |
skeleton-ai | Skeleton AI | One recurring skeleton, a new episode every day | 30s, 45s, 60s, 90s, 120s, 180s, 300s, 600s | voice lang characters |
split-screen | Split Screen | Your clip on top, retention gameplay below, word-by-word captions | from content | |
stickman-history | Stickman History | Inside history, one scene at a time | 35s, 60s, 90s, 120s, 180s, 300s, 600s | voice lang |
text-video | Fake Text Messages | Phone chat, bubble by bubble, two voices, gameplay background. | 30s, 60s, 120s, 180s, 300s | voice lang |
top-5 | Top 5 | Your clips, ranked #5 to #1 | from content | voice lang |
ts-animals-3d | 3D Animals | Cat soap operas, rags to riches, karma | 30s, 35s, 48s, 60s, 90s, 120s | lang |
ts-claymation-hood-parody | Claymation Hood Parody | Hood parody series, vinyl toy or plasticine | 25s, 35s, 60s, 90s | lang |
ts-football-anime | Football Anime | Real matches, anime arcs, posted the same night | 30s, 45s, 60s, 90s | lang |
ts-horror-choose-companion | Horror POV: Choose your companion | Interactive POV horror · comment 1 or 2 | 60s, 90s, 105s, 120s, 180s | voice lang |
ts-human-pixar | 3D Humans | Pixar dramas with price tags | 30s, 48s, 54s, 60s, 90s, 120s | lang |
twitter-thread | Twitter Thread | X post cards over gameplay, read aloud. | from content | voice lang |
Endpoints
| Path | What | Scope | |
|---|---|---|---|
| GET | /v1/shorts/niches | Shorts niches you can order now | videos:read |
| GET | /v1/shorts/niches/{id} | A niche: every option, lengths, voices, languages, characters, prices | videos:read |
| POST | /v1/shorts/quote | Price of a Short (free) | videos:read |
| POST | /v1/shorts | Create a Short (charges the Shorts credits pot) | videos:write |
| GET | /v1/shorts | List Shorts (newest first) | videos:read |
| GET | /v1/shorts/{id} | Get a Short (status, stages, files, links) | videos:read |
| POST | /v1/shorts/{id}/cancel | Cancel a Short (credits come back as in the web) | videos:write |
| GET | /v1/shorts/voices | High-quality voices for Shorts | videos:read |
| GET | /v1/shorts/languages | Languages (and a niche's language codes) | videos:read |
| GET | /v1/shorts/characters | Your characters and the ready ones | videos:read |
| POST | /v1/shorts/characters | Create a character (free) | videos:write |
| DELETE | /v1/shorts/characters/{id} | Delete one of your characters | videos:write |
| POST | /v1/shorts/uploads | Upload a file for a Short (signed PUT) | videos:write |
| POST | /v1/shorts/uploads/{id}/complete | Hand the uploaded file to GoMotion | videos:write |
| GET | /v1/shorts/files/{ticket} | A Short's file (the signed download_url / thumbnail_url / light_url link) | None |
openapi.json (API 1.3.0).