定價+7% 贈送
聯絡銷售

Chub AI API Setup: Connecting Chub AI to an OpenAI-Compatible API

Connect Chub AI to GPTProto’s OpenAI-compatible text API using your own API key and a supported model ID. Follow the Secrets and Reverse Proxy setup, check the endpoint path, and configure context and generation settings. Compare roleplay models by character consistency and cost, and troubleshoot authentication, token limits and empty replies.

Chub AI API Setup: Connecting Chub AI to an OpenAI-Compatible API

Chub AI connects a character-chat interface to a text-generation API. To use GPTProto, open Chub’s Secrets settings, select the OpenAI reverse-proxy option and configure a supported text model with your GPTProto API key and endpoint. API usage is billed separately from configuring the connection; access to GPTProto’s wider model catalog does not make image or video APIs available through this text-chat setup.

目錄

What do you need before starting?

Start with a Chub AI account, a GPT Proto account with an API key and available credits, and a supported text-model ID. GPT Proto provides one API key and a shared balance for supported routes, so you can compare models without setting up a separate billing account with each model provider. Chub handles the character card, prompt and conversation interface. GPT Proto receives the API request and returns the selected model’s response. Chub’s API Connections documentation describes the supported connection types; compatibility still depends on the specific model, endpoint and request format.

What API key works with Chub AI?

Use a GPT Proto API key for requests sent to GPT Proto. An OpenAI or Anthropic key belongs to a different service and is not interchangeable. GPT Proto’s supported OpenAI-compatible routes use familiar chat request fields, but model-specific features and parameters can differ.

Do you need multiple provider accounts?

For model calls billed through GPT Proto, a GPT Proto account and its available balance replace separate prepaid balances with those model providers. A consumer ChatGPT or Claude subscription is not an API key, and this connection does not include the benefits of those subscriptions. Prerequisites checklist:

  • Chub AI account with access to the chat’s Secrets settings

  • GPT Proto account and API key

  • Available GPT Proto credits for the selected model

  • Exact text-model ID and supported endpoint from its API Usage panel Choose a text model before configuring the connection. The API key identifies your account; the endpoint identifies the service; the model ID selects what generates the reply. Keep these values in their separate fields.

How do you set up the reverse proxy in Chub AI?

Chub documents a Reverse Proxy option under its OpenAI connection. In this setup, GPT Proto is the separate API service receiving your requests; it is not OpenAI. Use your own GPT Proto account and key, rather than a public proxy or someone else’s credentials.

What credentials are needed for the reverse proxy setup?

For GPT Proto’s documented OpenAI-compatible chat route, the base URL is https://gptproto.com/v1 and the full request endpoint is https://gptproto.com/v1/chat/completions. A client that appends /chat/completions needs the base URL, not the full endpoint a second time. Follow the field’s endpoint instructions and avoid duplicating /v1 or /chat/completions. Copy the model ID from the selected model’s API Usage panel.

How do you configure the API settings in Chub AI?

  • Open a character chat, expand the top-right menu and open Secrets. Chub’s chat documentation places API connection settings here; generation settings are in Configuration.

  • Expand OpenAI and choose Reverse Proxy. This is Chub’s connection label for an alternative endpoint; it does not make GPT Proto an official OpenAI service.

  • Enter the GPT Proto endpoint in the proxy URL field, using the base URL or full chat endpoint as required by that field. Check the final request path if Chub reports an endpoint error.

  • Enter your GPT Proto API key in the proxy’s key or authentication field, without extra whitespace. GPT Proto’s authentication documentation specifies Authorization: Bearer YOUR_API_KEY for direct HTTP requests; let the client construct the header from the key field.

  • In the chat’s model configuration, select or enter the exact supported model ID. Save the settings and send a short test message before adding a large character card or lorebook. Confirm the returned reply and the corresponding usage entry in GPT Proto.

What pricing model applies when using a reverse proxy?

