MiniMax
MiniMax ویڈیو

MiniMax-H3

کانٹیکسٹ واضح نہیں
ٹوکن/سیکنڈ —
Uptime 24h —
درخواستیں 61
Performance & reliability
ردعمل کا وقت ناپے گئے زیادہ سے زیادہ 500 حالیہ درخواستیں
500 حالیہ درخواستیں
مشاہدہ شدہ آؤٹ پٹ رفتار— ٹوکن/سیکنڈ
ردعمل کا وقت P50— ms
ردعمل کا وقت P95— ms
نمونے—
کافی ڈیٹا نہیں
ردعمل کا وقت ناپے گئے زیادہ سے زیادہ 500 حالیہ درخواستیں
آپ ٹائم 95.45%
24 گھنٹے پہلےابھی
7 دن پہلےابھی
حوالہ ماڈل سے ردعمل کی مماثلت
یہ فیصد جانچے گئے ردعمل اور حوالہ جاتی ڈیٹا کے درمیان مماثلت ظاہر کرتا ہے؛ یہ طے نہیں کرتا کہ ماڈل اصل ہے یا نقلی۔
ابھی حوالہ جاتی ڈیٹا نہیںکافی ڈیٹا نہیں
براہ راست موازنےابھی کوئی براہ راست موازنہ نہیں
اپنی API کلید سے جانچیں

API connection

Base URL

https://api.xah.io/v1
ویڈیو پروٹوکول Task API v2 (async)
طریقہ POST · application/json
تصدیق Bearer ٹوکن (API key)
API کی اقسام ویڈیو
Show all 1 endpoints
https://api.xah.io/v2/video_generation

Task API v2 (async) · عوامی دورانیہ فیلڈ: duration.

ایک بار POST بھیجیں، پھر مکمل ہونے تک GET سے جانچیں۔ ویڈیو اسٹریمنگ استعمال نہیں کرتی۔

curl --fail-with-body --max-time 600 'https://api.xah.io/v2/video_generation' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "A gentle camera movement across a mountain landscape"
        }
    ],
    "duration": 4,
    "ratio": "16:9"
}'

# Replace JOB_ID with the task_id returned above.
# Repeat GET every 3 seconds until succeeded, failed, cancelled or expired.
# Do not repeat POST while the job is pending.
curl --fail-with-body --max-time 30 'https://api.xah.io/v2/query/video_generation/JOB_ID' \
  -H 'Authorization: Bearer YOUR_API_KEY'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v2/video_generation', {
  method: 'POST',
  signal: AbortSignal.timeout(600000),
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "A gentle camera movement across a mountain landscape"
        }
    ],
    "duration": 4,
    "ratio": "16:9"
})
});
const data = await res.json();
if (!res.ok || (data.base_resp && data.base_resp.status_code !== 0)) throw new Error(JSON.stringify(data));
console.log(data);
const jobId = data.task_id;
if (!jobId) throw new Error('Missing job ID');
const pollUrl = 'https://api.xah.io/v2/query/video_generation/' + encodeURIComponent(jobId);
const deadline = Date.now() + 600000;
// Timeout stops local waiting only; do not submit the same job again.
while (true) {
  if (Date.now() >= deadline) throw new Error('Polling timed out; resume GET ' + pollUrl);
  await new Promise(resolve => setTimeout(resolve, 3000));
  const poll = await fetch(pollUrl, {headers: {'Authorization': 'Bearer YOUR_API_KEY'}, signal: AbortSignal.timeout(30000)});
  const data = await poll.json();
  if (!poll.ok || (data.base_resp && data.base_resp.status_code !== 0)) throw new Error(JSON.stringify(data));
  const job = data.task;
  if (!job || !job.status) throw new Error('Invalid job response');
  if (job.status === 'succeeded') { console.log(job); break; }
  if (['failed', 'cancelled', 'expired'].includes(job.status)) throw new Error(JSON.stringify(job));
}
import json, requests, time

url = 'https://api.xah.io/v2/video_generation'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
}
payload = json.loads("{\n    \"model\": \"MiniMax-H3\",\n    \"content\": [\n        {\n            \"type\": \"text\",\n            \"text\": \"A gentle camera movement across a mountain landscape\"\n        }\n    ],\n    \"duration\": 4,\n    \"ratio\": \"16:9\"\n}")

res = requests.post(url, headers=headers, json=payload, timeout=600)
res.raise_for_status()
print(res.status_code, res.json())
data = res.json()
if data.get('base_resp', {}).get('status_code', 0) != 0:
    raise RuntimeError(data)
job_id = data['task_id']
from urllib.parse import quote
poll_url = 'https://api.xah.io/v2/query/video_generation/' + quote(str(job_id), safe='')
deadline = time.monotonic() + 600
# Timeout stops local waiting only; do not submit the same job again.
while True:
    if time.monotonic() >= deadline:
        raise TimeoutError('Polling timed out; resume GET ' + poll_url)
    time.sleep(3)
    poll = requests.get(poll_url, headers=headers, timeout=30)
    poll.raise_for_status()
    data = poll.json()
    if data.get('base_resp', {}).get('status_code', 0) != 0:
        raise RuntimeError(data)
    job = data['task']
    if job['status'] == 'succeeded':
        print(job)
        break
    if job['status'] in ('failed', 'cancelled', 'expired'):
        raise RuntimeError(job)
{
    "model": "MiniMax-H3",
    "content": [
        {
            "type": "text",
            "text": "A gentle camera movement across a mountain landscape"
        }
    ],
    "duration": 4,
    "ratio": "16:9"
}

آزمائیں

اپنی API key کے ساتھ ایک پرامپٹ بھیجیں — اصلی کریڈٹ خرچ ہوتے ہیں، جواب فوراً اسٹریم ہوتا ہے۔

جائزے اور تبصرے

0.0 / 0 جائزے
سپورٹ سے رابطہ کریں
ہم ہر وقت آپ کی مدد کے لیے تیار ہیں