Skip to main content
The API and MCP provide two ways to use Magica outside the web and mobile apps.

Use the API

The REST API is the best choice when your software controls the request and response. It supports programmatic access to models, tools, run status, and related capabilities documented in the developer reference. It also includes chat endpoints for language models. Common uses include backend services, internal tools, mobile apps, and automated business processes.

Use MCP

The MCP server is the best choice when an MCP-compatible AI client should decide when and how to use Magica. The client can discover available Magica tools and call supported model capabilities during a conversation. Claude (Claude Desktop and claude.ai) connects by signing in to your Magica account; other apps connect with an API key. See Which AI apps can I connect to the Magica MCP server?.

Good to know

Both surfaces give you access to Magica’s models and tools. Super Agent tasks run in the Magica app. Media generated through the API or MCP is deleted automatically after 7 days. Download or store any outputs you want to keep. Create and manage credentials through Settings → API Keys. Treat API keys like passwords and never place them in public code or client-side applications. View the API and MCP documentation