curl --request POST \ --url https://api.poyo.ai/api/generate/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "kling-2.6", "callback_url": "https://your-domain.com/callback", "input": { "prompt": "A young woman walking through a bustling city street, talking on her phone with a cheerful expression", "sound": true, "aspect_ratio": "16:9", "duration": 5 }}'
import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "kling-2.6",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A young woman walking through a bustling city street, talking on her phone with a cheerful expression",
"sound": True,
"aspect_ratio": "16:9",
"duration": 5
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'kling-2.6',
callback_url: 'https://your-domain.com/callback',
input: {
prompt: 'A young woman walking through a bustling city street, talking on her phone with a cheerful expression',
sound: true,
aspect_ratio: '16:9',
duration: 5
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
curl --request POST \ --url https://api.poyo.ai/api/generate/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "kling-2.6", "callback_url": "https://your-domain.com/callback", "input": { "prompt": "A young woman walking through a bustling city street, talking on her phone with a cheerful expression", "sound": true, "aspect_ratio": "16:9", "duration": 5 }}'
import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "kling-2.6",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A young woman walking through a bustling city street, talking on her phone with a cheerful expression",
"sound": True,
"aspect_ratio": "16:9",
"duration": 5
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'kling-2.6',
callback_url: 'https://your-domain.com/callback',
input: {
prompt: 'A young woman walking through a bustling city street, talking on her phone with a cheerful expression',
sound: true,
aspect_ratio: '16:9',
duration: 5
}
})
};
fetch('https://api.poyo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));