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/Make your first API request
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

Make your first API request

This walkthrough uses AI Photo Face Swap to show the shared REST flow: authenticate, submit once, and query the returned task ID.

On this page01 / 04
01Prepare02Submit03Query result04Next steps

1. Prepare your account and inputs

Use an active subscription and an API key from the Developer Console. Make the key available to your local process as VIDMAGE_API_KEY. See API key setup for credential handling.

The request below uses the two public sample image URLs from the existing AI Photo Face Swap example. For your own inputs, use reachable URLs or complete a local file upload first. A submitted generation uses account credits.

Set VIDMAGE_IDEMPOTENCY_KEY to a fresh unique value for this logical generation request. Reuse that value if the same submission needs a transport retry. Use a new value for a different task. This request identifier is separate from your API credential.

2. Submit the sample request

curl --fail-with-body --silent --show-error \
  -X POST "https://vidmage.ai/api/v1/face-swap/submit" \
  -H "Authorization: Bearer ${VIDMAGE_API_KEY}" \
  -H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{
    "targetImageUrl": "https://vidmage.ai/assets/images/samples/blue-eyed-woman-sunlight.webp",
    "referenceFaceImageUrl": "https://vidmage.ai/assets/images/samples/smiling-man-sweater.webp"
  }'

Check the HTTP response and success value. Save taskId before doing anything else. A successful submission means the task was accepted; it does not mean the output is ready.

3. Ask for that task, not a new one

Replace TASK_ID_FROM_SUBMIT with the value returned by the first request.

curl --fail-with-body --silent --show-error \
  -X POST "https://vidmage.ai/api/v1/face-swap/query" \
  -H "Authorization: Bearer ${VIDMAGE_API_KEY}" \
  -H "Content-Type: application/json" \
  --data-raw '{"taskId":"TASK_ID_FROM_SUBMIT"}'

Check the returned status. The published client examples recognize success, succeeded, and completed as completion values, and failed or error as failure values. For this capability, the output field is imageUrl. The task guide covers polling and response nesting.

Continue with your own request

  • Adjust the image inputs and face indices using the AI Photo Face Swap reference.
  • Use AI Video Face Swap for an existing video, or Seedance 2.5 for video generation.
  • If the submission response is lost or unclear, follow task recovery before submitting again.
  • For a non-success HTTP response, use errorType and recovery instructions rather than repeating the request unchanged.
Reference reviewed September 21, 2026Documentation home ↗