# Minimax H3 Fast Reference To Video > AI model for generating video content ## Overview - **Model ID**: `h3-minimax-ref-to-video-fast` - **Category**: video - **Provider**: modelslab - **Source Type**: Open Source Model - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.ai/generations/3eac94a3-d2de-44ec-9ac3-196865b374dc.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v6/video/img2video` - **Method**: POST ### Parameters - **`prompt`** (required): Text prompt for video generation. Refer to reference assets by their modality and order in the reference lists: Image 1, Image 2, Video 1, Audio 1, and so on. - Type: textarea - **`duration`** (required): The duration of the video in seconds. Default value: 5 - Type: number (range: 5-15) - **`resolution`** (required): - Type: select (options: 480p, 768p) - **`init_image`** (required): URLs of subject/style reference images, referenced in the prompt as Image 1, Image 2, and so on. - Type: array - **`init_video`** (required): - Type: array - **`init_audio`** (required): URLs of reference audio clips (2-15 seconds each, combined duration at most 15 seconds), referenced in the prompt as Audio 1, Audio 2, and so on. Audio cannot be the only reference input; provide at least one reference image or video with it. Reference images, videos, and audio clips must add up to at most 12 files. - Type: array ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v6/video/img2video \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "h3-minimax-ref-to-video-fast", "prompt": "A scene of urban fantasy art. A dynamic graffiti art character. A boy painted with spray paint comes to life from a concrete wall. He sings an English rap song at a very fast pace while striking a classic, energetic rapper pose. The scene is set under an urban railway bridge at night. The lighting comes from a single streetlight, creating a cinematic atmosphere full of high energy and amazing detail. The audio of the video consists entirely of the boy's rap, with no other dialogue or noise.", "duration": "5", "resolution": "768" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v6/video/img2video", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "h3-minimax-ref-to-video-fast", "prompt": "A scene of urban fantasy art. A dynamic graffiti art character. A boy painted with spray paint comes to life from a concrete wall. He sings an English rap song at a very fast pace while striking a classic, energetic rapper pose. The scene is set under an urban railway bridge at night. The lighting comes from a single streetlight, creating a cinematic atmosphere full of high energy and amazing detail. The audio of the video consists entirely of the boy's rap, with no other dialogue or noise.", "duration": "5", "resolution": "768" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v6/video/img2video", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "h3-minimax-ref-to-video-fast", "prompt": "A scene of urban fantasy art. A dynamic graffiti art character. A boy painted with spray paint comes to life from a concrete wall. He sings an English rap song at a very fast pace while striking a classic, energetic rapper pose. The scene is set under an urban railway bridge at night. The lighting comes from a single streetlight, creating a cinematic atmosphere full of high energy and amazing detail. The audio of the video consists entirely of the boy's rap, with no other dialogue or noise.", "duration": "5", "resolution": "768" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Integration Options ### CLI Install: `curl -fsSL https://modelslab.sh/install.sh | sh` or `brew install modelslab/tap/modelslab` ```bash modelslab auth login # Authenticate modelslab models search "h3-minimax-ref-to-video-fast" # Find this model modelslab models detail --id h3-minimax-ref-to-video-fast # Get model details modelslab generate image --prompt "..." --model h3-minimax-ref-to-video-fast # Generate with model modelslab config set generation.default_model h3-minimax-ref-to-video-fast # Set as default ``` - Website: https://modelslab.sh - GitHub: https://github.com/ModelsLab/modelslab-cli ### MCP Servers (Model Context Protocol) For Claude Code, Cursor, VS Code, Windsurf, and any MCP-compatible agent. - Generation: `https://modelslab.com/mcp/v7` (API key auth, 23 tools) - Agent Control Plane: `https://modelslab.com/mcp/agents` (Bearer token auth, 10 tools) Claude Code config (`~/.claude/settings.json`): ```json { "mcpServers": { "modelslab-v7": { "url": "https://modelslab.com/mcp/v7", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } } ``` - Documentation: https://docs.modelslab.com/mcp-web-api/overview ### Agent Skills Install skill files directly into AI coding agents: ```bash npx skills add modelslab/skills --all # All skills npx skills add modelslab/skills --skill image-generation # Specific skill npx skills add modelslab/skills --all -a claude-code -a cursor # Target agents ``` - GitHub: https://github.com/ModelsLab/skills - Documentation: https://docs.modelslab.com/agent-skills ### SDKs - Python: `pip install modelslab` - TypeScript: `npm install modelslab` - PHP: `composer require modelslab/modelslab` - Go: `go get github.com/modelslab/modelslab-go` - Dart: `dart pub add modelslab` ## Links - [Model Playground](https://modelslab.com/models/modelslab/h3-minimax-ref-to-video-fast) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)