Skip to content
maskostudioDocs

All pages

  • Overview/docs/use-cases
  • Mobile app/docs/use-cases#mobile
  • Website/docs/use-cases#website
  • Desktop/docs/use-cases#desktop
  • AI agents/docs/use-cases#agents
  • Videos/docs/use-cases#videos
  • Brand/docs/use-cases#brand
  • Start building/docs/ai-agents
  • Set up once/docs/ai-agents#set-up-once
  • Ask in plain words/docs/ai-agents#ask-in-plain-words
  • What your agent does/docs/ai-agents#what-your-agent-does
  • MCP server/docs/mcp
  • Masko for Cursor/docs/ai-tools/cursor
  • Masko in ChatGPT/docs/ai-tools/chatgpt
  • Masko in Lovable/docs/ai-tools/lovable
  • Masko in Devin/docs/ai-tools/devin
  • Masko in n8n/docs/ai-tools/n8n
  • Masko in Hermes Agent/docs/ai-tools/hermes
  • Masko in OpenClaw/docs/ai-tools/openclaw
  • Start here/docs/tutorials#start-here
  • All tutorials/docs/tutorials
  • Create your first mascot/docs/tutorials/first-mascot
  • Create an animated character/docs/tutorials/first-animation
  • Make a character talk/docs/tutorials/make-it-talk
  • Put your mascot on your website/docs/tutorials/mascot-on-your-website
  • Guide onboarding with a talking mascot/docs/tutorials/web-onboarding-mascot
  • Add a mascot that celebrates progress and welcomes users back/docs/tutorials/web-progress-companion
  • Add a talking support mascot in the bottom right/docs/tutorials/web-support-mascot
  • Show a mascot while your AI thinks/docs/tutorials/ai-loading-mascot
  • Give your AI agent a face/docs/tutorials/ai-agent-face
  • Animate the mascot you already have/docs/tutorials/animate-your-mascot
  • How to make Telegram stickers/docs/tutorials/telegram-stickers
  • How to make Discord stickers/docs/tutorials/discord-stickers
  • Quickstart: your first animation/docs/quickstart
  • Terminal quickstart/docs/terminal
  • API keys and workspaces/docs/authentication
  • CLI browser login/docs/authentication/cli
  • How mascots work/docs/how-mascots-work
  • Credits and costs/docs/credits
  • From text/docs/create/from-text
  • From an image/docs/create/from-image
  • From a website/docs/create/from-website
  • From a brand book/docs/create/from-brand-book
  • Reference images/docs/manage/references
  • Props/docs/manage/props
  • What you can generate/docs/generation
  • Pose-to-animation walkthrough/docs/generate/workflow
  • Images and poses/docs/generate/images
  • Animations/docs/generate/animations
  • Talking animations/docs/generate/talking
  • Sounds/docs/generate/sounds
  • Animation presets/docs/generate/presets
  • Write good requests/docs/generate/requests
  • Logos, backgrounds and stickers/docs/generate/design-assets
  • Cursor follower/docs/generate/cursor-follower
  • Batch generation/docs/generate/batch
  • Image and video exports/docs/manage/media-exports
  • Canvases and releases/docs/canvas
  • Build a canvas/docs/canvas/build
  • Canvas templates/docs/canvas/templates
  • Generate canvas assets/docs/canvas/generate-all
  • Export a canvas/docs/canvas/export
  • Overview and demo/docs/player
  • Play one animation/docs/player/one-animation
  • Play a canvas/docs/player/canvas
  • Ship in an app with an app key/docs/player/app-keys
  • Play on an ESP32 board/docs/player/esp32
  • Hosting and file formats/docs/generate/cdn
  • File sizes/docs/generate/file-sizes
  • Float a mascot on your Mac/docs/integrations/desktop
  • Jobs and polling/docs/manage/jobs
  • Webhooks/docs/manage/webhooks
  • Manage mascots and assets/docs/manage/collections
  • All endpoints/docs/reference
  • Requests and responses/docs/reference/conventions
  • Errors and recovery/docs/reference/errors
  • Command line reference/docs/terminal/commands
  • TypeScript SDK/docs/sdk/typescript
  • Changelog/docs/reference/changelog
  • Migrate to mascots and canvases/docs/manage/studio-migration
Get an API key
Documentation

Masko MCP server

The Masko MCP server gives your AI app tools to create a mascot, animate it, build an interactive canvas and bring the files into your project. You ask in plain words, and the app calls the tools. One server works for every app:

https://masko.ai/api/mcp

Connect your app

