Skip to content

API overview

Call chat, image, video, and speech models through one Base URL; examples are tested daily.

Developer quickstart

Send your first request in minutes. Keep using the OpenAI or Anthropic SDK — just change the Base URL and API key.

curl https://api.hop-base.com/v1/chat/completions \
  -H "Authorization: Bearer $HOPBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5.6-sol",
    "messages": [
      {
        "role": "user",
        "content": "Write a one-line product tagline"
      }
    ]
  }'

Start here

  1. Choose how to call HopBase and a model family

    Will you use a coding tool such as Claude Code or Codex, or call the API from your own code? Decide that first, then pick a model family.

  2. Create an API key in the right group

    Each key belongs to exactly one group, and the group decides which models the key can call. To use several model families, create one key per family.

  3. Install an SDK, or send plain HTTP

    The official SDKs work as is — change only base_url and the key. No SDK? Use curl.

  4. Send your first request

    Follow the quickstart to complete one chat request and confirm that the key, group, and Base URL match.

  5. Before you go to production

    Learn the error codes and retry rules, plus concurrency and timeout limits. When troubleshooting, include the x-request-id response header.

Start with a task

Not sure which image model to use? Answer three questions

  1. 1What are you making?
  2. 2What matters most?
  3. 3Largest size
Gemini Imagegemini-3.1-flash-imageSupports 1K / 2K

Gemini 3.1 Flash Image

Flash tier at $0.0672 / image, up to 14 reference images, and moving up to 2K costs nothing extra

Recommendations are based on official prices and specs, not on image-quality benchmarks.

Other entry points

What you want to doStart here
Have a coding AI integrate HopBase into an existing projectIntegrate with AI
Create images and videos in the browser, no codeCreative Studio
Manage Claude Code and Codex settings in a desktop appCC Switch
Configure Cursor, Cline, Roo Code, or ContinueEditors and IDEs
Configure Cherry Studio, NextChat, or LobeChatThird-party clients
Compare official prices, limits, and availability across modelsModels
Generate image requests and code from each model's specImage request builder
Fix 401, 404, model-not-found, and other errorsTroubleshooting