Model API

Kling Video to Audio

Generate audio from input videos using Kling

Model id

Use this in every request
kling-video/video-to-audio

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "kling-video/video-to-audio",
  "input": {
    "video_url": "https://example.com/input.mp4"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "kling-video/video-to-audio", "quote_id": "QUOTE_ID", "input": {"video_url":"https://example.com/input.mp4"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for kling-video/video-to-audio
NameTypeDescription
video_urlrequiredstring (URL)
The video URL to extract audio from. Only .mp4/.mov formats are supported. File size does not exceed 100MB. Video duration between 3.0s and 20.0s.
sound_effect_promptstring
Sound effect prompt. Cannot exceed 200 characters.

Default: Car tires screech as they accelerate in a drag race

background_music_promptstring
Background music prompt. Cannot exceed 200 characters.

Default: intense car race

asmr_modeboolean
Enable ASMR mode. This mode enhances detailed sound effects and is suitable for highly immersive content scenarios.

Default: false

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]

Pricing

  • 1 video$0.06/ video

The exact charge for your input comes from a quote. How charges settle