To create a VidMage AI Video & Image API key, sign in to VidMage, open the Developer Console from your account page, click Create API key, name the key, and copy it. One API key works for both the VidMage REST API and MCP clients such as Codex, Claude Code, and Cursor.

You need an active VidMage subscription for live API access. VidMage shows the full key only once, so have a safe place ready to store it before you start.

How to Create a VidMage API Key in the Developer Console

Step 1: Go to vidmage.ai and click LOGIN in the top right corner.

VidMage click login on homepage

Enter your email and click Continue, or click Continue with Google. Google login and email login are separate VidMage accounts, so sign in with the one that holds your subscription.

VidMage log in with email or Google

Step 2: Click your profile picture in the top right to open your account page. Since live API access needs an active subscription, you will need to check the subscription status. If it says "You are not a member yet," click Subscribe first. Then, from the API & MCP section, click Open console.

VidMage account page open Developer Console

Step 3: The console opens on the Workspace overview. From here, click the +Create API key button in the top right, or open API keys in the left menu and use the same button there. The menu also holds Usage, Task history, MCP connections, Explore APIs, and Documentation.

VidMage Developer Console create API key

Step 4: Type a name that tells you where the key will be used, such as "Personal project" or "Cursor," and click Create key. Create a dedicated key for each app or tool, so you can revoke one without breaking the others. You can currently keep up to 10 keys at a time.

VidMage name API key and click create key

Step 5: The Your new API key window shows the full key. Click Copy key and paste it straight into your password manager or your app's credential settings. VidMage will not show this key again after you close the window.

If you use VidMage through MCP, pick your tool's tab: Codex App / CLI / IDE, Claude Code CLI, or Cursor ~/.cursor/mcp.json. Each tab shows a ready-made configuration with your key already filled in.

VidMage copy new API key and choose MCP tool

Step 6: If you use a configuration tab, click Copy configuration. Then tick the acknowledgment message at the bottom and click Done. The key now appears on the API keys page as Active, with only its first few characters visible.

VidMage confirm API key copied and click Done

How to Store Your VidMage API Key Safely

API calls and website tasks draw from the same credit balance, so anyone with your key can spend your credits. Treat it like a password.

  • Keep it private: Store it on your server, in an environment variable, or in your tool's private configuration. VidMage's docs use the variable name VIDMAGE_API_KEY.
  • Keep it out of shared places: Don't put it in website code, public repositories, logs, or chat messages.
  • Send it only in the header: For API authentication, add it as Authorization: Bearer YOUR_API_KEY. MCP clients use the same key with https://vidmage.ai/api/mcp.
  • Use one key per tool: Separate keys let you cut off one app without touching the rest.

How to Replace or Revoke a VidMage API Key

For safety and security reasons, VidMage cannot show a key again. So if you lose one or think someone else has it, create a new key and revoke the old one. Revoking works right away, and to use the API again, you will need a new key.

Step 1: Open API keys in the Developer Console, click +Create API key, and follow the aforementioned steps. Add the new key to your app or MCP configuration before you revoke the old one, so nothing stops mid-task.

Step 2: Once the new API key is created, find the key that needs to be replaced by its name in Your keys and click Revoke at the far right of its row.

VidMage API keys page revoke old key

Step 3: VidMage will double-check for this action because all of the applications using it will stop working immediately. Click Revoke to confirm, or Cancel to keep the key.

VidMage confirm revoke API key

Troubleshooting API Key Problems

The Console can help you check your subscription, replace a lost key, or make room for another one:

Problem

What to do

You lost the saved key

Create a replacement, update your apps, and revoke the old key.

You cannot create another key

If you have reached the 10-key limit, revoke a key you no longer use.

API access needs a subscription

Activate or renew the subscription on the account that owns the key. Existing keys work again after renewal.

For authentication or MCP connection errors, see How to Fix Common VidMage API and MCP Errors.

Start Using Your VidMage API Key

With your key saved securely, you can connect VidMage to your application or an MCP client.

To generate media from your own code, follow the guides to generate AI video with the VidMage API or generate images with the VidMage API.

To use VidMage through an AI agent, follow the guide for Claude Code, Cursor, or Codex. Each guide explains how to connect VidMage, check access, and create and save your first asset.

PUT IT INTO PRACTICE

Try it in VidMage

Open the tool and follow the steps above.

Open Developer resources ↗