Blog

Integration guides and usage notes for ROIBest AI. Base URL is https://ai.roibest.com.

Integration Guides


Calling ROIBest AI Directly from SDKs and curl

The official SDKs need no code changes — only a different base URL and key. Here are all the endpoints the gateway exposes, plus the most common source of 404s: the OpenAI SDK wants /v1, the Anthropic SDK does not.

Importing Desktop Client Config with CC Switch

Manual setup is not hard, it is just easy to mistype. The import flow generates config that matches the key's own protocol group, taking the two easiest mistakes — group mismatch and the /v1 suffix — off your hands.

Usage & Billing


Reading Your Usage Records: Models, Tokens, Cache and Cost

The console records usage per request. This is what each column means, and where to look first when a call costs more than the last one — most of the variance comes down to model, output length and cache hits.

Setting Quotas and Expiry on API Keys

One account can issue many keys, each with its own quota and expiry. This is not just access control — it is the cheapest way to turn 'who spent what' from one opaque bill into readable data.