Your app connects in one of two ways:

  • Sign in, in Claude Code, Codex, Cursor, Claude, ChatGPT, opencode and VS Code. Your app opens masko.ai. You sign in, choose your personal or team workspace and approve. You never paste a key. A team connection needs an owner or admin.
  • API key, for scripts, machines without a browser, and apps that can only send a header. Open Developers → API keys, choose Create API key and keep Read + Write. Copy the key: it is shown once. It belongs to the workspace you are in when you create it. Then set it in your terminal:
export MASKO_API_KEY=masko_YOUR_KEY

Add that line to your shell profile, such as ~/.zshrc, so every new terminal has it. Never commit the key or put it in browser code.

Pick your app for its setup. The MCP tab of the Developers page shows the same steps with copy buttons.

Your app

Sign in, no key. Run this in your terminal:

claude mcp add --transport http --scope user masko https://masko.ai/api/mcp

Start Claude Code, run /mcp, choose masko and Authenticate. Your browser opens masko.ai: sign in, choose your workspace and approve. --scope user adds Masko to all your projects. Leave it out to add Masko to this project only. From the terminal, claude mcp list checks it.

Or use your API key, for scripts and machines without a browser. Run this in the terminal where MASKO_API_KEY is set:

claude mcp add --transport http --scope user masko https://masko.ai/api/mcp \
  --header "Authorization: Bearer $MASKO_API_KEY"

The command saves the key in your Claude Code settings on this computer. To share the setup with your team in a repository, put this in .mcp.json instead. Each person keeps their own MASKO_API_KEY:

{
  "mcpServers": {
    "masko": {
      "type": "http",
      "url": "https://masko.ai/api/mcp",
      "headers": { "Authorization": "Bearer ${MASKO_API_KEY}" }
    }
  }
}

Check the connection

Ask your agent:

Show my Masko projects, mascots and credit balance. Don't generate anything.

Reading is free. If something is off:

What you seeWhat to do
The app shows no Masko toolsRun /mcp (Claude Code, Codex) or open the app's MCP settings, check that masko is connected, then restart the app.
Codex says Masko isn't available, but /mcp lists itAsk it to "use the masko MCP tools". Codex can keep a server's tools out of sight until it searches for them.
A browser sign-in opens in Claude CodeApprove it on masko.ai: Claude Code connects without a key. To use a key instead, add Masko with the --header command above.
A browser sign-in opens in CodexApprove it on masko.ai: Codex connects without a key. If you added Masko with --bearer-token-env-var, check echo $MASKO_API_KEY in the terminal that starts Codex.
"This connection is read-only"Use a Read + Write key, or reconnect and approve write access.
Other projects or credits than you expectedThe key or connection belongs to another workspace. Create the key in the right workspace, or reconnect and choose it.

Then ask in plain words

Create a friendly mascot for this app with Masko and make it wave hello.
Tell me the cost first.
When someone finishes a lesson, make the mascot celebrate,
then go back to its idle loop.
Add these animations to this React app, with no flicker between clips.

The agent shows you the cost before anything paid, follows each job until the files are ready, installs the Masko player and connects your app's events to it. The server recommends the Masko player for every animation and canvas: finished animations and releases come with the player code to use. More prompts are in Build with your AI agent.

What the tools do

