curl https://api.o1key.com/omni-video/kling-3.0-omni \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{
"type": "prompt",
"text": "shot 1, 3, Wide shot: a traveler walks across a misty mountain ridge at sunrise; shot 2, 3, Close-up: the traveler stops, turns toward the warm sunlight, and smiles;"
}
],
"settings": {
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 6,
"audio": "native",
"multi_shot": true
},
"options": {
"external_task_id": "omni-multishot-001",
"watermark_info": {"enabled": false}
}
}'
import os
import requests
API_KEY = os.environ["API_KEY"]
resp = requests.post(
"https://api.o1key.com/omni-video/kling-3.0-omni",
headers={
"Authorization": f"Bearer {API_KEY}",
},
json={
"contents": [
{
"type": "prompt",
"text": "shot 1, 3, Wide shot: a traveler walks across a misty mountain ridge at sunrise; shot 2, 3, Close-up: the traveler stops, turns toward the warm sunlight, and smiles;",
},
],
"settings": {
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 6,
"audio": "native",
"multi_shot": True,
},
"options": {
"external_task_id": "omni-multishot-001",
"watermark_info": {"enabled": False},
},
},
)
resp.raise_for_status()
print(resp.json())
const API_KEY = process.env.API_KEY;
const resp = await fetch("https://api.o1key.com/omni-video/kling-3.0-omni", {
method: "POST",
headers: {
"Authorization": `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"contents": [
{
"type": "prompt",
"text": "shot 1, 3, Wide shot: a traveler walks across a misty mountain ridge at sunrise; shot 2, 3, Close-up: the traveler stops, turns toward the warm sunlight, and smiles;"
}
],
"settings": {
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 6,
"audio": "native",
"multi_shot": true
},
"options": {
"external_task_id": "omni-multishot-001",
"watermark_info": {
"enabled": false
}
}
}),
});
console.log(await resp.json());