Gemini Omni Text to Video API: KI-Videogenerierung

Verwenden Sie Gemini Omni Text to Video, um Videos generieren über die REST-API von Muapi. Pay-per-Use — kein Abonnement erforderlich.

Interaktive Steuerung laden

Das Modell gemini-omni-text-to-video, verfügbar auf MuAPI mit flexibler nutzungsbasierter Abrechnung und hoher Parallelität.

Gemini Omni Text to Video API-Referenz

Endpunkt

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

Submit a job with your Muapi API key in the x-api-key header, then poll https://api.muapi.ai/api/v1/predictions/{request_id}/result until status is completed.

Parameter

NameTypErforderlichBeschreibung
promptstringJaVideo. Gemini Omni kompatibel mit Prompt, , , Audio.
durationintNeinVideodauer () .Optionen: 4, 6, 8, 10Standard: 8
resolutionstringNeinAuflösung des Videoausgangs. Ausgabe: 360p 0,039 $/, 720p 0,13 $/, 1080p 0,195 $/, 4K 0,39 $/.Optionen: 360p, 720p, 1080p, 4kStandard: "1080p"
aspect_ratiostringNeinSeitenverhältnis des Ausgabevideos.Optionen: 16:9, 9:16Standard: "16:9"
audio_idsarrayNeinUp to 3 voice profile IDs returned by the Gemini Omni Audio endpoint.
seedintNeinSamen (0–2147483647) . , , .Standard: 0
character_idsarrayNeinUp to 3 character IDs from Gemini Omni Character to feature in the video.

cURL-Beispiel

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-Beispiel

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)

Vollständige Dokumentation und Agent/MCP-Integration: llms.txt. API-Schlüssel erhalten unter muapi.ai/access-keys.