# MiniMax H3 Spicy afbeelding-naar-video > Breng stilstaande beelden tot leven met MiniMax H3 Spicy afbeelding-naar-video. Maak gedurfde bewegingen met ingebouwde stereo-audio in 480p, 768p of 2K. Probeer het gratis. ## Overview - **Eindpunt**: `POST https://api.muapi.ai/api/v1/minimax-h3-image-to-video-spicy` - **Model ID**: `minimax-h3-image-to-video-spicy` - **Categorie**: Afbeelding to Video - **Variant**: MiniMax H3 Spicy Image to Video - **Familie**: minimax-h3-spicy - **Cost**: 0.29 credits per call (some modellen compute cost dynamically based on params) ## API Usage MuApi gebruikt het patroon **verzenden-dan-poll**: dien een taak in, verkrijg een `request_id` en peil vervolgens het eindpunt van de voorspellingen totdat `status` `voltooid` is. Optioneel kunt u `?webhook=YOUR_URL` doorgeven bij de submission-aanroep om een ​​POST-callback te ontvangen wanneer de taak is voltooid (polling overslaan). **Authenticatie**: stuur uw MuApi-sleutel in de `x-api-key` header. Koop er een op https://muapi.ai/access-keys. ### 1. Submit a job ```http POST https://api.muapi.ai/api/v1/minimax-h3-image-to-video-spicy Content-Type: application/json x-api-key: YOUR_API_KEY ``` **Minimum (alleen vereist):** ```json { "image_url": "https://example.com/your-image_url" } ``` **Volledig voorbeeld (alle parameters):** ```json { "image_url": "https://example.com/your-image_url", "prompt": "", "last_image": "https://example.com/your-last_image", "resolution": "480p", "duration": 5, "seed": -1, "aigc_watermark": false } ``` **Response:** ```json { "request_id": "abc123", "status": "processing" } ``` ### 2. Poll voor het resultaat ```http GET https://api.muapi.ai/api/v1/predictions/{request_id}/result x-api-key: YOUR_API_KEY ``` Mogelijke `status`-waarden: `in wachtrij geplaatst`, `in behandeling`, `verwerking`, `voltooid`, `mislukt`, `geannuleerd`. Poll elke 2-5 seconden tot de terminal. Wanneer 'voltooid', bevinden de resultaat-URL's zich in de array 'outputs'. **Voorbeeldreactie bij 'voltooid':** ```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": [] } ``` ### krul ```bash 1. Submit REQUEST_ID=$(curl -s -X POST https://api.muapi.ai/api/v1/minimax-h3-image-to-video-spicy \ -H "x-api-key: $MUAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{"image_url":"https://example.com/your-image_url"}' | jq -r .request_id) 2. Poll tot voltooid 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}/minimax-h3-image-to-video-spicy", headers=headers, json={"image_url":"https://example.com/your-image_url"}) 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) ``` ## Input Schema De API accepteert de volgende invoerparameters: - **`image_url`** (`string`, _required_): Required starting image URL. The output canvas follows this image's aspect ratio. - **`prompt`** (`string`, _optional_): Optional description of the scene, action, camera movement, lighting, and mood. - **`last_image`** (`string`, _optional_): Optional final-frame image URL for interpolation. - **`resolution`** (`string`, _optional_): resolutie video-uitvoer. - Default: `"480p"` - Options: `"480p"`, `"768p"`, `"2k"` - **`duration`** (`integer`, _optional_): Output video duration in seconds. - Default: `5` - Options: `"3"`, `"4"`, `"5"`, `"6"`, `"7"`, `"8"`, `"9"`, `"10"`, `"11"`, `"12"`, `"13"`, `"14"`, `"15"` - **`seed`** (`integer`, _optional_): Random seed. Negative values use a random seed. - Default: `-1` - **`aigc_watermark`** (`boolean`, _optional_): Optional. Add an AIGC watermark to the generated video. ## Resultaat Schema Het polling-eindpunt retourneert de volgende velden: - **`id`** (`string`): De aanvraag-ID. - **`status`** (`string`): Eén van de opties 'in wachtrij', 'in behandeling', 'bezig met verwerken', 'voltooid', 'mislukt', 'geannuleerd'. - **`outputs`** (`array`): URL's naar gegenereerde afbeeldingen/video's/audio. Leeg totdat `status` `voltooid` is. - **`urls.get`** (`string`): Zelfkoppeling om deze voorspelling opnieuw op te halen. - **`error`** (`string` | `null`): Foutmelding als `status` `mislukt` is. - **`created_at`** (`string`): ISO-8601-tijdstempel van het moment waarop de aanvraag is gemaakt. - **`has_nsfw_contents`** (`array of boolean`): NSFW-detectievlaggen per uitgang. ## Webhooks (optional) Voeg `?webhook=https://uw-server/pad` toe aan de verzend-URL. Wanneer de taak een eindstatus bereikt, POST MuApi dezelfde vorm als het polling-antwoord op uw URL - geen polling nodig. ## Agent Integration MuApi levert een MCP-server en CLI zodat agenten (Claude Code, Cursor, aangepast) dit eindpunt kunnen aanroepen zonder HTTP-code te schrijven: ```bash # Installeer de CLI npm install -g muapi-cli # Authenticate once muapi auth login # Expose all MuApi modellen as MCP tools to your agent muapi mcp serve ``` De MCP-server stelt tools beschikbaar die verzend + poll voor elk model inpakken, inclusief `minimax-h3-image-to-video-spicy`. Zie `muapi --help` voor categoriespecifieke snelkoppelingen (`muapi image genereren`, `muapi video from-image`, etc.). ## Related Models - [MiniMax H3 Spicy Image to Video](https://muapi.ai/nl/playground/minimax-h3-image-to-video-spicy) - [MiniMax H3 Max Spicy Text to Video](https://muapi.ai/nl/playground/minimax-h3-max-spicy-text-to-video) - [MiniMax H3 Max Spicy Image to Video](https://muapi.ai/nl/playground/minimax-h3-max-spicy-image-to-video) - [MiniMax H3 Max Spicy Reference to Video](https://muapi.ai/nl/playground/minimax-h3-max-spicy-reference-to-video) - [MiniMax H3 Max Turbo Spicy Text to Video](https://muapi.ai/nl/playground/minimax-h3-max-turbo-spicy-text-to-video) - [MiniMax H3 Max Turbo Spicy Image to Video](https://muapi.ai/nl/playground/minimax-h3-max-turbo-spicy-image-to-video) - [MiniMax H3 Spicy Text to Video](https://muapi.ai/nl/playground/minimax-h3-text-to-video-spicy) - [MiniMax H3 Spicy Reference to Video](https://muapi.ai/nl/playground/minimax-h3-reference-to-video-spicy) ## Bronnen - [Playground Page](https://muapi.ai/nl/playground/minimax-h3-image-to-video-spicy) - [API Reference](https://muapi.ai/nl/playground/minimax-h3-image-to-video-spicy/api) - [Global llms.txt](https://muapi.ai/nl/llms.txt)