# minimax-h3-spicy/image-to-video

> MiniMax H3 generates 2K video clips up to 15 seconds with native stereo audio from a source image. Supports first-frame and last-frame image-to-video modes. Animate still images into smooth, cinematic video with synchronized audio.

- **Provider:** AirCube
- **Category:** image-to-video
- **Price:** $0.7000 per run

## Key Features

- Animate still images into 2K video with native stereo audio.
- First-frame and optional last-frame mode — use images as start and end keyframes.
- Up to 15-second video clips from source images.
- Automatic aspect ratio detection from input image dimensions.
- High-fidelity motion generation that respects the original image content and composition.
- Built-in audio synthesis — generates synchronized sound effects and ambient audio.

## Parameters

| Parameter | Required | Description |
| --- | --- | --- |
| `prompt` | Yes | Text description of the motion and audio to generate. |
| `image` | Yes | Source image URL to animate (first frame). |
| `last_frame_image` | No | Optional last frame image URL — the model interpolates between first and last frames. |
| `duration` | No | Video length in seconds: 4-15 (default: 5). |
| `resolution` | No | Output resolution: 480p, 512p, 720p (768P), 1080p (2K) (default: 720p). |

## How to Use

1. Upload a high-quality source image that you want to animate.
2. Optionally upload a last-frame image for keyframe interpolation.
3. Write a prompt describing the desired motion, camera movement, and audio.
4. Select duration and resolution — the aspect ratio is automatically determined from your image.

## Code Examples

### Python

```python
import os
import requests

response = requests.post(
    "https://aircube.ai/api/v3/minimax-h3-spicy/image-to-video",
    headers={
        "Authorization": "Bearer " + os.environ["AIRCUBE_API_KEY"],
        "Content-Type": "application/json",
    },
    json={
    "prompt": "Gentle camera zoom in, steam rising from the coffee cup, soft morning light",
    "image": "https://example.com/coffee-scene.jpg",
    "duration": "5s",
    "resolution": "1080p"
},
    timeout=300,
)
data = response.json()

if data["success"]:
    print("ID:", data["data"]["id"], "Status:", data["data"]["status"])
else:
    print("Error:", data["error"]["message"])
```

### Node.js

```javascript
const response = await fetch("https://aircube.ai/api/v3/minimax-h3-spicy/image-to-video", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.AIRCUBE_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "prompt": "Gentle camera zoom in, steam rising from the coffee cup, soft morning light",
  "image": "https://example.com/coffee-scene.jpg",
  "duration": "5s",
  "resolution": "1080p"
}),
});

const data = await response.json();

if (data.success) {
  console.log("ID:", data.data.id, "Status:", data.data.status);
} else {
  console.error("Error:", data.error.message);
}
```

### cURL

```curl
curl -X POST "https://aircube.ai/api/v3/minimax-h3-spicy/image-to-video" \
  -H "Authorization: Bearer $AIRCUBE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Gentle camera zoom in, steam rising from the coffee cup, soft morning light",
  "image": "https://example.com/coffee-scene.jpg",
  "duration": "5s",
  "resolution": "1080p"
}'
```

### Python (Async)

```python
import os
import time
import requests

# 1. Submit
response = requests.post(
    "https://aircube.ai/api/v3/minimax-h3-spicy/image-to-video",
    headers={
        "Authorization": "Bearer " + os.environ["AIRCUBE_API_KEY"],
        "Content-Type": "application/json",
    },
    json={
    "prompt": "Gentle camera zoom in, steam rising from the coffee cup, soft morning light",
    "image": "https://example.com/coffee-scene.jpg",
    "duration": "5s",
    "resolution": "1080p"
},
    timeout=300,
)
data = response.json()

if not data["success"]:
    print("Error:", data["error"]["message"])
    exit(1)

generation_id = data["data"]["id"]
print(f"Submitted: {generation_id}")

# 2. Poll until completed
while True:
    time.sleep(5)
    r = requests.get(
        f"https://aircube.ai/api/v3/status/{generation_id}",
        headers={"Authorization": "Bearer " + os.environ["AIRCUBE_API_KEY"]},
    )
    result = r.json()["data"]

    if result["status"] == "completed":
        print(result["output_url"])
        break
    elif result["status"] == "failed":
        print("Generation failed")
        break
```

### Node.js (Async)

