# magi-2 API — WanAPIs

> **Model ID**: `magi-2` · **Provider**: 其它 · **Category**: video · **Endpoint**: `POST /v1/video/generations`
> **Live Price**: $0.728 / 秒 (RMB-anchored quota: `¥1 = $1 quota`, ~86% off USD list rates at `$1 ≈ ¥7`).
> **Web Page**: https://wanapis.com/model/magi-2

Sand AI 的异步视频模型。固定 1080p，支持 4–30 秒（默认 5 秒），可生成同步音频；API 支持首尾帧与图、视频、音频参考。按提交时选择的输出时长计费。

**Also known as**: 其它 magi-2

## Live Pricing & Specs

| Resolution Tier | Quota / sec | Real RMB Paid / sec | Approx. USD / sec (÷7) |
| --- | --- | --- | --- |
| 1080p | $0.728/s | ¥0.728/s | ~$0.104/s |

## Quickstart (cURL)

```bash
curl https://api.wanapis.com/v1/video/generations \
  -H "Authorization: Bearer $WANAPIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "magi-2",
  "prompt": "A paper boat crosses a calm lake, slow cinematic tracking shot",
  "duration": 5,
  "resolution": "1080p"
}'

# Poll until completed / SUCCESS:
curl https://api.wanapis.com/v1/video/generations/<task_id> \
  -H "Authorization: Bearer $WANAPIS_API_KEY"
```

## FAQ

### 如何通过 WanAPIs 调用 magi-2？

在请求头携带 Authorization: Bearer <WANAPIS_API_KEY>，向 https://api.wanapis.com 的 POST /v1/video/generations 传入 model="magi-2" 即可调用。

### magi-2 在 WanAPIs 上如何计费？

当前实时标价：$0.728 / 秒。WanAPIs 采用人民币元锚定额度（¥1 = $1 等价额度，约合美元官方价的 1/7），无月租无保底。

### Claude Code、Codex 等 AI Agent 可以自动接入这个模型吗？

可以。直接把 https://wanapis.com/SKILL.md 发给 Agent，或安装 npx -y @wanapis/mcp；本页也提供纯 Markdown 规格文档 /model/magi-2.md 供 Agent 直接读取。

## Related Links

- Web Landing Page: https://wanapis.com/model/magi-2
- Agent Skill Router: https://wanapis.com/SKILL.md
- Complete Live Pricing (Markdown): https://wanapis.com/pricing.md
- OpenAPI 3.1 Spec: https://wanapis.com/openapi.json
- MCP Server Card: https://wanapis.com/.well-known/mcp.json
