# Seedance 2 Omni Reference VIP > अति-निम्न विलंबता के साथ MuAPI प्लेटफ़ॉर्म के माध्यम से seedance-2-vip-omni-reference AI मॉडल को एकीकृत करें। लचीला पे-एज-यू-गो मूल्य निर्धारण, त्वरित स्केलिंग और अधिकतम अपटाइम। ## सिंहावलोकन - **Endpoint**: `POST https://api.muapi.ai/api/v1/seedance-2-vip-omni-reference` - **मॉडल आईडी**: `seedance-2-vip-omni-reference` - **श्रेणी**: छवि से वीडियो - **वैरिएंट**: Omni Reference VIP - **परिवार**: sd-2 - **लागत**: 1.5 प्रति कॉल क्रेडिट (कुछ मॉडल पैरामीटर के आधार पर गतिशील रूप से लागत की गणना करते हैं) ## एपीआई उपयोग MuApi **submit-then-poll** पैटर्न का उपयोग करता है: एक नौकरी सबमिट करें, एक `request_id` प्राप्त करें, फिर `status` `पूरा` होने तक पूर्वानुमान समापन बिंदु पर पोल करें। वैकल्पिक रूप से कार्य समाप्त होने पर POST कॉलबैक प्राप्त करने के लिए सबमिट कॉल पर `?webhook=YOUR_URL` पास करें (मतदान छोड़ें)। **प्रमाणीकरण**: अपनी MuApi कुंजी को `x-api-key` हेडर में भेजें। https://muapi.ai/access-keys पर एक प्राप्त करें। ### 1. कार्य सबमिट करें ```http POST https://api.muapi.ai/api/v1/seedance-2-vip-omni-reference Content-Type: application/json x-api-key: YOUR_API_KEY ``` **न्यूनतम (केवल आवश्यक):** ```json { "prompt": "" } ``` **पूर्ण उदाहरण (सभी पैरामीटर):** ```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 } ``` **प्रतिक्रिया:** ```json { "request_id": "abc123", "status": "processing" } ``` ### 2. परिणाम पोल करें ```http GET https://api.muapi.ai/api/v1/predictions/{request_id}/result x-api-key: YOUR_API_KEY ``` संभावित `स्थिति` मान: `कतारबद्ध`, `लंबित`, `प्रसंस्करण`, `पूर्ण`, `विफल`, `रद्द`। टर्मिनल तक हर 2-5 सेकंड में मतदान करें। जब `पूर्ण` होता है, तो परिणाम यूआरएल `आउटपुट` सरणी में होते हैं। **'पूरा' होने पर उदाहरण प्रतिक्रिया:** ```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. कार्य सबमिट करें 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. पूर्ण होने तक पोल करें 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) ``` ## इनपुट स्कीमा एपीआई निम्नलिखित इनपुट पैरामीटर स्वीकार करता है: - **`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. - डिफ़ॉल्ट: `"720p"` - विकल्प: `"720p"`, `"1080p"`, `"4k"` - **`images_list`** (`array`, _optional_): 9 छवि यूआरएल (जेपीईजी/पीएनजी/वेबपी)। एन इमेजप्रॉम्प्ट @imageN. - **`video_files`** (`array`, _optional_): 3 वीडियो यूआरएल (एमपी4, 15)। एन वीडियोप्रॉम्प्ट @वीडियोएन. - **`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_): आउटपुट वीडियो पहलू अनुपात। - डिफ़ॉल्ट: `"16:9"` - विकल्प: `"21:9"`, `"16:9"`, `"4:3"`, `"1:1"`, `"3:4"`, `"9:16"` - **`duration`** (`int`, _optional_): वीडियो अवधि() . - डिफ़ॉल्ट: `5` - **`high_bitrate`** (`boolean`, _optional_): , . - डिफ़ॉल्ट: `false` ## आउटपुट स्कीमा मतदान समापन बिंदु निम्नलिखित फ़ील्ड लौटाता है: - **`id`** (`string`): अनुरोध आईडी. - **`status`** (`string`): `कतारबद्ध`, `लंबित`, `प्रसंस्करण`, `पूर्ण`, `असफल`, `रद्द` में से एक। - **`outputs`** (`array`): उत्पन्न छवियों/वीडियो/ऑडियो के यूआरएल। `स्थिति` `पूर्ण` होने तक खाली रखें। - **`urls.get`** (`string`): इस भविष्यवाणी को पुनः प्राप्त करने के लिए स्व-लिंक। - **`error`** (`string` | `null`): यदि `स्थिति` `विफल` है तो त्रुटि संदेश। - **`created_at`** (`string`): अनुरोध कब बनाया गया था इसका आईएसओ-8601 टाइमस्टैम्प। - **`has_nsfw_contents`** (`array of boolean`): प्रति-आउटपुट NSFW पहचान झंडे। ## वेबहुक (वैकल्पिक) सबमिट URL में `?webhook=https://your-server/path` जोड़ें। जब कार्य अंतिम स्थिति में पहुंच जाता है, तो MuApi आपके URL पर पोलिंग प्रतिक्रिया के समान आकार में पोस्ट करेगा - किसी पोलिंग की आवश्यकता नहीं है। ## एजेंट एकीकरण MuApi एक MCP सर्वर और CLI शिप करता है ताकि एजेंट (क्लाउड कोड, कर्सर, कस्टम) HTTP कोड लिखे बिना इस एंडपॉइंट को कॉल कर सकें: ```bash # CLI स्थापित करें npm install -g muapi-cli # एक बार प्रमाणित करें muapi auth login # Expose all MuApi models as MCP tools to your agent muapi mcp serve ``` MCP सर्वर उन टूल को प्रदर्शित करता है जो `seedance-2-vip-omni-reference` सहित प्रत्येक मॉडल के लिए सबमिट + पोल को लपेटते हैं। श्रेणी-विशिष्ट शॉर्टकट के लिए `muapi --help` देखें (`muapi image generate`, `muapi video from-image`, आदि)। ## संबंधित मॉडल - [वीडियो पर टेक्स्ट करें](https://muapi.ai/hi/playground/seedance-2-text-to-video) - [Text to Video Fast](https://muapi.ai/hi/playground/seedance-2-text-to-video-fast) - [छवि से वीडियो](https://muapi.ai/hi/playground/seedance-2-image-to-video) - [Image to Video Fast](https://muapi.ai/hi/playground/seedance-2-image-to-video-fast) - [First & Last Frame](https://muapi.ai/hi/playground/seedance-2-first-last-frame) - [First & Last Frame Fast](https://muapi.ai/hi/playground/seedance-2-first-last-frame-fast) - [Omni Reference](https://muapi.ai/hi/playground/seedance-2-omni-reference-no-video) - [Text to Video VIP](https://muapi.ai/hi/playground/seedance-2-vip-text-to-video) - [Text to Video VIP Fast](https://muapi.ai/hi/playground/seedance-2-vip-text-to-video-fast) - [Image to Video VIP](https://muapi.ai/hi/playground/seedance-2-vip-image-to-video) - [Image to Video VIP Fast](https://muapi.ai/hi/playground/seedance-2-vip-image-to-video-fast) - [First & Last Frame VIP](https://muapi.ai/hi/playground/seedance-2-vip-first-last-frame) - [First & Last Frame VIP Fast](https://muapi.ai/hi/playground/seedance-2-vip-first-last-frame-fast) - [Omni Reference VIP Fast](https://muapi.ai/hi/playground/seedance-2-vip-omni-reference-fast) - [Text to Video VIP 1080p](https://muapi.ai/hi/playground/seedance-2-vip-text-to-video-1080p) - [Text to Video VIP 1080p Fast](https://muapi.ai/hi/playground/seedance-2-vip-text-to-video-fast-1080p) - [Image to Video VIP 1080p](https://muapi.ai/hi/playground/seedance-2-vip-image-to-video-1080p) - [Image to Video VIP 1080p Fast](https://muapi.ai/hi/playground/seedance-2-vip-image-to-video-fast-1080p) - [Omni Reference VIP 1080p](https://muapi.ai/hi/playground/seedance-2-vip-omni-reference-1080p) - [Omni Reference VIP 1080p Fast](https://muapi.ai/hi/playground/seedance-2-vip-omni-reference-fast-1080p) - [First & Last Frame VIP 1080p](https://muapi.ai/hi/playground/seedance-2-vip-first-last-frame-1080p) - [Text to Video VIP 4K](https://muapi.ai/hi/playground/seedance-2-vip-text-to-video-4k) - [Image to Video VIP 4K](https://muapi.ai/hi/playground/seedance-2-vip-image-to-video-4k) - [First & Last Frame VIP 4K](https://muapi.ai/hi/playground/seedance-2-vip-first-last-frame-4k) - [Omni Reference VIP 4K](https://muapi.ai/hi/playground/seedance-2-vip-omni-reference-4k) - [Seedance 2 Spicy Text to Video](https://muapi.ai/hi/playground/seedance-2-spicy-text-to-video) - [Seedance 2 Spicy Text to Video Fast](https://muapi.ai/hi/playground/seedance-2-spicy-text-to-video-fast) - [Seedance 2 Spicy Image to Video](https://muapi.ai/hi/playground/seedance-2-spicy-image-to-video) - [Seedance 2 Spicy Image to Video Fast](https://muapi.ai/hi/playground/seedance-2-spicy-image-to-video-fast) - [Omni Reference Fast](https://muapi.ai/hi/playground/seedance-2-omni-reference-no-video-fast) - [Spicy Omni Reference](https://muapi.ai/hi/playground/seedance-2-spicy-omni-reference) - [Spicy Omni Reference Fast](https://muapi.ai/hi/playground/seedance-2-spicy-omni-reference-fast) - [Omni Reference VIP](https://muapi.ai/hi/playground/seedance-2-vip-omni-reference) ## संसाधन - [खेल का मैदान पृष्ठ](https://muapi.ai/hi/playground/seedance-2-vip-omni-reference) - [एपीआई संदर्भ](https://muapi.ai/hi/playground/seedance-2-vip-omni-reference/api) - [वैश्विक llms.txt](https://muapi.ai/hi/llms.txt)