Skip to main content
RefillAPI gives you one OpenAI-compatible API for text, video, image and audio models — DeepSeek, Kimi, GLM, Qwen, MAGI-2, MiniMax-H3, Wan and more. One API key works for all of them, and you pay per use in US dollars.

What you need

Use the exact model ID, not the display name. DeepSeek V4 Pro or deepseek-v4 returns a “model not found” error.

Send your first request

1

Create an API key

Sign in, open API Keys and click Create API Key. Then add credit in Wallet — see Billing.
Treat the key like a password. Keep it out of public repositories, front-end code and screenshots.
2

Call a model

Replace YOUR_API_KEY, then run:
3

Check the result

The answer is in choices[0].message.content. Every call, with its usage and cost, shows up in Usage Logs. If the call fails, the error message says why — see Errors.

Which base URL does my tool want?

A wrong base URL returns 404, and the message tells you whether /v1 is missing, doubled, or the base URL was used as a full endpoint.

Next steps

Generate a video

Async video tasks with MAGI-2, MiniMax-H3 and Wan.

Chat completions

Request fields, streaming and tool calls.

Claude Code

Use DeepSeek, Kimi or GLM as the model behind Claude Code.

Models

Which endpoint each model uses and how it is billed.