Character Swap

Transform the character in a video while keeping all movements and actions intact, using Kling motion control. Provide a reference video and a transformed first frame with the new character.

Endpoint changed

The old canonical swap_character job workflow was removed. Use the dedicated route below.

Endpoint

POST
/api/v1/character-swap/direct

Create a character swap job

Credits

Cost

300 credits per job.

Input Parameters

Request Body

NameTypeDescription
referenceVideoUrlrequiredstringURL of the reference video (3-30 seconds)
transformedFrameUrlrequiredstringURL of the transformed first frame with the new character
modestring"standard" (default) or "pro"
orientationstring"video" (default) or "image"
keepAudiobooleanPreserve original audio (default false)
voiceIdstringOptional ElevenLabs voice ID for voice transformation

Example Request

Create Character Swap Job

curl -X POST https://vydra.ai/api/v1/character-swap/direct \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "referenceVideoUrl": "https://example.com/reference.mp4",
    "transformedFrameUrl": "https://example.com/new-character-frame.png"
  }'

Example Response

Response (201 Created)json
{
  "success": true,
  "jobId": "880e8400-e29b-41d4-a716-446655440003",
  "status": "running",
  "estimatedTime": "2-5 minutes",
  "_links": {
    "status": "https://vydra.ai/api/v1/jobs/880e8400-e29b-41d4-a716-446655440003"
  }
}

Poll GET /api/v1/jobs/{jobId} for completion.