Kling 4.0 Flash Referanstan Videoya Nasıl Kullanılır
-
Materyalleri toplayın: image_urls (en fazla 10), video_urls (en fazla 5; video öğeleriyle birlikte toplam süre 2-20s) ve elements (en fazla 7; video içeren en fazla 3 öğe) sağlayın.
-
İstemde belirtin: @image_1, @video_1 dizi sırasına göre kullanılır; @Hero, bir öğenin name değerini kullanır. Her belirtim istekteki bir materyalle eşleşmelidir.
-
Çıktıyı yapılandırın: duration (3-20s), aspect_ratio (auto, 16:9, 9:16, 1:1, 21:9) ve keep_original_sound. Çıktı her zaman 720p olur.
-
İsteği gönderin ve sonucu alın: /api/v1/predictions/{request_id}/result adresini sorgulayın veya bir webhook_url iletin.
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}'