APIPod logoAPIPod

MCP · CLIfor agents and terminals

Generate AI images and video in Claude

Connect the remote MCP server to Claude, ChatGPT, Cursor or Codex, or install the CLI for terminals, scripts and agents that only run shell commands. Same models, same account, same USD prices.

any MCP client — no SDK, no proxy

terminals, scripts, CI — npm, Homebrew or pipx

OAuth 2.1 · PKCE S256 · 7 MCP tools · 1 CLIplugin source on GitHub (Apache-2.0)CLI source on GitHub (MIT)

claude.ai · 7 toolsPOST /mcp

Studio shot of this mug on a grey backdrop, 1:1 at 2K — and a 5-second clip panning across the same surface.

estimate_cost(2 jobs)

→ $0.05 + $0.40 = $0.45 · balance $18.20 · sufficient

generate_image(1:1, 2K) → img_2c91e4

generate_video(5s, 1080p) → vid_7f3a9c

A cobalt-blue ceramic mug on a pale gray studio backdrop, soft window light, product photography
30-second cinematic aerial action spectacle: a battleship cuts through storm waves as a fighter jet bursts from volumetric clouds0:05

Both jobs completed. Image 1:1 2K · video 5s 1080p.

completed · $0.45 · s.apipod.ai/…

2 jobscheck_job polledfailed jobs refunded

00/MCP or CLI

Two ways in, one account.

Pick by where the work happens. Chat and IDE hosts call tools over MCP; anything that runs a shell calls the CLI. Both sign in with OAuth and bill the same balance.

MCP server

For chat and IDE hosts

Claude, ChatGPT, Cursor, Codex and other MCP clients call seven tools by URL. Nothing to install.

runs in
the host, by URL
sign-in
OAuth in the host, once
media in
public HTTPS URLs
results
permanent URLs in the chat
Connect a client

CLI

For terminals, scripts and CI

One binary for macOS, Linux and Windows. Same commands for people and programs: tables by default, --json and exit codes for scripts.

runs in
any shell
sign-in
browser OAuth, or APIPOD_API_KEY
media in
local files or URLs
results
files on disk, or JSON
Install the CLI

01/clients

Connect your client.

Every client reads the same two discovery documents: RFC 9728 at /.well-known/oauth-protected-resource/mcp, RFC 8414 at /.well-known/oauth-authorization-server. Hosted clients redirect to an allowlisted domain; CLIs call back on localhost, so no port has to be registered.

Anything else with an MCP client and OAuth support uses the same URL.

Claude

hosted redirect

Hosted redirect to claude.ai/api/mcp/auth_callback. Nothing to install.

  1. 01

    Settings → Connectors → Add custom connector.

  2. 02

    Paste the URL and continue; Claude reads the auth metadata on its own.

  3. 03

    Sign in with your APIPod account.

url
https://api.apipod.ai/mcp

redirect
claude.ai/api/mcp/auth_callback
endpoint
api.apipod.ai/mcp
auth
OAuth 2.1 · PKCE S256
scopes
profile · email

The APIPod CLI.

Generate from a terminal, a Makefile, a CI job or an agent that only runs shell commands. Local files are uploaded for you, results are downloaded, and the balance never moves past a cap you set.

$ npm install -g apipod
$ apipod auth login

Installs the binary for your platform through optionalDependencies. No install script runs, so --ignore-scripts works.

Sign in once

  • apipod auth login opens the browser and listens on 127.0.0.1 for one callback. Approve the APIPod CLI and the tokens go to the system keychain.
  • For CI, set APIPOD_API_KEY. There is no --api-key flag: arguments end up in shell history and in ps.
  • Credentials are bound to the host that issued them and never sent to another one. apipod auth logout revokes them on the server.

Built for scripts

--json prints exactly one document on stdout; progress goes to stderr. --no-wait returns the job id, and job wait picks it up later.

job=$(apipod video "a sunrise over the fjord" \
  -m <model> --no-wait --max-cost 2 --json | jq -r .job_id)

apipod job wait "$job" -o ./out --json \
  | jq -r '.results[].path'

Exit codes to branch on

0
success
3
not signed in, or the credential was rejected
6
insufficient balance, over --max-cost, or spending not confirmed
7
the wait timed out; the job keeps running
8
the request or a local file was rejected