AreaTools
Accountget_account: the workspace, its credit balance, its projects and the work still running
Mascotslist_mascots (search by name), get_mascot (with its poses, animations, backgrounds and sounds by name, and whether its files are public), create_mascot (with reacts_to for what in your app it reacts to), update_mascot (name, context, room for movement, reference pictures, keep a voice sample, or add a sound from an audio link)
Ideassuggest_ideas: free poses with a matching animation, background places and voice descriptions, written for the mascot
Pictures and animationsgenerate_mascot_image, make_background, animate_mascot (with sound for an animation that makes one of its sounds, timed to the motion, used_for for where it plays, and replaces with redo_reason when it redoes one you found wrong)
Voices and talkingsample_mascot_voices, make_talking_animation
Jobs and filesget_job (waits for the result), list_assets (a mascot's poses, animations and backgrounds by name, or files by ID or type), export_asset, publish_mascot_assets (permanent public links, or takes them offline with unpublish)
Interactive canvasescreate_canvas, get_canvas, save_canvas, estimate_canvas_generation, generate_canvas, release_canvas, get_release_delivery, create_app_key, list_app_keys, revoke_app_key
Docsread_docs: any docs page, the use cases with their tutorials, or the paragraphs that match a search
Feedbacksend_feedback

Every app gets every tool, interactive canvases included. ChatGPT also takes pictures you attach in the chat. A read-only connection lists only the tools that change and charge nothing.

Pictures go straight into the tools as HTTPS image links or asset IDs, in references, or in animate_mascot's source. A pose has one asset_id, which every tool takes. animate_mascot takes a crop to animate one square of a wide picture instead of its center. make_talking_animation can end on another pose and takes a credit ceiling: above it, nothing is charged and the price comes back, with the script Masko would use when the words were sent as text. estimate_canvas_generation prices each clip at the length and quality saved on its move, as Studio's Generate all does, and lists finished clips the mascot already has that fit a move, to reuse for free; generate_canvas takes its plan_id. get_release_delivery summarizes a release for the web (Electron too), iPhone, iPad and Mac apps, Android, or Masko for Mac, newest release by default (or by its number); a React Native or Flutter app reads the iPhone files on iOS and the Android ones on Android. It gives the inputs your app sets or fires, the poses, the moves and any missing video, and include_files adds every playback file. With formats: av1, apps get the lighter AV1 files the Masko player plays. An app you ship reads its canvas itself with an app key from create_app_key, which can only read that mascot's released canvases; list_app_keys shows each key's use and revoke_app_key stops one at once. read_docs is free and works on read-only connections: before setting up the player or using a field it is unsure of, the agent reads the page instead of guessing, and when you are choosing what to build it reads the use cases. Apps that read MCP resources also get the main guides as masko://docs/... resources.

The server also tells your app how to write good requests: a pose is one still moment (what the body does, how it feels, what it holds), an animation is one action written as time ranges over the clip, with no return, and neither describes the mascot's look, which its reference pictures already set. A mascot made from a description has no reference picture until you keep one, so the agent suggests keeping a pose you like with update_mascot.

What the results look like

  • A finished job lists each file by format with its asset ID, and gives one link to show, such as the transparent PNG of a pose or the WebM of an animation. It says when private links expire, or that the links are permanent.
  • A failed job gives a plain reason and says whether your credits were refunded. Files it finished before the failure are kept. Trying again charges again, under a new operation_id, so the agent asks you first.
  • A paid call that timed out is safe to send again with the same operation_id: it returns the first answer and never charges twice. Results and errors say when an answer is such a replay.
  • Errors carry error.code, error.message and, for a wrong input, error.param with the name of the field the agent sent.
  • A part of a read that could not load, such as the voice in get_mascot, is named in unavailable instead of looking empty.

File links from get_job and list_assets are private and stop working within hours, so never put them in an app, a website or code. publish_mascot_assets gives every finished file of the mascot a permanent public link on assets.masko.ai, and files you make afterwards get one too. Calling it again hosts any finished file still missing. With unpublish it takes the files offline again: the public links stop working at once, so the agent asks you first. get_mascot says whether a mascot is public. Anyone with a public link can open the file, so the agent asks you before publishing. Publishing costs no credits, and hosting is free up to 50,000 views a month, then $0.125 per 1,000 views (see hosting). It does not list the mascot on the marketplace.

Good to know

  • Credits. Generation spends the connected workspace's Masko credits, not your AI app's subscription. Reading, estimates and job checks are free. See credits and costs.
  • Your own image. The server runs on masko.ai and cannot read files on your computer. Give it an HTTPS image link, upload the image on masko.ai first, or let your agent upload it from the terminal with masko studio POST upload --file image.png (terminal quickstart) or POST /v1/upload. The agent is told never to put your files on another public host to get a link.
  • Buying credits. Every paid result says the balance left (balance_left_credits_usd), and when it no longer covers another Standard animation the agent tells you when it shows the result. A canvas estimate gives the balance and how much is missing before you agree, and a refused call says how much it lacks (short_credits_usd). Agents point you to Billing; the tools never take a payment.
  • Hosting. New mascots made through the MCP server start with public hosting off. Ask the agent to publish the assets before you use their files in an app or a website: see public links.
  • A stopped run. Ask the agent to check its existing jobs before it generates again, so you never pay twice.
  • Limits. 120 requests per minute per connection.
  • Feedback. Your agent can tell the Masko team what is confusing, broken or missing, or what works well, with send_feedback. It works on read-only connections too. See Send feedback to Masko.

Pages you will use

PageWhat you do there
Developers → MCPCopy the setup for your app, and disconnect the apps you signed in with
Developers → API keysCreate or revoke a key for scripts and apps that only send a header
BillingBuy credits

Disconnecting an app or revoking a key stops its future requests. It does not delete your mascots or cancel a generation that already started.

Without MCP

Any coding agent that runs commands can use the REST API with MASKO_API_KEY and the docs at masko.ai/llms.txt: see Build with your AI agent. To work from the terminal yourself, see the terminal quickstart.