Claude
Messages API and Claude Code.
HALF API / MODEL GATEWAY
Official models. Same names, the client you already run. Codex and the OpenAI SDK use https://api.halfapi.com/v1. Claude Code uses https://api.halfapi.com. Pay with USDT from $1.
MODELS
Keep Claude Code, Codex, or the OpenAI SDK. Change the base URL. Model names are on the models page. Prices stay on the model market.
Messages API and Claude Code.
Codex and chat completions.
Gemini and Grok, each on its own group.
China models, then DeepSeek, Kimi, and GLM on their own groups.
QUICKSTART
Use the OpenAI or Anthropic interface. Model names follow the console list.
curl https://api.halfapi.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL",
"messages": [
{"role": "user", "content": "ping"}
]
}'
FAQ