Gemini Omni Text to Video API: AI Video Generation

Generate videos from text with Gemini Omni Text to Video via the Muapi REST API. Pay per generation — no subscription needed.

การควบคุมโมเดลแบบโต้ตอบ

โมเดล gemini-omni-text-to-video มีให้บริการบน MuAPI พร้อมการเรียกเก็บเงินตามการใช้งานที่ยืดหยุ่นและรองรับการทำงานพร้อมกันสูง

Gemini Omni Text to Video ข้อมูลอ้างอิง API

จุดสิ้นสุด

POST https://api.muapi.ai/api/v1/gemini-omni-text-to-video

ส่งงานด้วยคีย์ Muapi API ของคุณในส่วนหัว x-api-key จากนั้นสำรวจความคิดเห็น https://api.muapi.ai/api/v1/predictions/{request_id}/result จนกว่าสถานะจะเสร็จสมบูรณ์

พารามิเตอร์

ชื่อประเภทจำเป็นคำอธิบาย
promptstringใช่วิดีโอ Gemini Omni เข้ากันได้กับพรอมต์ , , เสียง
durationintไม่ระยะเวลาวิดีโอ ()ตัวเลือก: 4, 6, 8, 10ค่าเริ่มต้น: 8
resolutionstringไม่เอาต์พุตวิดีโอความละเอียด เอาท์พุต: 360p $0.039/, 720p $0.13/, 1080p $0.195/, 4K $0.39/ตัวเลือก: 360p, 720p, 1080p, 4kค่าเริ่มต้น: "1080p"
aspect_ratiostringไม่อัตราส่วนภาพวิดีโอเอาท์พุตตัวเลือก: 16:9, 9:16ค่าเริ่มต้น: "16:9"
audio_idsarrayไม่Up to 3 voice profile IDs returned by the Gemini Omni Audio endpoint.
seedintไม่เมล็ดพันธุ์ (0–2147483647) . , , .ค่าเริ่มต้น: 0
character_idsarrayไม่Up to 3 character IDs from Gemini Omni Character to feature in the video.

ตัวอย่าง CURL

REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/gemini-omni-text-to-video \
  -H "x-api-key: $MUAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"<prompt>"}' | jq -r .request_id)

curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY"

ตัวอย่างหลาม

import os, time, requests

API = "https://api.muapi.ai/api/v1"
headers = {"x-api-key": os.environ["MUAPI_API_KEY"]}

r = requests.post(f"{API}/gemini-omni-text-to-video", headers=headers, json={"prompt":"<prompt>"})
request_id = r.json()["request_id"]

while True:
    res = requests.get(f"{API}/predictions/{request_id}/result", headers=headers).json()
    if res["status"] == "completed":
        print(res["outputs"]); break
    if res["status"] == "failed":
        raise RuntimeError(res.get("error"))
    time.sleep(3)

เอกสารฉบับเต็มและการรวมตัวแทน/MCP: llms.txt. รับคีย์ API ได้ที่ muapi.ai/access-keys.