Full table, including 1, 2, 4 and 5, in the CLI README.

03/capabilities

GET /mcp/catalog →

One set of capabilities, two ways to call them.

Every MCP tool has a CLI command. Two of them spend money: image and video generation reserve the quote and are refunded when the provider call fails.

capabilityMCPCLIcost
Browse the cataloglist_modelsapipod models listfree
Parameters a model acceptsget_model_paramsapipod models paramsfree
Price quote vs. balanceestimate_costapipod costfree
Remaining balanceget_balanceapipod balancefree
Generate or edit an imagegenerate_imageapipod imagepaid
Generate a videogenerate_videoapipod videopaid
Wait for a job, get resultscheck_jobapipod job waitfree
Upload a local file, get a URL— (URLs only)apipod uploadfree

Generation returns a job_id; check_job (MCP) or apipod job wait (CLI) returns permanent URLs and the final cost in USD. The CLI also downloads them.

Models you can call today.

The agent picks from the same catalog as the REST API. Each card links to that model's page with its full spec and per-second or per-request price.

06/billing

How a generation is billed.

Prices come from the same table as the REST API, in USD, on both surfaces. No credits, no subscription for the connection.

quote first

estimate_cost and apipod cost return a USD price for the exact request and whether the balance covers it.

a cap that holds

The CLI quotes before every generation and asks above $1. Without a terminal it refuses with exit code 6 unless --max-cost or --yes is given, so an agent cannot spend unattended.

refunded on failure

A provider-side failure returns the reservation to your balance automatically.

per-client grants

Each MCP client and the CLI hold their own OAuth grant. Revoke one under Authorized apps in the console without touching the rest.

07/FAQ

Details that come up

The questions that decide whether this fits your setup.

Should I use the MCP server or the CLI?

Use MCP when the work happens in a chat or IDE host such as Claude, ChatGPT or Cursor. Use the CLI for terminals, scripts, CI and agents that can only run shell commands. Both use the same account, models and prices, and you can use both.

Which clients are supported?

Claude, Claude Code, ChatGPT, Codex, Cursor, Gemini CLI, Grok, Muse Code, OpenClaw and WorkBuddy — each with the exact config on this page. Anything else that speaks Streamable HTTP and OAuth works with the same URL. DeepSeek Harness uses a native plugin instead of MCP.

Which account does the client charge?

The APIPod account you sign in with during OAuth. Generations land in your request log with path=/mcp, like any REST call.

Do I need an API key?

Not for MCP: authentication is OAuth 2.1 with PKCE and nothing is pasted into the client. The CLI also signs in with OAuth; an API key in APIPOD_API_KEY is only for CI and other machines without a browser. The DeepSeek Harness plugin is the exception: it has no OAuth and always uses an API key.

Which models are available?

Every image and video model in the catalog — Seedance, Kling, Seedream, Nano Banana, GPT Image, Wan and the rest. list_models returns what your account can call right now.

Is speech supported?

Speech models appear in list_models, but generate_speech is not shipped yet — its output has to be persisted the same way images and video are. Use the REST API for TTS today.

Can I use my own images as references?

Yes, on models whose get_model_params lists image input: pass public HTTPS URLs in image_urls — the first is the primary (edit source or first video frame). Base64 is not accepted over MCP.

What if my image is only on disk?

With the CLI, pass the path: --image ./photo.png uploads it first, and apipod upload returns a URL for anything else. Over MCP the server takes URLs only, so upload the file in the console or with the CLI and pass the URL.

How long does a generation take?

Images typically land in 10–40 seconds, video in 1–5 minutes. The client polls check_job for status; a finished job returns permanent URLs, so the result does not expire.

What can a client do?

An MCP client reads the catalog and balance and submits generations, with profile and email scopes. The CLI additionally holds apipod:api, the scope that calls the REST API, and only the first-party CLI can request it. Every grant is revocable on its own under Authorized apps.

Is there a rate limit?

Rate limits match your plan's REST API limits. There is no subscription for the MCP connection itself.

Create an account, then connect a client or install the CLI.

Sign in once from the client or with apipod auth login. No proxy to run, and no key to paste unless you want one for CI.