Connect AI Agents
Use Cremi's generation tools from Claude, Cursor, Codex and any MCP-compatible agent — or script them with the Cremi CLI.
Cremi exposes a hosted MCP (Model Context Protocol) server. Connect it to your favorite AI agent and it can generate with your account — credits, history and assets work exactly like in the app.
1.Get your access token
Every request is authenticated with a personal access token tied to your Cremi account.
- Open your profile menu and go to the AI Agents tab.
- Switch the toggle on to generate your token.
- Copy the token and keep it secret — anyone who has it can generate with your credits.
Regenerating the token or turning MCP off immediately invalidates the previous token.
2.Connect via MCP
Point any MCP client at the server URL below, sending your token in the mcp-access-token header.
https://cremi.ai/mcp-server/http
Run this in your terminal:
claude mcp add cremi --transport http https://cremi.ai/mcp-server/http \ --header "mcp-access-token: YOUR_ACCESS_TOKEN"
Replace YOUR_ACCESS_TOKEN with the token from step 1.
3.Available tools
Tools run against your account: credits are charged per generation at the same rates as the app, failed generations are refunded automatically, and results are saved to your Assets.
Generates an image from a text prompt, optionally guided by reference images for image-to-image and editing workflows.
| Model | Notes |
|---|---|
| imagen-4-fast · imagen-4-standard · imagen-4-ultra | Google Imagen 4 — fast, standard and ultra quality tiers |
| flux-pro · flux-pro-ultra | FLUX 1.1 Pro and Pro Ultra |
| openai | OpenAI gpt-image-1 |
| nano-banana · nano-banana-pro · nano-banana-2 | Nano Banana family — editing and reference images, 1K / 2K / 4K resolution |
Aspect ratios: 16:9 · 3:2 · 4:3 · 1:1 · 3:4 · 2:3 · 9:16
Resolutions: 1K, 2K, 4K (Nano Banana family only)
Generates a video from a text prompt, optionally animating a start image. Credits are charged on submission and refunded automatically if the render fails.
| Model | Notes |
|---|---|
| grok-imagine | Cheapest option — 720p, 1–15s |
| kling-2.1-standard · kling-2.5-turbo-pro | Kling 2.1 Standard and 2.5 Turbo Pro — 5s or 10s |
| veo-3.1-fast-silent · veo-3.1-fast · veo-3.1 | Google Veo 3.1 — silent, fast and full quality tiers; the non-silent tiers add a native audio track. 4 / 6 / 8s |
| seedance-2.0 | ByteDance Seedance 2.0 — 720p, 4–15s |
| wan-2.6-flash | Wan 2.6 Flash — image-to-video only, so image_url is required. 5 / 8 / 10 / 15s |
Aspect ratios: 16:9 · 9:16 · 1:1
Video takes minutes, so this tool submits the job and waits briefly. If it's still rendering you get a task id to poll — the render continues on our side either way.
Collect a video once it finishes rendering, and list the video models with their current credit cost, durations and resolution. Always read costs from list_video_models rather than assuming — pricing changes.
More tools — lipsync and motion control — are on the roadmap.
Prefer the terminal, or want to keep your coding agent's context lean? The Cremi CLI wraps the same tools. Cremi CLI guide →
Troubleshooting
- 401 Unauthorized / authentication failed
- Your token is missing, mistyped or was regenerated. Copy a fresh token from the AI Agents tab and update your client config. Use the hyphenated header name mcp-access-token.
- Insufficient credits
- Generations cost credits exactly like in the app. Top up or upgrade your plan, then retry — failed generations are refunded automatically.
- Generation times out
- Image generation can take a few minutes. Keep the default timeouts (the server sends progress updates while it works), and retry once if your network dropped.
- Tools don't show up in my agent
- Restart the client after editing its config, check the JSON/TOML syntax, and verify the server URL. In Claude Desktop, check Settings → Developer → MCP Logs.
Security notes
Your access token grants full generation access on your account and spends your credits. Treat it like a password: don't share it and don't commit it to repositories.
To revoke access at any time, turn the MCP toggle off or regenerate the token in Settings.