Skip to content

Quickstart

Sign up, create an API key, pick the right protocol address, and send your first request.

Use caseAddress
Anthropic protocol
Claude Code and Claude models
https://api.hop-base.com
OpenAI protocol
Codex, GPT, Gemini, GLM, Qwen, DeepSeek, and Grok chat, plus image models
https://api.hop-base.com/v1
API keysk-xxxxxx (created in the console)
Discover models available to the keyGET https://api.hop-base.com/v1/models

The Anthropic Base URL does not include /v1; Anthropic clients append the API path. The OpenAI Base URL must include /v1.

Setup steps

Three steps: sign up, create a key, and put the Base URL and key into your tool or code.

Register or sign in

Open api.hop-base.com/login to sign up or sign in. Registration is open.

Create an API key

In the console sidebar, open API Keys, select Create Key, and choose one or more groups. You get a key that starts with sk-.

The groups decide which models the key can call. A group serves one model family (such as Claude, GPT, or Gemini), and a key can include 1–10 groups across families, so one key can cover Claude, GPT, video, and speech. You can also edit an existing key to add groups. Groups whose models overlap cannot share a key (the exception: GPT Official Direct (Azure) can be combined with either Codex Plus or Codex Pro, and with GPT Image (all models)), and a subscription group must be a key's only group.

To match a group to a model, see Which group to choose below.

Configure the Base URL

Set the Base URL in your tool or code to the address for your protocol in the table above, and enter the key.

Send your first request

Paste a key to see which models it can call and how much it can spend. The examples on the quickstart and SDK pages then use models your key can call. The key stays in this browser and is sent only to api.hop-base.com.

First list the models the current key can call:

curl https://api.hop-base.com/v1/models \
  -H "Authorization: Bearer sk-your-key"

Then send a minimal chat request. The curl, Python, Node.js, Go, and Java tabs call gpt-5.6-sol over the OpenAI protocol and need a Codex group key; the Claude tab calls claude-sonnet-5 over the Anthropic protocol and needs a Claude group key. For another model family, replace model with an ID that /v1/models returns for that key.

curl https://api.hop-base.com/v1/chat/completions \
  -H "Authorization: Bearer sk-your-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.6-sol",
    "messages": [{"role": "user", "content": "Reply with only: ok"}]
  }'

A successful call returns HTTP 200. The OpenAI protocol puts the reply in choices[0].message.content, the Anthropic protocol in content[0].text, and both include a usage object:

{
  "object": "chat.completion",
  "model": "gpt-5.6-sol",
  "choices": [{
    "index": 0,
    "message": { "role": "assistant", "content": "ok" },
    "finish_reason": "stop"
  }],
  "usage": { "prompt_tokens": 12, "completion_tokens": 2, "total_tokens": 14 }
}

A 401 means the key is wrong. A 404 saying the group does not support the model means none of the key's groups serves that model — use an ID from /v1/models, or add the matching group to the key.

To have a coding agent make the project changes, continue to Integrate with AI.

Balance and billing

  • Prepaid: top up your account under Recharge in the console sidebar; each call is deducted from the balance by actual usage. Once the balance runs out, new requests return 402.
  • Rates: the signed-in model catalog is authoritative; every charge is itemised under Usage in the console.
  • Failures are not charged: failed requests are not billed in principle; a stream that breaks midway is billed for the output already produced. Full rules: Concurrency, timeouts, and billing.

Which group to choose

Choose groups by the models you want to call. One key can include 1–10 groups, and each request is billed at the rate of the group that serves its model. The key dialog lists only currently sold groups and does not let you combine groups whose models overlap (except GPT Official Direct (Azure) with a Codex group or GPT Image (all models) — see the note after the GPT table); a subscription group must be a key's only group. Rates depend on your account and are authoritative in the signed-in model catalog — these tables only show which group serves which models. Group names below are as the console shows them in English.

Claude Code and the Claude API

Console groupModels and notes
Claude Max (Official, Full Quota)All Claude models; works with the Claude API, SDKs, and Claude Code
Claude Max (Official, Full Quota) - Limited-Time OfferSame as above
Claude Max (ccmax)All Claude models, Claude Code client only; direct SDK or API calls fail

Chat and coding (OpenAI protocol)

