Repository navigation
Add HopBase provider - #12200
Add HopBase provider#12200victor-zzh wants to merge 20 commits into
Conversation
Action items
|
|
Thanks for the review. All items were re-checked on 2026-10-31 against the live API and HopBase's billing logic; evidence is in each file's header.
|
|
No actionable findings. |
HopBase bills gemini-3.1-pro-preview at a long-context tier above 200K input tokens (input and cache read x2, output x1.5), as published in its pricing catalog and llms.txt. The entry listed a single tier, understating long requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable findings. |
Action items
|
Action items
|
…or Claude Fable 5.2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Action items
|
…ude Fable 5.2 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Action items
|
Action items
|
|
Thanks — addressed the three items:
|
|
No actionable findings. |
Action items
|
# Conflicts: # models/bytedance-seed/seed-2.1-lite.toml
Action items
|
Adds HopBase (https://hop-base.com), an OpenAI-compatible API gateway for chat, image and video models.
Disclosure: I work on HopBase.
npm = "@ai-sdk/openai-compatible",opencodeai = "@opencode/ai/providers/openai-compatible"api = "https://api.hop-base.com/v1",env = ["HOPBASE_API_KEY"],doc = "https://hop-base.com/en/docs"currentColorlogo, square viewBox.base_modeland only overrides what this host does differently.[cost]is filled for every model (USD) with the price any registered account pays in the public group that serves it; no contract or volume deal is assumed. The 9 headline text prices match the self-serve table at https://hop-base.com/pricing (also in https://hop-base.com/llms.txt). Doubao Seed prices are HopBase's own USD prices, as published on the public pricing endpoint (https://api.hop-base.com/api/v1/models/pricing).-sg) bills off-peak at half price. The base price is the off-peak rate, and a[[cost.multipliers]]factor of 2 covers the weekday peak windows (UTC 01:00-04:00 and 06:00-10:00), matching the billing logs. DeepSeek V4 Pro has a single all-day rate.kling-v4per second (1080p override),dreamina-seedance-2-5-260628per 1M video tokens (resolution andinput_videooverrides, same shape as the Vercel entry),seedream-5-0-proper image (override above 2.61 MP; reference images as image input).Model catalogue: https://hop-base.com/models.
GET /v1/modelsneeds a key; the same IDs are also listed without auth at https://api.hop-base.com/api/v1/models/pricing.Models
Chat (
/v1/chat/completions):deepseek-v4.1-flash-1017-sg: DeepSeek V4.1 Flash 1017 from a Singapore data centerdoubao-seed-2-1-pro-260915doubao-seed-2-1-lite-260915doubao-seed-character-260628doubao-seed-2-1-pro-260628doubao-seed-2-1-turbo-260628doubao-seed-2-0-mini-260428doubao-seed-evolvinggrok-4.20-multi-agent-0309: tools off (client-side tools need xAI beta access)deepseek-v4.1-flash-1017deepseek-v4-pro-202606: HopBase ID for DeepSeek V4 Pro 0813gpt-5.6-solgemini-3.8-flashgemini-3.1-pro-previewgrok-4.7kimi-k3glm-5.3Anthropic Messages (
/v1/messages, per-model[api.messages]override with@ai-sdk/anthropic, because HopBase serves Claude over Messages only):claude-fable-5-2: verified live 2026-11-10 (streaming usage, auto and strict tool use,tool_choiceany rejected as on Anthropic, all five effort levels, image input, explicit cache write/read). Priced at the public "Claude Max (ccmax)" group rate.Media (async/sync task endpoints,
aisdk/opencodeaiset accordingly):kling-v4([api.videos],path = "/video/generate", async task + poll)dreamina-seedance-2-5-260628([api.videos], same task API)seedream-5-0-pro([api.images], OpenAI-compatible/v1/images/generations)New lab files, because nothing existed to point
base_modelat:models/bytedance-seed/seed-2.1-pro-0915.toml: 260915 snapshot, 1M context and 256K output. The 256K-context 260628 snapshot keepsseed-2.1-pro.models/bytedance-seed/seed-2.1-lite.tomlmodels/kuaishou/kling-v4.toml:v2_only, the same shape askling-v3.0-pro.models/xai/grok-4.20-multi-agent-0309.toml: copied from the xAI provider entry so relays can reference it. The xAI provider file is unchanged.How the models were verified
All checks ran live on 2026-10-31 against
https://api.hop-base.com/v1/chat/completions, using each exact model ID and a regular customer API key. Each file's header comment has the details.stream_options.include_usage, and a function-tool call for every chat model.@ai-sdk/openai-compatible1.0.60 withai5 rangenerateText,streamText, and a multi-step tool round trip (stopWhen). This passed ondeepseek-v4.1-flash-1017-sg,doubao-seed-2-1-pro-260915,glm-5.3,kimi-k3,gpt-5.6-solandgrok-4.7.reasoning_effortlevel was tried, plus an invalid one. Toggles were tried where they exist (thinking.type). The files list only the levels the API accepts. Specifics:toggleplus nativelow/high/max.nonethroughmax. Seed Character is the exception:toggleplusminimal/low/high, because a graded effort sent without thinking enabled returns 400.maxis rejected with 400, so it is left out.noneandmaxare rejected.low/medium/high, mapped to thinking budgets on this host.reasoning_efforthas no effect).reasoning_field = "reasoning_content"is set only where the field actually came back.tool_choice:none,requiredand a named tool were each tested.choicelists only the values that were honoured. For example, Seed 2.1 Pro 0915, Seed Evolving and Gemini 3.8 Flash ignore it, so they get["auto"].structured_output:json_schemawithstrict: trueand an enum.cached_tokens > 0.max_tokensat the documented limit and limit + 1.image_input_not_supportedon image input.ZZ[0-9]{3}returnedZZ000.bun validatepasses.bun run v1:checkreports only additions: the new provider, its 18 v1-visible models and the 3 new non-v2_onlylab entries, 21 in total. No existing v1 field changes.kling-v4andseedream-5-0-proarev2_only.