Kling
此内容尚不支持你的语言。
| Provider | Kuaishou |
| Model name | kling |
| Endpoint | /v1/video/generations |
| Credits | 80 per video |
Features
Section titled “Features”- Motion control
- High frame rate
- Realistic movements
API Usage
Section titled “API Usage”curl -X POST https://api.hiapi.ai/v1/video/generations \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "kling", "prompt": "a drone flying over a beach", "duration": 5 }'import requests
response = requests.post( "https://api.hiapi.ai/v1/video/generations", headers={ "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, json={ "model": "kling", "prompt": "a drone flying over a beach", "duration": 5 })
print(response.json()["url"])const response = await fetch("https://api.hiapi.ai/v1/video/generations", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ model: "kling", prompt: "a drone flying over a beach", duration: 5 })});
const data = await response.json();console.log(data.url);