Console groupModels and notes
Codex Plus · Codex ProGPT chat and Codex CLI (Chat Completions / Responses); no GPT Image
GPT Official Direct (Azure)Chat: gpt-6-sol, gpt-6-luna, gpt-6-astra, gpt-6.1-sol, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4, on Chat Completions, Responses, and Anthropic Messages. Images: gpt-image-2.5-flare and gpt-image-2.5-sunburst on /v1/images/generations and /v1/images/edits, returned synchronously as Base64. Model names match OpenAI's; no codex-* or gpt-image-2; no Fast (priority) tier
Gemini (all models, incl. image)Gemini chat (Chat Completions, Responses, and Anthropic Messages, with tool calling) and Banana images
Gemini Official DirectGemini chat (Chat Completions, Responses, and Anthropic Messages, with tool calling) and Banana images; /v1/chat/completions also accepts native Gemini request bodies
GLM Official Directglm-5.3 and glm-5.3-flash
Kimi K3 Cloudkimi-k3
DeepSeekDeepSeek V4.1 Flash, V4 Pro and V4 Flash
Qwen 3.8/3.7 Series (Alibaba Official)All five Qwen chat models, some with image or video input
Doubao Seed CloudThe seven Doubao Seed chat models (two 2.1 Pro versions, 2.1 Lite, 2.1 Turbo, Evolving, Character, 2.0 Mini), all with image input and tool calling, over Chat Completions, Responses, and Anthropic Messages
Grok SuiteGrok chat and Grok image generation

Mixing Azure with Codex and GPT Image: one key can include GPT Official Direct (Azure) together with either Codex Plus or Codex Pro, and can also add GPT Image (all models); you do not need to pick a source.

  • Models in both groups go to the Azure group first, whatever order you selected the groups in. The models shared with the Codex groups are gpt-5.5, gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-6-sol, gpt-6-luna, gpt-6-astra, gpt-6.1-sol; the ones shared with GPT Image (all models) are gpt-image-2.5-flare and gpt-image-2.5-sunburst. If Azure fails before returning any output, the request switches to the other group automatically. A response that has already started is not switched if it breaks off.
  • Each request is billed by the group that actually served it, and usage records show that group.
  • Models in only one group are served by that group as usual — for example, codex-* is only in the Codex groups, gpt-5.4 and gpt-4.1 are only in the Azure group, and gpt-image-2 is only in GPT Image (all models).
  • Requests served by the Azure group do not support the Fast (priority) tier; they run and bill at the standard tier.
  • The key dialog, key list, and connect dialog label the two groups Primary and Backup, with a one-line billing note.

Other groups whose models overlap, such as Codex Plus and Codex Pro, still cannot share a key.

Image generation

Console groupModels and notes
GPT Image (all models)Every gpt-image-* model, including gpt-image-2; gpt-image-2.5-flare and gpt-image-2.5-sunburst are also in GPT Official Direct (Azure) (see the GPT table above)
Seedream Image GenerationSeedream generation and editing
Midjourney Image GenerationMidjourney image generation

Gemini Banana images live in the two Gemini groups above, Grok images in Grok Suite, and Kling images in Kling Official below.

Video generation

Console groupModels and notes
Seedance China (Doubao)Seedance China version
Seedance overseas + SeedreamSeedance overseas version, plus Seedream images
Grok VideoGrok video generation — a separate group from Grok Suite
Kling OfficialKling video, image, motion control, avatar, and lip sync
MiniMax H3 OfficialMiniMax H3 video
MiniMax H3 Max OfficialMiniMax H3-Max video — a separate group from H3
Wan 3.0 OfficialWan 3.0 video
HappyHorse 1.1 OfficialHappyHorse 1.1 video; shares an endpoint with Wan but is a separate group

Speech

Console groupModels and notes
MiniMax Speech OfficialMiniMax speech synthesis and voice cloning
Doubao Speech CloudDoubao Speech seed-tts-2.0 (text to speech) and seed-audio-1.0 (audio from a scene description), plus voice cloning with seed-icl-2.0 (clone your own voice, then synthesize); synthesis uses POST /v1/audio/speech and cloning uses POST /v1/voice_clone

Group names and lineup change as models are added or retired. If a group in these tables is missing from your console, it may have been renamed or discontinued — check the key-creation dialog for the current list.

Next steps