# Seedance 2 Omni Reference VIP > Intégrez le modèle d'IA seedance-2-vip-omni-reference via la plateforme à ultra-faible latence MuAPI. Tarification flexible à l'usage, mise à l'échelle instantanée et disponibilité maximale. ## Aperçu - **Endpoint**: `POST https://api.muapi.ai/api/v1/seedance-2-vip-omni-reference` - **ID du modèle**: `seedance-2-vip-omni-reference` - **Catégorie**: Image en vidéo - **Variante**: Omni Reference VIP - **Famille**: sd-2 - **Coût**: 1.5 crédits par appel (certains modèles calculent le coût de manière dynamique en fonction des paramètres) ## Utilisation de l'API MuApi utilise un modèle **submit-then-poll** : soumettez une tâche, obtenez un `request_id`, puis interrogez le point de terminaison des prédictions jusqu'à ce que le `statut` soit `terminé`. Transmettez éventuellement `?webhook=YOUR_URL` lors de l'appel de soumission pour recevoir un rappel POST lorsque le travail est terminé (ignorer l'interrogation). **Authentification** : envoyez votre clé MuApi dans l'en-tête `x-api-key`. Obtenez-en un à https://muapi.ai/access-keys. ### 1. Soumettre une tâche ```http POST https://api.muapi.ai/api/v1/seedance-2-vip-omni-reference Content-Type: application/json x-api-key: YOUR_API_KEY ``` **Minimum (obligatoire seulement) :** ```json { "prompt": "" } ``` **Exemple complet (tous les paramètres) :** ```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 } ``` **Réponse :** ```json { "request_id": "abc123", "status": "processing" } ``` ### 2. Interroger le résultat (Polling) ```http GET https://api.muapi.ai/api/v1/predictions/{request_id}/result x-api-key: YOUR_API_KEY ``` Valeurs de « statut » possibles : « en file d'attente », « en attente », « en cours de traitement », « terminé », « en échec », « annulé ». Sondez toutes les 2 à 5 secondes jusqu'au terminal. Une fois « terminé », les URL de résultat sont dans le tableau « sorties ». **Exemple de réponse lorsque « terminé » :** ```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. Soumettre une tâche 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. Interroger jusqu'à la fin 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) ``` ## Schéma d'entrée L'API accepte les paramètres d'entrée suivants : - **`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. - Par défaut: `"720p"` - Possibilités: `"720p"`, `"1080p"`, `"4k"` - **`images_list`** (`array`, _optional_): 9 URL des images (JPEG/PNG/WebP) . N imageprompt @imageN. - **`video_files`** (`array`, _optional_): 3 URL vidéo (MP4, 15). N vidéoinvite @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_): rapport d’aspect vidéo de sortie. - Par défaut: `"16:9"` - Possibilités: `"21:9"`, `"16:9"`, `"4:3"`, `"1:1"`, `"3:4"`, `"9:16"` - **`duration`** (`int`, _optional_): durée de la vidéo () . - Par défaut: `5` - **`high_bitrate`** (`boolean`, _optional_): , . - Par défaut: `false` ## Schéma de sortie Le point de terminaison d'interrogation renvoie les champs suivants : - **`id`** (`string`): L’ID de la demande. - **`status`** (`string`): L'un des éléments suivants : "en file d'attente", "en attente", "en cours de traitement", "terminé", "échoué", "annulé". - **`outputs`** (`array`): URL vers les images/vidéos/audio générés. Vide jusqu'à ce que le « statut » soit « terminé ». - **`urls.get`** (`string`): Créez un lien automatique pour récupérer cette prédiction. - **`error`** (`string` | `null`): Message d'erreur si le « statut » est « échec ». - **`created_at`** (`string`): Horodatage ISO-8601 indiquant le moment où la demande a été créée. - **`has_nsfw_contents`** (`array of boolean`): Indicateurs de détection NSFW par sortie. ## Webhooks (facultatif) Ajoutez `?webhook=https://your-server/path` à l'URL de soumission. Lorsque la tâche atteint un état terminal, MuApi POSTera la même forme que la réponse à l'interrogation sur votre URL — aucune interrogation n'est nécessaire. ## Intégration des agents MuApi fournit un serveur MCP et une CLI afin que les agents (Claude Code, Cursor, personnalisé) puissent appeler ce point de terminaison sans écrire de code HTTP : ```bash # Installer la CLI npm install -g muapi-cli # Authentification unique muapi auth login # Expose all MuApi models as MCP tools to your agent muapi mcp serve ``` Le serveur MCP expose des outils qui encapsulent la soumission + le sondage pour chaque modèle, y compris `seedance-2-vip-omni-reference`. Voir `muapi --help` pour les raccourcis spécifiques à la catégorie (`muapi image generate`, `muapi video from-image`, etc.). ## Modèles associés - [Texte en vidéo](https://muapi.ai/fr/playground/seedance-2-text-to-video) - [Text to Video Fast](https://muapi.ai/fr/playground/seedance-2-text-to-video-fast) - [Image en vidéo](https://muapi.ai/fr/playground/seedance-2-image-to-video) - [Image to Video Fast](https://muapi.ai/fr/playground/seedance-2-image-to-video-fast) - [First & Last Frame](https://muapi.ai/fr/playground/seedance-2-first-last-frame) - [First & Last Frame Fast](https://muapi.ai/fr/playground/seedance-2-first-last-frame-fast) - [Omni Reference](https://muapi.ai/fr/playground/seedance-2-omni-reference-no-video) - [Text to Video VIP](https://muapi.ai/fr/playground/seedance-2-vip-text-to-video) - [Text to Video VIP Fast](https://muapi.ai/fr/playground/seedance-2-vip-text-to-video-fast) - [Image to Video VIP](https://muapi.ai/fr/playground/seedance-2-vip-image-to-video) - [Image to Video VIP Fast](https://muapi.ai/fr/playground/seedance-2-vip-image-to-video-fast) - [First & Last Frame VIP](https://muapi.ai/fr/playground/seedance-2-vip-first-last-frame) - [First & Last Frame VIP Fast](https://muapi.ai/fr/playground/seedance-2-vip-first-last-frame-fast) - [Omni Reference VIP Fast](https://muapi.ai/fr/playground/seedance-2-vip-omni-reference-fast) - [Text to Video VIP 1080p](https://muapi.ai/fr/playground/seedance-2-vip-text-to-video-1080p) - [Text to Video VIP 1080p Fast](https://muapi.ai/fr/playground/seedance-2-vip-text-to-video-fast-1080p) - [Image to Video VIP 1080p](https://muapi.ai/fr/playground/seedance-2-vip-image-to-video-1080p) - [Image to Video VIP 1080p Fast](https://muapi.ai/fr/playground/seedance-2-vip-image-to-video-fast-1080p) - [Omni Reference VIP 1080p](https://muapi.ai/fr/playground/seedance-2-vip-omni-reference-1080p) - [Omni Reference VIP 1080p Fast](https://muapi.ai/fr/playground/seedance-2-vip-omni-reference-fast-1080p) - [First & Last Frame VIP 1080p](https://muapi.ai/fr/playground/seedance-2-vip-first-last-frame-1080p) - [Text to Video VIP 4K](https://muapi.ai/fr/playground/seedance-2-vip-text-to-video-4k) - [Image to Video VIP 4K](https://muapi.ai/fr/playground/seedance-2-vip-image-to-video-4k) - [First & Last Frame VIP 4K](https://muapi.ai/fr/playground/seedance-2-vip-first-last-frame-4k) - [Omni Reference VIP 4K](https://muapi.ai/fr/playground/seedance-2-vip-omni-reference-4k) - [Seedance 2 Spicy Text to Video](https://muapi.ai/fr/playground/seedance-2-spicy-text-to-video) - [Seedance 2 Spicy Text to Video Fast](https://muapi.ai/fr/playground/seedance-2-spicy-text-to-video-fast) - [Seedance 2 Spicy Image to Video](https://muapi.ai/fr/playground/seedance-2-spicy-image-to-video) - [Seedance 2 Spicy Image to Video Fast](https://muapi.ai/fr/playground/seedance-2-spicy-image-to-video-fast) - [Omni Reference Fast](https://muapi.ai/fr/playground/seedance-2-omni-reference-no-video-fast) - [Spicy Omni Reference](https://muapi.ai/fr/playground/seedance-2-spicy-omni-reference) - [Spicy Omni Reference Fast](https://muapi.ai/fr/playground/seedance-2-spicy-omni-reference-fast) - [Omni Reference VIP](https://muapi.ai/fr/playground/seedance-2-vip-omni-reference) ## Ressources - [Page du terrain de jeu](https://muapi.ai/fr/playground/seedance-2-vip-omni-reference) - [Référence API](https://muapi.ai/fr/playground/seedance-2-vip-omni-reference/api) - [llms.txt global](https://muapi.ai/fr/llms.txt)