GPT Proto uses prepaid, pay-as-you-go billing with no required monthly subscription. For text models, the selected route’s input and output rates determine usage charges; eligible caching has its own rules. Check current pricing and the model page before a long session. Connection configuration is not a promise of free generation, and discounts vary by model rather than applying at a fixed rate to every request.

What are the best models for Chub AI roleplay?

Choose a model by testing the same character card, scene and conversation history on a short list of supported text models. Compare character consistency, instruction following, response length and cost per turn. A model’s price or reputation alone does not establish how well it will write your character.

How do you compare character dialogue?

Use a repeatable scene: give the character a goal, add one important fact from an earlier turn and ask a follow-up that tests both voice and continuity. Compare whether each model respects the player’s choices, avoids inventing plot facts and follows your formatting rules. Our Claude roleplay comparison uses character-consistency and story-continuity tests; apply the same kind of checks to your own scenes rather than treating one model family as universally better.

How do model costs compare for roleplay usage?

Compare the exact model versions and current rates rather than broad budget labels. Long character cards and repeated chat history can increase input-token charges on every turn; longer replies increase output-token charges. Record usage for a representative conversation before estimating a daily or monthly budget. Model-family evaluation checklist:

Model Family What to compare Cost check
DeepSeek Character voice and instruction following Exact model’s input/output rates
Claude Dialogue nuance and story continuity Exact model’s input/output rates
GPT Character-card adherence and reply structure Exact model’s input/output rates
Gemini Context use and conversation consistency Exact model’s input/output rates
A shared GPT Proto balance simplifies billing when you change models, but each route keeps its own supported settings, limits and policies. Changing a model does not guarantee the same character voice or request behavior. Test the connection again after switching, including streaming if you use it.

How do you configure generation parameters for chat?

Chub’s Configuration panel controls prompts and generation settings. Start with the model’s supported defaults and change one variable at a time. Not every text model accepts the same sampling controls, even when the request uses an OpenAI-compatible format.

What do Temperature and Top-P control in Chub AI?

Temperature affects sampling randomness, while Top-P limits the probability mass considered during sampling. Chub’s documentation recommends changing Temperature or Top-P, not both at once. Neither setting guarantees factual accuracy or character consistency; evaluate the replies with the same test conversation.

How do Context Window and Max Tokens affect roleplay quality?

The context budget limits the prompt and conversation content available to the model in a request; it is not permanent memory. Character definitions, lore, instructions and chat history all consume that budget. Max Tokens limits generated output. A limit that is too small can cut a reply off, while a larger limit allows more output and potentially higher cost. Keep the prompt and output allowance within the selected route’s limits. Follow these steps to configure generation parameters:

  • Open Configuration for the chat and select a preset appropriate to the model.

  • Keep the default sampling settings for the first test. Adjust Temperature only if the model supports it.

  • If testing Top-P instead, leave Temperature unchanged so you can judge the effect of one setting.

  • Set the context budget within the model’s documented limit, allowing room for the reply as well as the character card and history.

  • Choose a practical output limit, then inspect whether replies finish naturally or hit the token cap.

  • Review the system prompt, character definition and scene instructions together. Remove conflicting directions and unnecessary repeated text.

  • Send a short test, then a longer conversation with relevant lore. Check the reply, usage and any reported error before changing more settings. For longer stories, Chub’s Chat Memory feature can add a summary as context. Summaries and lorebooks help organize what the client sends, but they do not guarantee perfect recall. Keep important character facts concise and verify that the model still uses them as the conversation grows.

What common connection issues should you watch for?

Read the returned error before changing settings. Authentication, billing, endpoint paths, unsupported model IDs and request limits require different fixes. Change one item at a time and retry with a short prompt so a large conversation does not obscure the cause.

Why does Chub AI return a 401 or Invalid API Key error?

A 401 or Invalid API Key response points first to authentication. Confirm that the key belongs to GPT Proto, has no pasted spaces and is configured in the correct field. For direct HTTP calls, use the Bearer header described in GPT Proto’s authentication documentation. Also verify that the request reaches the intended GPT Proto endpoint.

What causes context window overflows or token cutoffs?