```javascript
// 1. Submit
const response = await fetch("https://aircube.ai/api/v3/minimax-h3-spicy/image-to-video", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.AIRCUBE_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
  "prompt": "Gentle camera zoom in, steam rising from the coffee cup, soft morning light",
  "image": "https://example.com/coffee-scene.jpg",
  "duration": "5s",
  "resolution": "1080p"
}),
});
const data = await response.json();

if (!data.success) {
  console.error("Error:", data.error.message);
  process.exit(1);
}

const generationId = data.data.id;
console.log("Submitted:", generationId);

// 2. Poll until completed
while (true) {
  await new Promise((r) => setTimeout(r, 5000));
  const res = await fetch(
    `https://aircube.ai/api/v3/status/${generationId}`,
    { headers: { "Authorization": "Bearer " + process.env.AIRCUBE_API_KEY } },
  );
  const result = (await res.json()).data;

  if (result.status === "completed") {
    console.log(result.output_url);
    break;
  } else if (result.status === "failed") {
    console.error("Generation failed");
    break;
  }
}
```

### cURL (Async)

```curl
# 1. Submit
RESPONSE=$(curl -s -X POST "https://aircube.ai/api/v3/minimax-h3-spicy/image-to-video" \
  -H "Authorization: Bearer $AIRCUBE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Gentle camera zoom in, steam rising from the coffee cup, soft morning light",
  "image": "https://example.com/coffee-scene.jpg",
  "duration": "5s",
  "resolution": "1080p"
}')

ID=$(echo "$RESPONSE" | jq -r '.data.id')
echo "Submitted: $ID"

# 2. Poll until completed
while true; do
  sleep 5
  STATUS_RES=$(curl -s "https://aircube.ai/api/v3/status/$ID" \
    -H "Authorization: Bearer $AIRCUBE_API_KEY")
  STATUS=$(echo "$STATUS_RES" | jq -r '.data.status')

  if [ "$STATUS" = "completed" ]; then
    echo "$STATUS_RES" | jq -r '.data.output_url'
    break
  elif [ "$STATUS" = "failed" ]; then
    echo "Generation failed"; break
  fi
done
```

## Pricing

| Resolution | Duration | Cost |
| --- | --- | --- |
| 480p | 4s | $0.34 |
| 480p | 5s | $0.42 |
| 480p | 6s | $0.50 |
| 480p | 8s | $0.67 |
| 480p | 10s | $0.84 |
| 480p | 12s | $1.01 |
| 480p | 15s | $1.26 |
| 512p | 4s | $0.45 |
| 512p | 5s | $0.56 |
| 512p | 6s | $0.67 |
| 512p | 8s | $0.90 |
| 512p | 10s | $1.12 |
| 512p | 12s | $1.34 |
| 512p | 15s | $1.68 |
| 720p | 4s | $0.56 |
| 720p | 5s | $0.70 |
| 720p | 6s | $0.84 |
| 720p | 8s | $1.12 |
| 720p | 10s | $1.40 |
| 720p | 12s | $1.68 |
| 720p | 15s | $2.10 |
| 1080p | 4s | $0.80 |
| 1080p | 5s | $1.00 |
| 1080p | 6s | $1.20 |
| 1080p | 8s | $1.60 |
| 1080p | 10s | $2.00 |
| 1080p | 12s | $2.40 |
| 1080p | 15s | $3.00 |

### Billing Rules

- 480p / 4s: $0.34.
- 512p / 4s: $0.45.
- 720p / 4s: $0.56.
- 1080p / 4s: $0.80.
- Longer durations scale proportionally.
- Failed generations are not charged.

## Best Use Cases

- Bringing product photos to life with motion and ambient sound.
- Creating social media video content from static photography.
- Animating artwork, illustrations, and concept art.
- Generating video transitions between two keyframe images.

## Pro Tips

- The aspect ratio is automatically derived from your input image — no need to set it manually.
- Describe both visual motion AND audio in your prompt for best results.
- Use high-resolution input images (up to 5,760px per side) for best quality.
- Supported formats: JPG, JPEG, PNG, WEBP, HEIC, HEIF (max 30 MB).
- Use the optional last_frame_image for controlled start-to-end transitions.

## Notes

- Image-to-video and reference-to-video modes are mutually exclusive.
- Input images must have an aspect ratio between 2:5 and 5:2.

## FAQ

**Q: What image formats are supported?**

JPG, JPEG, PNG, WEBP, HEIC, and HEIF — max 30 MB per image, dimensions between 256 and 5,760 pixels per side.

**Q: Can I provide both first and last frames?**

Yes — use the image parameter for the first frame and last_frame_image for the last frame. The model will interpolate between them.

**Q: Does the output include audio?**

Yes — H3 generates native stereo audio synchronized with the video content.
