Gemini Omni Text to Video API: AI वीडियो जेनरेशन

Muapi REST API के माध्यम से Gemini Omni Text to Video का उपयोग करके वीडियो उत्पन्न करें। प्रति-उपयोग भुगतान — कोई सदस्यता आवश्यक नहीं।

इंटरैक्टिव मॉडल नियंत्रण

मॉडल gemini-omni-text-to-video, लचीली पे-एज-यू-गो बिलिंग और उच्च समवर्तीता के साथ MuAPI पर उपलब्ध है।

Gemini Omni Text to Video API संदर्भ

Endpoint

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

x-api-key हेडर में अपनी Muapi API कुंजी के साथ एक कार्य सबमिट करें, फिर मतदान करें https://api.muapi.ai/api/v1/predictions/{request_id}/result until status is completed.

Parameters

Nameप्रकारRequiredविवरण
promptstringYesवीडियो. जेमिनी ओमनी प्रॉम्प्ट, , , ऑडियो के साथ संगत।
durationintNoवीडियो अवधि() .विकल्प: 4, 6, 8, 10डिफ़ॉल्ट: 8
resolutionstringNoरिज़ॉल्यूशन वीडियो आउटपुट। आउटपुट: 360p $0.039/, 720p $0.13/, 1080p $0.195/, 4K $0.39/।विकल्प: 360p, 720p, 1080p, 4kडिफ़ॉल्ट: "1080p"
aspect_ratiostringNoआउटपुट वीडियो पहलू अनुपात।विकल्प: 16:9, 9:16डिफ़ॉल्ट: "16:9"
audio_idsarrayNoUp to 3 voice profile IDs returned by the Gemini Omni Audio endpoint.
seedintNoबीज (0-2147483647)। , , .डिफ़ॉल्ट: 0
character_idsarrayNoUp to 3 character IDs from Gemini Omni Character to feature in the video.

cURL example

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"

Python example

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)

Full docs and agent/MCP integration: llms.txt. Get an API key at muapi.ai/access-keys.