VidMage

VidMage is an AI video and image creation platform for creators. Turn your ideas and images into videos and fresh visuals.

Open the creator tools
Explore APIs
AI Video APIsAI Image APIsAI Audio APIsAI 3D APIsAI Face Swap APIsAI Effects APIs
Build with VidMage
QuickstartAPI keysVidMage MCPError reference
Your account
Developer consoleAbout VidMagePlans and creditsAPI billingContact support
© 2026 VidMage. All rights reserved.
Privacy PolicyTerms of ServiceReport Abuse
Skip to content
VidMage/Developers
Overview
APIs
All APIsAI Video APIsAI Image APIsAI Audio APIsAI 3D APIsAI Face Swap APIsAI Effects APIs
DocumentationVidMage MCPOpen console
Developers/Documentation/Authenticate API requests
Start here
DocumentationQuickstartAuthentication
Core workflows
File uploadsTask lifecycleCredits and billingErrors and recoveryVidMage MCP
Browse documentation
All API documentation
Video documentation 36AI Video Head SwapAI Video Face SwapAI Multiple Face Swap VideoAI Text to VideoAI Image to VideoAI Video to VideoAI Video ExtenderAI Video to Anime ConverterAI Video Background RemoverAI Video Watermark RemoverSora Link Watermark RemoverSora 2 Video GeneratorAI Photo DanceAI Motion ControlAI Talking PhotoAI Lip SyncAI Subtitle GeneratorAI Video UpscalerKling AI Video GeneratorPixVerse AI Video GeneratorHailuo AI Video GeneratorMiniMax H3 AI Video GeneratorGrok Video GeneratorSora 2 AI Video GeneratorWan AI Video GeneratorWan 3.0 AI Video GeneratorSeedance 2.0 AI Video GeneratorSeedance 2.5 AI Video GeneratorSeedance AI Video GeneratorMidjourney Video GeneratorVidu AI Video GeneratorVeo 3.1 AI Video GeneratorKling 3.0 AI Video GeneratorSkyReels AI Video GeneratorHappyHorse AI ModelRunway AI Video Generator
Image documentation 24AI Photo Face SwapAI Head SwapAI Multiple Face SwapAI Text to ImageAI Image to ImageAI Girl GeneratorAI Hairstyle ChangerAI Clothes ChangerAI Object RemoverAI Image Watermark RemoverAI Image UpscalerGPT Image 2 Image to ImageAI GIF Face SwapMidjourney AI Image GeneratorGrok AI Image GeneratorNano Banana AI Image GeneratorGPT Image GeneratorSeedream AI Image GeneratorZ-Image AI ModelWan Image GeneratorQwen Image GeneratorQwen 3.0 Image GeneratorGPT Image 2 GeneratorGPT Image 2.5 Generator
Audio documentation 3AI Voice CloneAI Voice DesignAI Text to Music
3d documentation 3AI Image to 3DAI Four-View to 3DAI Text to 3D

Authenticate API requests

REST and MCP access use dedicated API keys tied to your VidMage account subscription. Send the key in the Authorization header.

On this page01 / 04
01Create a key02Auth header03Recovery04MCP access

Create and store a dedicated key

  1. Activate a subscription, then open the Developer Console.
  2. Create an API key and store it when it is shown. The console shows the full key only once.
  3. Provide the key to your server process or local client through its credential configuration.

Keep the credential outside page source, public repositories, logs, and chat messages. The examples in these guides read VIDMAGE_API_KEY from the process environment; the variable name is a local convention.

Send the Bearer header

Authorization: Bearer YOUR_API_KEY

Use this header on capability discovery, OpenAPI downloads, upload preparation, task submission, and task queries. JSON requests also use Content-Type: application/json.

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer ${VIDMAGE_API_KEY}" \
  "https://vidmage.ai/api/v1/capabilities"

This read-only discovery call is a useful first check of the credential and enabled capability set.

The separate storage PUT uses only the headers returned for that upload. Do not send your account API key to the storage URL.

Choose the recovery action from errorType

REST returns 401 NEED_API_KEY for a missing or invalid key. The MCP transport distinguishes the missing, malformed, and revoked credential codes listed below. Use the actual errorType returned by your transport.

ResponseWhat to change
401 AUTHENTICATION_REQUIREDAdd the missing credential to the client making the request.
401 AUTHORIZATION_HEADER_INVALIDUse exactly the Bearer header format shown above.
401 API_KEY_INVALID_OR_REVOKEDCreate a new key and replace the invalid key in the client.
401 API_KEY_INVALID_CREDENTIALReplace the key; the service cannot use that stored credential.
401 ACCOUNT_SESSION_REFRESH_REQUIREDSign in to VidMage once. Keep the current client key configuration.
403 NEED_SUBSCRIBEActivate or renew the subscription. Existing keys resume after renewal.

Signing in again is the documented fix for ACCOUNT_SESSION_REFRESH_REQUIRED, not for every 401. For service-side credential errors and tracing, see error recovery.

Use the same access model with MCP

MCP clients use the same subscription-backed API key with the https://vidmage.ai/api/mcp endpoint. See VidMage MCP for discovery, uploads, and task tools.

Reference reviewed September 21, 2026Documentation home ↗