If the request exceeds a context limit, reduce the prompt: trim repeated instructions, limit lorebook entries or summarize older dialogue. Check both the client context setting and the model’s actual limit. If a reply ends at the output cap, increase the allowed output within the route’s limits or ask for a shorter answer.

How do you fix a model name mismatch error?

The model field must contain the exact supported model ID; the URL field must contain the endpoint. Copy the identifier from the selected model’s API Usage panel rather than guessing a family name or version suffix. A model-not-found response and a 404 endpoint error can have different causes, so inspect the returned message before retrying.

What happens during a provider outage?

GPT Proto describes redundant upstream channels and failover, but these are not a guarantee of uninterrupted replies or preserved in-flight output. Save the error and request ID, wait before retrying and check support guidance if failures continue. A 429 response can indicate a rate limit; repeatedly resending the same request may worsen it. If you choose another model, test its settings and character behavior again.

Frequently Asked Questions about Chub AI API Setup

Where do I put the API key in Chub AI?

Open a chat’s top-right menu, choose Secrets, expand OpenAI and select Reverse Proxy, then enter your GPTProto API key and endpoint in the proxy fields Chub shows. Field labels may differ by Chub version, so follow the labels shown on screen and keep the key out of the model ID field.

Is there a free API for Chub AI?

Chub’s API Connections page lists Kobold or Ooba as free when you host the model on your own machine, limited by your hardware, and a Mars subscription at $20 a month (checked November 24, 2026). GPTProto is not free: it uses prepaid, pay-as-you-go billing with no required subscription, and each request is charged from your balance at the selected model’s rates.

Why does Chub AI say "Empty response received from API"?

The wording suggests Chub received no usable text back, but it does not identify the cause. Check one item at a time: your GPTProto balance, the exact model ID and endpoint, whether the prompt fits the model’s context limit, a Max Tokens value that leaves room for a reply, and generation settings the model may not support. The connection issues section above covers each check.

What does a 429 or 403 error mean when connecting Chub AI?

GPTProto’s authentication documentation describes 429 Too Many Requests as exceeding a rate limit, and 403 Forbidden as an API key that lacks permission for the requested resource. For a 429, wait before retrying instead of resending quickly. For a 403, confirm the key and the model you selected. Rate limits vary by model and account, so check your dashboard for yours.

Should I use Chub’s own models or my own API key?

It depends on the workload and how much setup you want. Chub’s documentation lists a Mars subscription with unlimited messaging for $20 a month (checked November 24, 2026), which needs no key management, and also supports connecting your own provider keys. Compare cost, model choice and data handling before choosing.

Can I use the same GPTProto API key in SillyTavern or other roleplay clients?

Yes, in clients that accept a custom OpenAI-compatible endpoint, because the key identifies your GPTProto account. In SillyTavern, GPTProto’s integration guide selects Chat Completion, then Custom (OpenAI-compatible), with https://gptproto.com/v1 as the base URL. Other clients may expect the full /chat/completions address instead, so follow each client’s field instructions.

How much does a Chub AI chat session cost through an OpenAI-compatible API?

Each reply costs input tokens multiplied by the model’s input rate, plus output tokens multiplied by its output rate. Input tokens include the character card, lorebook entries and chat history, and the history is sent again on every turn, so longer chats cost more per reply. Rates differ by model: check current pricing for your selected model and measure a short sample conversation before budgeting.

How can I test my GPTProto key and model ID outside Chub AI?

Send one request to https://gptproto.com/v1/chat/completions with an Authorization: Bearer header carrying your API key, a Content-Type of application/json and a JSON body containing your model ID and one short user message. GPTProto’s authentication documentation specifies the Bearer format and includes request examples. A normal reply shows the key, endpoint and model ID work together, so remaining problems are in Chub’s settings.

相關文章

更多部落格
Best ChatGPT Model for Roleplay: 4 Models Tested (2026)

Best ChatGPT Model for Roleplay: 4 Models Tested (2026)

