API Docs — HefuAI Platform

Get started with the OpenAI-compatible API: one key for all major models, with guides for Claude Code, Cursor, Codex, Cline, OpenClaw, Hermes, Cherry Studio and more.

Quickstart

curl https://hefu.hk/api/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek-v4-flash", "messages": [{"role": "user", "content": "Hello"}]}'

Endpoints

Supported clients

All clients connect with the same Base URL and one API key (OpenAI-compatible; Claude Code uses the Anthropic-compatible protocol).