Kling 4.0 Flash Reference to Video 사용 방법
-
자료 준비: image_urls(최대 10개), video_urls(최대 5개, 동영상 요소와 합산해 2-20s) 및 elements(최대 7개, 동영상 포함 시 최대 3개)를 지정하세요.
-
프롬프트에서 자료 지정: @image_1, @video_1은 배열 순서에 따라 지정하고, @Hero는 요소의 name을 사용합니다. 프롬프트에서 지정하는 모든 자료는 요청에 포함되어야 합니다.
-
출력 설정: duration(3-20s), aspect_ratio(auto, 16:9, 9:16, 1:1, 21:9), keep_original_sound를 설정하세요. 출력은 항상 720p입니다.
-
요청을 제출하고 결과 받기: /api/v1/predictions/{request_id}/result를 폴링하거나 webhook_url을 전달하세요.
curl -X POST https://api.muapi.ai/api/v1/kling-4.0-flash-reference-to-video \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"prompt": "@Hero sits at the desk, picks up the doll from @image_1 and greets the camera", "image_urls": ["https://example.com/doll.png"], "elements": [{"name": "Hero", "image_urls": ["https://example.com/hero-front.jpg", "https://example.com/hero-side.jpg"], "tag": "character", "voice_url": "https://example.com/hero-voice.mp3"}], "duration": 10}'