MUAPI CLI & MCP

Every muapi model — from your terminal and agent

One open-source CLI to run any muapi model. Image, video, audio, 3D. Built for terminals and coding agents like Claude Code, Cursor, and Codex.

$npm install -g muapi-cli

For Builders

Interested in a white-label MCP?

Embed the muapi MCP server into your product — fully branded as your own.

Three commands and you're shipping

1

Install

Node 18+ required. One global install gives you the muapi binary everywhere.

$npm install -g muapi-cli
2

Configure

Opens the access-keys page in your browser. We auto-detect a copied key and validate it live.

$muapi auth configure
3

Run any model

Same shape for all models. Pass the model ID and inputs — get a URL back, or pipe --output-json to your scripts.

$muapi run flux-dev-image -p "a cyberpunk skyline at golden hour"

Built for humans and agents

Designed to work standalone or as a tool inside any AI coding agent.

Dynamic per-model help

Run muapi run <model> -h and the CLI fetches that model's input schema live and prints the exact flags it accepts — no guessing.

Aliases that ship with your repo

Define named shortcuts in muapi.json that bundle a model + default inputs. Drop the file in your repo and every teammate uses the same presets.

Agent-native by design

Every command supports --output-json on stdout and progress on stderr. Drop a SKILL.md so Claude Code, Cursor, and Codex know how to call it.

No magic, no daemon

The CLI never mutates your prompt and never opens a background process. It calls api.muapi.ai directly. Open source, MIT licensed.

What a real session looks like

From catalog browse to JSON output — three commands.

~/projects/marketing
# 1. browse the catalog
$ muapi models list --type image

# 2. inspect a model's inputs — schema fetched live
$ muapi run flux-dev-image -h
  * prompt          string
    width           number  default: 1024
    height          number  default: 1024
    output_format   string  default: "jpeg"  enum: jpeg | png | webp

# 3. run — JSON out so you can pipe it
$ muapi run flux-dev-image \
    -p "a cyberpunk skyline at golden hour" --output-json
{
  "model": "flux-dev-image",
  "outputs": ["https://cdn.muapi.ai/.../skyline.jpeg"],
  "elapsed_ms": 3241
}

Plug into your coding agent in one step

Connect muapi to Cursor, Windsurf, Claude Code, or Claude Desktop via the Model Context Protocol. Your agent can generate images, videos, and audio without leaving the editor.

Open Cmd+Shift+POpen MCP settings and add to mcp.json:

mcp.json
{
  "mcpServers": {
    "muapi": {
      "url": "https://api.muapi.ai/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_MUAPI_KEY"
      }
    }
  }
}

Get your key at muapi.ai/access-keys. Restart your editor after saving.

19 tools available via MCP

generate_imageimage_to_imagegenerate_videoimage_to_videocreate_musictext_to_audioupscale_imageremove_backgroundface_swapvideo_effectslipsyncget_resultaccount_balancelist_api_keyscreate_api_keydelete_api_keyupload_filelist_modelsgenerate_3d

Open source. Ready today.

MIT licensed, published on npm and PyPI, hosted on GitHub. Issues and PRs welcome.