Model API
Kling Video to Audio
Generate audio from input videos using Kling
Model id
kling-video/video-to-audioRun 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
| Name | Type | Description |
|---|---|---|
video_urlrequired | string (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_prompt | string | Sound effect prompt. Cannot exceed 200 characters. |
background_music_prompt | string | Background music prompt. Cannot exceed 200 characters. |
asmr_mode | boolean | Enable ASMR mode. This mode enhances detailed sound effects and is suitable for highly immersive content scenarios. |
Output
A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.
"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