Skip to content

Base URLs and protocols

Choose the HopBase OpenAI or Anthropic compatible URL for each model and client.

ScenarioProtocolBase URL
Claude models (Claude Code, Anthropic SDK)Anthropic Messages only — /v1/chat/completions and /v1/responses are not supportedhttps://api.hop-base.com
Codex CLIOpenAI Responseshttps://api.hop-base.com/v1
GPT chatOpenAI Chat Completions or Responses; Anthropic Messages also works, so Claude Code connects directlyhttps://api.hop-base.com/v1; Anthropic: https://api.hop-base.com
Gemini chat, Gemini (all models, incl. image) groupOpenAI Chat Completions or Responses; Anthropic Messages also works, so Claude Code connects directly. Codex CLI is not supportedhttps://api.hop-base.com/v1; Anthropic: https://api.hop-base.com
Gemini chat, Gemini Official Direct groupOpenAI Chat Completions or Responses; Anthropic Messages also works, so Claude Code connects directly through CC Switch (use a Gemini model ID as the model name). Tool calling works on all three protocols (details)https://api.hop-base.com/v1; Anthropic: https://api.hop-base.com
Grok chatOpenAI Chat Completions or Responses; Anthropic Messages also works, so Claude Code connects directly. Codex CLI is not supportedhttps://api.hop-base.com/v1; Anthropic: https://api.hop-base.com
Qwen chatOpenAI Chat Completions or Responses; Anthropic Messages, so Claude Code connects directlyhttps://api.hop-base.com/v1; Anthropic: https://api.hop-base.com
Doubao Seed chatOpenAI Chat Completions or Responses; also Anthropic Messageshttps://api.hop-base.com/v1; Anthropic: https://api.hop-base.com
DeepSeek V4 / V4.1OpenAI Chat Completions or Responses; Anthropic Messages, so Claude Code connects directlyhttps://api.hop-base.com/v1; Anthropic: https://api.hop-base.com
DeepSeek and GLM US Region (-us)OpenAI Chat Completions, Responses, and Anthropic Messages, so Claude Code connects directly — see US Regionhttps://api.hop-base.com/v1; Anthropic: https://api.hop-base.com
GLM-5.3 / GLM-5.3 Flash, GLM Official Direct groupOpenAI Chat Completions only — /v1/responses and /v1/messages are not supported and return 400. Codex CLI cannot connect; Claude Code needs CC Switch local routinghttps://api.hop-base.com/v1
Kimi K3OpenAI Chat Completions only — /v1/responses and /v1/messages are not supported and return 404. Codex CLI cannot connect; Claude Code needs CC Switch local routinghttps://api.hop-base.com/v1
GPT Image, Gemini Banana, SeedreamOpenAI Imageshttps://api.hop-base.com/v1

A protocol not listed for a model is not supported. Gemini also has no native :generateContent path, and this API does not accept x-goog-api-key.

HopBase supports both OpenAI and Anthropic compatible protocols; which one to use depends on the client and model type, not the key format.

Common endpoints

Moving over from OpenAI, OpenRouter or Anthropic? See Switch to HopBase. Response fields for /v1/models, /v1/usage and the public catalog are in Account and catalog API.

CapabilityEndpoint
Model discoveryGET /v1/models
Balance and usage for the current keyGET /v1/usage
Public model catalog and list prices (no key needed)GET /api/v1/models/pricing
OpenAI chatPOST /v1/chat/completions
OpenAI ResponsesPOST /v1/responses
Anthropic MessagesPOST /v1/messages
Image generationPOST /v1/images/generations
Image editingPOST /v1/images/edits
Text-to-speechPOST /v1/audio/speech / POST /v1/t2a_v2
Async image task pollingGET /v1/images/tasks?task_id=
Asset upload (reference images and video for async tasks)POST /v1/sd/assets
Video generation submissionPOST /v1/video/generate
Video task pollingGET /v1/video/tasks/{task_id}
Kling face detectionPOST /v1/kling/faces
Kling subjectsPOST /v1/kling/subjects / GET /v1/kling/subjects
Wan / HappyHorse video submissionPOST /api/v1/services/aigc/video-generation/video-synthesis
Wan / HappyHorse task pollingGET /api/v1/tasks/{task_id}

POST /v1/video/generate and GET /v1/video/tasks/{task_id} are shared by every asynchronous video family — Seedance, MiniMax, Kling, and Grok video all submit and poll through the same two paths; only the request body and model ID change. Kling needs only your HopBase Base URL and API key.

Wan / HappyHorse keep their native path — no /v1 prefix.

Wan 3.0 and HappyHorse do not use the /v1/video/generate path above. They keep the official API's original path directly under the host: https://api.hop-base.com/api/v1/services/aigc/video-generation/video-synthesis — there is no additional /v1 in front of that /api/v1/... segment. Configuring a Claude key as OpenAI Compatible sends requests to the wrong protocol path and returns 404, "The current platform does not support this API path." Change the provider type to Anthropic and remove /v1 from the Base URL.

Next steps

On this page