MiniMax-H3
ระดับราคาที่เคยใช้ แถวที่ระบุ "ปัจจุบัน" คือราคาจริง
https://api.xah.io/v1/video/generations
curl 'https://api.xah.io/v1/video/generations' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: video-request-001' \
-d '{
"model": "MiniMax-H3",
"prompt": "A gentle camera movement across a mountain landscape",
"size": "1280x720"
}'
# Replace JOB_ID with the id returned above
curl 'https://api.xah.io/v1/video/generations/JOB_ID' \
-H 'Authorization: Bearer YOUR_API_KEY'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/video/generations', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
'Idempotency-Key': 'video-request-001'
},
body: JSON.stringify({
"model": "MiniMax-H3",
"prompt": "A gentle camera movement across a mountain landscape",
"size": "1280x720"
})
});
const data = await res.json();
console.log(data);
const job = await (await fetch('https://api.xah.io/v1/video/generations/' + encodeURIComponent(data.id), { headers: { 'Authorization': 'Bearer YOUR_API_KEY' } })).json();
console.log(job);
import json, requests
url = 'https://api.xah.io/v1/video/generations'
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
'Idempotency-Key': 'video-request-001',
}
payload = json.loads("{\n \"model\": \"MiniMax-H3\",\n \"prompt\": \"A gentle camera movement across a mountain landscape\",\n \"size\": \"1280x720\"\n}")
res = requests.post(url, headers=headers, json=payload, stream=True, timeout=120)
print(res.status_code, res.json())
data = res.json()
job = requests.get(url + '/' + str(data['id']), headers={'Authorization': 'Bearer YOUR_API_KEY'}, timeout=120)
print(job.status_code, job.json())
{
"model": "MiniMax-H3",
"prompt": "A gentle camera movement across a mountain landscape",
"size": "1280x720"
}
ส่ง prompt ด้วยคีย์ API ของคุณ — ใช้เครดิตจริง สตรีมกลับทันที