Replace the example API key with a workspace key and keep model-specific fields unchanged unless the table above marks them optional.
curl -X POST http://omixa.cloud/api/v1/videos/jobs \
-H "Authorization: Bearer omx_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"model": "sora",
"prompt": "A cinematic product reveal of an AI API gateway on a clean white desk.",
"video_operation": "text_to_video",
"seconds": 8,
"size": "1280x720",
"wait_seconds": 3,
"poll_interval_seconds": 2
}'
const response = await fetch('http://omixa.cloud/api/v1/videos/jobs', {
method: 'POST',
headers: {
'Authorization': 'Bearer omx_live_xxx',
'Content-Type': 'application/json'
},
body: "{\n \"model\": \"sora\",\n \"prompt\": \"A cinematic product reveal of an AI API gateway on a clean white desk.\",\n \"video_operation\": \"text_to_video\",\n \"seconds\": 8,\n \"size\": \"1280x720\",\n \"wait_seconds\": 3,\n \"poll_interval_seconds\": 2\n}"
});
const data = await response.json();
import requests
response = requests.post(
'http://omixa.cloud/api/v1/videos/jobs',
headers={'Authorization': 'Bearer omx_live_xxx', 'Content-Type': 'application/json'},
json={
"model": "sora",
"prompt": "A cinematic product reveal of an AI API gateway on a clean white desk.",
"video_operation": "text_to_video",
"seconds": 8,
"size": "1280x720",
"wait_seconds": 3,
"poll_interval_seconds": 2
}
)
print(response.json())
$ch = curl_init('http://omixa.cloud/api/v1/videos/jobs');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer omx_live_xxx', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{
"model": "sora",
"prompt": "A cinematic product reveal of an AI API gateway on a clean white desk.",
"video_operation": "text_to_video",
"seconds": 8,
"size": "1280x720",
"wait_seconds": 3,
"poll_interval_seconds": 2
}',
CURLOPT_RETURNTRANSFER => true,
]);
$response = curl_exec($ch);
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", "omx_live_xxx");
var json = @"{
""model"": ""sora"",
""prompt"": ""A cinematic product reveal of an AI API gateway on a clean white desk."",
""video_operation"": ""text_to_video"",
""seconds"": 8,
""size"": ""1280x720"",
""wait_seconds"": 3,
""poll_interval_seconds"": 2
}";
var response = await client.PostAsync("http://omixa.cloud/api/v1/videos/jobs", new StringContent(json, System.Text.Encoding.UTF8, "application/json"));
var body = await response.Content.ReadAsStringAsync();
payload := []byte(`{
"model": "sora",
"prompt": "A cinematic product reveal of an AI API gateway on a clean white desk.",
"video_operation": "text_to_video",
"seconds": 8,
"size": "1280x720",
"wait_seconds": 3,
"poll_interval_seconds": 2
}`)
req, _ := http.NewRequest("POST", "http://omixa.cloud/api/v1/videos/jobs", bytes.NewReader(payload))
req.Header.Set("Authorization", "Bearer omx_live_xxx")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)