# Seedance 2 Omni Reference VIP > Integrera AI-modellen seedance-2-vip-omni-reference via ett högpresterande API med låg latens och ren förbrukningsbaserad prissättning. ## Översikt - **Slutpunkt**: `POST https://api.muapi.ai/api/v1/seedance-2-vip-omni-reference` - **Modell ID**: `seedance-2-vip-omni-reference` - **Kategori**: Bild till video - **Variant**: Omni Reference VIP - **Familj**: sd-2 - **Kostnad**: 1.5 krediter per samtal (vissa modeller beräknar kostnaden dynamiskt baserat på parametrar) ## API-användning MuApi använder ett **skicka-sen-omröstningsmönster**: skicka in ett jobb, få ett `request_id`, polla sedan förutsägelsens slutpunkt tills `status` är `slutfört`. Du kan eventuellt skicka `?webhook=DIN_URL` på det skickade samtalet för att få en POST-återuppringning när jobbet är klart (hoppa över polling). **Autentisering**: skicka din MuApi-nyckel i rubriken `x-api-key`. Skaffa en på https://muapi.ai/access-keys. ### 1. Skicka in ett jobb ```http POST https://api.muapi.ai/api/v1/seedance-2-vip-omni-reference Content-Type: application/json x-api-key: YOUR_API_KEY ``` **Minimum (endast obligatoriskt):** ```json { "prompt": "" } ``` **Fullständigt exempel (alla parametrar):** ```json { "prompt": "", "resolution": "720p", "images_list": "https://d3adwkbyhxyrtq.cloudfront.net/ai-images/186/712345784292/4a8c5c70-abcc-4920-873e-b0e219986453.jpg", "video_files": [], "audio_files": [], "aspect_ratio": "16:9", "duration": 5, "high_bitrate": false } ``` **Svar:** ```json { "request_id": "abc123", "status": "processing" } ``` ### 2. Omröstning för resultatet ```http GET https://api.muapi.ai/api/v1/predictions/{request_id}/result x-api-key: YOUR_API_KEY ``` Möjliga "status"-värden: "köad", "väntande", "bearbetar", "avslutad", "misslyckades", "avbruten". Poll var 2-5 sekund tills slut. När de är "slutförda" finns resultatwebbadresserna i arrayen "utgångar". **Exempel på svar när "slutfört":** ```json { "id": "abc123", "status": "completed", "outputs": [ "https://cdn.muapi.ai/.../output.png" ], "urls": { "get": "https://api.muapi.ai/api/v1/predictions/abc123/result" }, "created_at": "2026-05-08T12:34:56Z", "has_nsfw_contents": [] } ``` ### curL ```bash 1. Skicka in REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/seedance-2-vip-omni-reference \ -H "x-api-key: $MUAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"prompt":""}' | jq -r .request_id) 2. Omröstning tills den är klar while :; do RESP=$(curl -s https://api.muapi.ai/api/v1/predictions/$REQUEST_ID/result -H "x-api-key: $MUAPI_API_KEY") STATUS=$(echo "$RESP" | jq -r .status) [ "$STATUS" = "completed" ] && echo "$RESP" | jq .outputs && break [ "$STATUS" = "failed" ] && echo "$RESP" && exit 1 sleep 3 done ``` ### Python ```python 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}/seedance-2-vip-omni-reference", headers=headers, json={"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) ``` ## Inmatningsschema API:et accepterar följande inmatningsparametrar: - **`prompt`** (`string`, _required_): Video description. Use @image1…@image9 to reference images, @video1…@video3 for videos, and @audio1…@audio3 for audio. Use @character: for a Seedance 2 character sheet or @omni-character: for a trained omni-character. Multiple characters are supported. - **`resolution`** (`string`, _optional_): Output resolution. Price scales with resolution: 720p is cheapest, 4K is most expensive. - Standard: `"720p"` - Alternativ: `"720p"`, `"1080p"`, `"4k"` - **`images_list`** (`array`, _optional_): 9 bild-URL (JPEG/PNG/WebP) . N bildprompt @imageN. - **`video_files`** (`array`, _optional_): 3 video-URL (MP4, 15). N videoprompt @videoN. - **`audio_files`** (`array`, _optional_): Up to 3 reference audio files (MP3/WAV, total max 15s). Each Nth audio corresponds to @audioN in the prompt. - **`aspect_ratio`** (`string`, _optional_): bildformat för utgående video. - Standard: `"16:9"` - Alternativ: `"21:9"`, `"16:9"`, `"4:3"`, `"1:1"`, `"3:4"`, `"9:16"` - **`duration`** (`int`, _optional_): videoduration () . - Standard: `5` - **`high_bitrate`** (`boolean`, _optional_): , . - Standard: `false` ## Utgångsschema Avfrågningens slutpunkt returnerar följande fält: - **`id`** (`string`): Begärans ID. - **`status`** (`string`): En av "köad", "väntande", "bearbetar", "avslutad", "misslyckades", "avbruten". - **`outputs`** (`array`): URL:er till genererade bilder/videor/ljud. Töm tills "status" är "slutförd". - **`urls.get`** (`string`): Självlänka för att återhämta denna förutsägelse. - **`error`** (`string` | `null`): Felmeddelande om "status" är "misslyckad". - **`created_at`** (`string`): ISO-8601 tidsstämpel för när begäran skapades. - **`has_nsfw_contents`** (`array of boolean`): NSFW-detekteringsflaggor per utgång. ## Webhooks (valfritt) Lägg till `?webhook=https://din-server/sökväg` till inlämningsadressen. När jobbet når ett terminaltillstånd kommer MuApi POST samma form som pollingsvaret på din URL – ingen polling behövs. ## Agentintegration MuApi skickar en MCP-server och CLI så att agenter (Claude Code, Cursor, custom) kan anropa denna slutpunkt utan att skriva HTTP-kod: ```bash # Installera CLI npm install -g muapi-cli # Authenticate once muapi auth login # Exponera alla MuApi-modeller som MCP-verktyg för din agent muapi mcp serve ``` MCP-servern avslöjar verktyg som omsluter submit + poll för varje modell, inklusive `seedance-2-vip-omni-reference`. Se `muapi --help` för kategorispecifika genvägar (`muapi image generera`, `muapi-video från-bild`, etc.). ## Relaterade modeller - [Text till video](https://muapi.ai/sv/playground/seedance-2-text-to-video) - [Text to Video Fast](https://muapi.ai/sv/playground/seedance-2-text-to-video-fast) - [Bild till video](https://muapi.ai/sv/playground/seedance-2-image-to-video) - [Image to Video Fast](https://muapi.ai/sv/playground/seedance-2-image-to-video-fast) - [First & Last Frame](https://muapi.ai/sv/playground/seedance-2-first-last-frame) - [First & Last Frame Fast](https://muapi.ai/sv/playground/seedance-2-first-last-frame-fast) - [Omni Reference](https://muapi.ai/sv/playground/seedance-2-omni-reference-no-video) - [Text to Video VIP](https://muapi.ai/sv/playground/seedance-2-vip-text-to-video) - [Text to Video VIP Fast](https://muapi.ai/sv/playground/seedance-2-vip-text-to-video-fast) - [Image to Video VIP](https://muapi.ai/sv/playground/seedance-2-vip-image-to-video) - [Image to Video VIP Fast](https://muapi.ai/sv/playground/seedance-2-vip-image-to-video-fast) - [First & Last Frame VIP](https://muapi.ai/sv/playground/seedance-2-vip-first-last-frame) - [First & Last Frame VIP Fast](https://muapi.ai/sv/playground/seedance-2-vip-first-last-frame-fast) - [Omni Reference VIP Fast](https://muapi.ai/sv/playground/seedance-2-vip-omni-reference-fast) - [Text to Video VIP 1080p](https://muapi.ai/sv/playground/seedance-2-vip-text-to-video-1080p) - [Text to Video VIP 1080p Fast](https://muapi.ai/sv/playground/seedance-2-vip-text-to-video-fast-1080p) - [Image to Video VIP 1080p](https://muapi.ai/sv/playground/seedance-2-vip-image-to-video-1080p) - [Image to Video VIP 1080p Fast](https://muapi.ai/sv/playground/seedance-2-vip-image-to-video-fast-1080p) - [Omni Reference VIP 1080p](https://muapi.ai/sv/playground/seedance-2-vip-omni-reference-1080p) - [Omni Reference VIP 1080p Fast](https://muapi.ai/sv/playground/seedance-2-vip-omni-reference-fast-1080p) - [First & Last Frame VIP 1080p](https://muapi.ai/sv/playground/seedance-2-vip-first-last-frame-1080p) - [Text to Video VIP 4K](https://muapi.ai/sv/playground/seedance-2-vip-text-to-video-4k) - [Image to Video VIP 4K](https://muapi.ai/sv/playground/seedance-2-vip-image-to-video-4k) - [First & Last Frame VIP 4K](https://muapi.ai/sv/playground/seedance-2-vip-first-last-frame-4k) - [Omni Reference VIP 4K](https://muapi.ai/sv/playground/seedance-2-vip-omni-reference-4k) - [Seedance 2 Spicy Text to Video](https://muapi.ai/sv/playground/seedance-2-spicy-text-to-video) - [Seedance 2 Spicy Text to Video Fast](https://muapi.ai/sv/playground/seedance-2-spicy-text-to-video-fast) - [Seedance 2 Spicy Image to Video](https://muapi.ai/sv/playground/seedance-2-spicy-image-to-video) - [Seedance 2 Spicy Image to Video Fast](https://muapi.ai/sv/playground/seedance-2-spicy-image-to-video-fast) - [Omni Reference Fast](https://muapi.ai/sv/playground/seedance-2-omni-reference-no-video-fast) - [Spicy Omni Reference](https://muapi.ai/sv/playground/seedance-2-spicy-omni-reference) - [Spicy Omni Reference Fast](https://muapi.ai/sv/playground/seedance-2-spicy-omni-reference-fast) - [Omni Reference VIP](https://muapi.ai/sv/playground/seedance-2-vip-omni-reference) ## Resurser - [Lekplatssida](https://muapi.ai/sv/playground/seedance-2-vip-omni-reference) - [API-referens](https://muapi.ai/sv/playground/seedance-2-vip-omni-reference/api) - [Global llms.txt](https://muapi.ai/sv/llms.txt)