Skip to main content
SnapGen runs a hosted Model Context Protocol server. Once it is connected, an AI agent can search the live model catalog, read each model’s input schema and public price, run chat, image and video models, and keep checking long jobs, without you writing API requests. Initialization, tool discovery, catalog search, schemas and pricing work without a key. Chat, model runs, job checks and the account tool need a valid API key.

1. Create an API key

Create a key on the API keys page and keep it in an environment variable. Never paste a real key into a shared config file, screenshot or prompt.
macOS / Linux
Windows PowerShell
Start your client from the same terminal session so it inherits the variable.

2. Add the server to your client

If a config file already lists other MCP servers, add only the snapgen entry and keep the rest.
Open Codex settings > MCP servers > Add server > Streamable HTTP, or add this to ~/.codex/config.toml:
~/.codex/config.toml
Start a new Codex session to load it.

3. Verify without paying

Ask your agent:
You are connected when the SnapGen tools appear, snapgen_account returns your balance, and snapgen_search_models returns models. None of these steps charges your balance.

Tools

The default address exposes eight compact tools. The agent searches first and reads a model’s schema only when it needs it, which keeps the tool list small. When a job is still running, snapgen_run_model returns its task_id. Keep checking it with snapgen_check_job; submitting the same job again would run and bill it twice. Pass an idempotency_key to make a retried submission safe.

Scoped tool modes

For stable workflows you can expose one typed tool per model instead: Scoped modes also keep snapgen_check_job and snapgen_account. Each typed tool’s input schema is the model’s live request schema, plus wait_seconds and idempotency_key for media models.

Billing

MCP does not change prices. Every model call is an ordinary API request made with your key: the same prices, balance, key limits and model allowlist apply, and failed generations are not charged. Searching, reading schemas and reading prices are free.

Troubleshooting

  • No SnapGen tools: check where the config was saved, then reload the MCP server or restart the client.
  • “This tool needs an API key”: the client is not sending the Authorization header. Make sure SNAPGEN_API_KEY is set in the environment that starts the client.
  • 401 or 403 from a paid tool: the key is invalid, revoked, or not allowed to use that model. Check it on the API keys page.
  • Tool timeouts: use snapgen_submit_job for video and poll with snapgen_check_job instead of waiting in one call.