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/Handle API errors
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

Handle API errors

Use the HTTP status for the broad outcome, errorType for the specific cause, and recovery for the next action. Every REST response includes X-Request-Id.

On this page01 / 05
01Fix inputs02Wait and retry03Unknown outcomes04Service errors05Troubleshooting

Correct input or account state

Status and errorTypeRecovery
400 INVALID_JSON / VALIDATION_ERRORCorrect JSON or the fields listed in details. Unchanged input should not be retried.
401 AUTHENTICATION_REQUIRED / NEED_API_KEYProvide a subscription-backed API key. NEED_API_KEY is a REST compatibility value.
401 AUTHORIZATION_HEADER_INVALIDCorrect the Bearer header format.
401 API_KEY_INVALID_OR_REVOKED / API_KEY_INVALID_CREDENTIALReplace the unusable key in the requesting client.
401 ACCOUNT_SESSION_REFRESH_REQUIREDSign in to VidMage once; keep the client key configuration.
402 NEED_PURCHASE_CREDITSAdd credits or lower the operation cost.
403 NEED_SUBSCRIBEActivate or renew the subscription.
404 CAPABILITY_NOT_ENABLEDRefresh capability discovery and choose an enabled capability.
410 UPLOAD_EXPIREDCreate and complete a new temporary upload.

Wait while preserving the original request

Status and errorTypeRecovery
409 UPLOAD_NOT_READYComplete the file transfer before using its URL.
409 IDEMPOTENCY_IN_PROGRESSWait for the indicated delay and retain the same idempotency value.
409 IDEMPOTENCY_CONFLICTCheck the original request identity. Use a new key only for a genuinely different generation request.
429 RATE_LIMITEDHonor Retry-After, then use capped backoff. Continue tracking tasks already submitted.
TASK_QUERY_INTERRUPTED / RESULT_MISSING in MCPKeep querying the existing task ID.
TASK_NOT_FOUNDCheck recent tasks before considering a retry.

Resolve unknown outcomes before retrying

SUBMISSION_OUTCOME_UNKNOWN, BILLING_OUTCOME_UNKNOWN, and REFUND_OUTCOME_UNKNOWN need recovery, not an automatic new submission. Follow the response action:

Recovery actionWhat to do
GET_RECENT_TASKSUse get_recent_tasks in MCP, or the REST recent-tasks endpoint.
QUERY_TASK_ID_OR_CONTACT_SUPPORTQuery the same task ID, or contact support if it remains unresolved.
CONTACT_SUPPORT_WITH_IDEMPOTENCY_KEY_AND_BUSINESS_IDRetain and share the requested identifiers with support.

Keep the original idempotency value. Do not resubmit the task or attempt a second refund while the outcome is uncertain.

Handle service errors by their cause

ErrorRecovery
CREDENTIAL_STORAGE_UNAVAILABLEHonor Retry-After and retry once. If it persists, stop and provide the request ID to support. Keep the API key and do not submit the task again.
TASK_PERSISTENCE_UNCERTAINRetain taskId, avoid resubmission, and contact support if it persists.
BILLING_INVARIANT_FAILEDDo not retry, rotate the key, change the original Idempotency-Key, or submit again. Contact support.
Other *_SERVICE_UNAVAILABLE / UPSTREAM_* responsesUse capped backoff and retain task identity, unless a more specific recovery action applies.

Include identifiers, exclude credentials

For support, collect X-Request-Id, capability, HTTP status, errorType, and the operation identifier, usually taskId and requestId for the two direct-media watermark-removal capabilities. Include the original idempotency key or business ID when requested. Do not include the API credential.

The authentication guide explains credential recovery, while billing behavior covers pending charges and refunds.

Reference reviewed September 21, 2026Documentation home ↗