MCP usage uses the same API token and API balance as direct API calls. See API Keys & Billing before connecting a client.
Server Details
| Setting | Value |
|---|---|
| Transport | Streamable HTTP |
| URL | https://api.krea.ai/mcp |
| Header key | Authorization |
| Header value | Bearer KREA_API_TOKEN |
KREA_API_TOKEN with a token from krea.ai/app/api/tokens. Only workspace owners and admins can create API tokens.
Claude Code
Run this command in your terminal:Codex
- Open Settings > MCP servers in Codex.
- Add a new server.
- Select Streamable HTTP as the transport.
- Paste the server URL:
- Add this header:
Cursor
Open the command palette, search for Open MCP settings, then add this entry tomcp.json:
Using Krea Through MCP
Once connected, ask your agent to list Krea models or inspect a model schema before generating. Model IDs match the API paths used in the rest of the developer docs, such asimage/krea/krea-2/medium or video/google/veo-3.1.
For example:
Troubleshooting
| Issue | Fix |
|---|---|
| Authentication fails | Confirm the header is exactly Authorization: Bearer KREA_API_TOKEN and that the token has not been revoked. |
| Client cannot connect | Confirm the client is configured for Streamable HTTP and uses https://api.krea.ai/mcp. |
Generation is rejected with 402 | Add API balance at krea.ai/app/api. |
| Model call fails | Ask your agent to inspect the model schema before retrying. MCP requests use the same model inputs as the API. |
Next Steps
API Keys & Billing
Create API tokens and manage API balance.
Interactive Playground
Try requests in the Krea app before asking an agent to run them.
Deprecations
See how MCP exposes model migration metadata.
Model APIs
Browse endpoint schemas and model parameters.