GPT-6.1 Sol is our first pick for roleplay among the four GPT models we tested. It kept its characters consistent, left decisions to the player, and followed our requested reply length across all 39 responses. GPT-6 Sol is worth choosing for quicker back-and-forth, while GPT-6 Luna had the lowest recorded cost. We gave the models the same awkward conversation, the same missing-compass mystery, and the same stubborn expedition captain. Then we compared our GPT pick with Kimi K3.1 Pro. The most useful difference was not who could write an attractive sentence. It was how the conversation felt, how long we waited, and what the session cost. Our tests used SillyTavern through GPTProto on November 16, 2026. These are results for the named GPT models in that setup; ChatGPT's own interface, memory features, and settings can produce a different experience. Try GPT-6.1 Sol With Your Character

Schuyler Stacy | 2026-11-16

Best Claude Model for Roleplay in 2026: Sonnet 5.5, Haiku 5.5, Opus 5.5 or Fable 5.2?

Best Claude Model for Roleplay in 2026: Sonnet 5.5, Haiku 5.5, Opus 5.5 or Fable 5.2?

Claude Sonnet 5.5 is our starting recommendation for the kind of character roleplay we tested. Its Mara stayed guarded, gave the player room to speak and explicitly returned to the requested western footbridge in all five language runs. Haiku offered inexpensive banter, Opus produced understated emotional dialogue, and Fable gave us a particularly inviting opening line. Each also made choices that could change your story in ways you might dislike. We compared character consistency, story continuity, writing style, plot progression and player control using one six-turn scene, repeated in five languages. Sonnet’s five chats cost $0.0387 on GPTProto. The recommendations below describe those observed conversations. The English ending is why we'd keep playing. When Kit asks “Remember where?”, Sonnet's Mara answers “The west footbridge.” Then she adds, “I'm not forgetting a thing, Kit. That was never the problem.” She remembers the plan, hints at the six years they spent apart and leaves the next line to you. Want to see which model feels right for you? Try AI roleplay on GPTProto , where you can switch character cards and models to compare their dialogue, personality, and storytelling. Start with the same character card across a few models to see which conversation you want to keep going. Compare Claude Models in Roleplay

Schuyler Stacy | 2026-11-19

Best Kimi Model for Roleplay: K3.1 Pro, K3, or K2.6?

Best Kimi Model for Roleplay: K3.1 Pro, K3, or K2.6?

Kimi K3.1 Pro is our first pick for roleplay if you care about restrained character dialogue and keeping replies within your requested length. Kimi K3 is worth trying if you prefer its writing style and want shorter waits than Pro delivered in our tests. Kimi K2.6 is the budget option: it responded much faster, but more often invented details about the player's past. We tested all three through GPTProto and the SillyTavern backend, using the same opening prompts for character chat, fantasy roleplay, slow-burn fiction, and multilingual conversations. The most useful difference was not which model could write a beautiful sentence. All three could. It was what happened around that sentence: whether the model respected your character, kept the scene consistent, and made you wait. Try Kimi K3.1 Pro for Your Characters

Tiffany Layne | 2026-11-13

Which AI Model Is Best for SillyTavern in 2026

Which AI Model Is Best for SillyTavern in 2026

The short answer is Kimi K3 if you want one dependable starting model. It ranks first in the September 2026 AI Roleplay Bench and performs especially well for companion chat, character continuity, and recovering from awkward turns. If your priority is vivid scene writing rather than benchmark certainty, Gemini 4 Argon is the more adventurous choice. If cost comes first, start with GLM-5.3 Flash or DeepSeek V4.1 Flash . That answer needs one qualification. SillyTavern is a frontend , not an AI model, and the result depends on the combination of model, API backend, character card, prompt format, and preset. A model that looks excellent with one preset can feel flat or start refusing with another. This guide therefore ranks models for their SillyTavern fit , not only their general intelligence. For a wider comparison that is not tied to one chat client, see our guide to the best AI models for roleplay . Connect GPTProto to SillyTavern

Schuyler Stacy | 2026-11-06