> ## Documentation Index
> Fetch the complete documentation index at: https://docs.refillapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Models

> Which endpoint each model family uses, how it is billed, and where to find exact model IDs.

## Model families

| Type | Families | Endpoint | Billed by |
| - | - | - | - |
| Text | DeepSeek, Kimi, GLM, Qwen | [`POST /v1/chat/completions`](https://docs.refillapi.com/api/chat) | Input and output tokens |
| Video | [MAGI-2](https://docs.refillapi.com/api/videos/magi-2.md), [MiniMax-H3](https://docs.refillapi.com/api/videos/minimax-h3.md), [Wan](https://docs.refillapi.com/api/videos/wan.md) | [`POST /v1/videos`](https://docs.refillapi.com/api/videos/overview) | Seconds of video |
| Image | Qwen-Image 3.0, Z-Image Turbo, Wan 2.7 Image Pro | [`POST /v1/images/generations`](https://docs.refillapi.com/api/images) | Per image |
| Audio | Qwen TTS, Qwen ASR | [`POST /v1/audio/speech`](https://docs.refillapi.com/api/audio/speech), [`POST /v1/audio/transcriptions`](https://docs.refillapi.com/api/audio/transcriptions) | Characters (TTS), tokens (ASR) |

> [!WARNING]
>
> Video, image and audio models cannot be called on `/v1/chat/completions`, and do not work in the chat box of chat clients. Call the endpoint listed above.

## Text model IDs

| Family | Example IDs | Notes |
| - | - | - |
| DeepSeek | `deepseek-v4-pro`, `deepseek-flash` | Reasoning models. Some are cheaper outside Beijing-time peak hours; the pricing page shows both rates. |
| Kimi | `kimi-k3`, `kimi-k3.1-pro`, `kimi-k2.7-code` | Long-horizon coding and agent work. |
| GLM | `glm-5.3`, `glm-5.3-flash`, `glm-5-turbo` | Flagship and lightweight versions. |
| Qwen | `qwen3.8-max`, `qwen3.7-plus`, `qwen3.8-flash` | Thinking can be turned off; long context. |

Text models support streaming and tool calls, and also work in Anthropic-format tools such as [Claude Code](https://docs.refillapi.com/integrations/claude-code.md). Optional parameters (temperature, reasoning effort, vision) vary by model — start with a minimal request.

## Video model IDs

| Model ID | Duration | Resolution | Audio | Inputs |
| - | - | - | - | - |
| `magi-2` | 4–30 s | 1080p | Optional | Text, first frame, reference images / videos / audio |
| `MiniMax-H3` | 4–15 s | 768P / 2K | Native | Text, first/last frame, reference images / videos / audio |
| `MiniMax-H3-Max` | 5–15 s | 480P / 768P | Native | Text, first/last frame |
| `wan3.0-video-prime`, `wan3.0-video` | 2–30 s | 480P / 720P / 1080P | — | Text, first/last frame, reference images / videos / audio |
| `wan2.7-t2v` | 2–15 s | 720P / 1080P | — | Text only |
| `wan2.7-i2v` | 2–15 s | 720P / 1080P | — | First frame required, optional last frame |

## Finding the exact ID

1. Open [Models & pricing](https://refillapi.com/pricing). Each model has a detail page with its price and a request example.
2. Or call [`GET /v1/models`](https://docs.refillapi.com/api/list-models) to list the IDs your key can use.
3. Put the exact ID in the `model` field. IDs are case-sensitive (`MiniMax-H3`, not `minimax-h3`).

> [!TIP]
>
> Prices are shown on [Models & pricing](https://refillapi.com/pricing) in US dollars. The docs do not keep a second copy of the price list.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.