OpenAI-compatible API. One key, every major AI model. Drop-in replacement for OpenAI, Anthropic, Google, and more.
Botstrapp.ai is fully OpenAI-compatible. Use any OpenAI SDK โ just change the base URL and API key.
from openai import OpenAI client = OpenAI( base_url="https://botstrapp.ai/v1", api_key="bst_your_api_key_here", ) response = client.chat.completions.create( model="gemini/gemini-2.5-flash", messages=[{"role": "user", "content": "Hello!"}], ) print(response.choices[0].message.content)
import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://botstrapp.ai/v1', apiKey: 'bst_your_api_key_here', }); const response = await client.chat.completions.create({ model: 'gpt-4o', messages: [{ role: 'user', content: 'Hello!' }], }); console.log(response.choices[0].message.content);
curl https://botstrapp.ai/v1/chat/completions \ -H "Authorization: Bearer bst_your_api_key_here" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-4-20250514", "messages": [{"role": "user", "content": "Hello!"}] }'
Access models from 10+ providers through a single API. Use GET /v1/catalog for the live list.
The Pricing page loads current verified model rates, platform fees, minimum charges, and token-based examples from GET /api/billing/pricing. Examples are estimates, not fixed per-message prices.
A hosted operation reserves Clips using its captured rates and output limit. Confirmed usage settles within that reservation and unused Clips return to the same balance. A confirmed failure without delivered output releases the reservation. Uncertain delivery or usage remains pending for reconciliation; a hold is not a final charge. Existing API names such as ico_cost, charged_attach, and X-Botstrapp-Charged-Attach remain compatible.
GET /v1/models or GET /v1/catalog for detailed info including providers and availability status. The catalog is the single source of truth โ it powers the Chat UI and Pricing page dynamically.
Botstrapp.ai offers three interaction modes:
| Mode | model value | Description |
|---|---|---|
| ๐ก Connector | Any model ID | You pick the model. Direct connection to the provider. |
| ๐ Router | "strap" | Context-aware routing โ picks the best model based on your conversation history. |
| โก Strap | "strap" | Smart routing โ we pick the best model for your message automatically. |
| ๐ญ LCM | "lcm" | Large Character Model โ AI with persistent personality and memory. |
Send a chat message and get a response. Supports streaming.
| Parameter | Type | Description |
|---|---|---|
model required | string | Model ID, "strap" for smart routing, or "lcm" for character mode |
messages required | array | Array of message objects: {"role": "user"|"assistant"|"system", "content": "..."} |
stream | boolean | Enable SSE streaming (default: false) |
temperature | number | Sampling temperature 0-2 (default: model-specific) |
max_tokens | integer | Maximum output tokens |
List available models (OpenAI-compatible format).
Rich model catalog with providers, tiers, availability. Add ?show_all=true for all models.
Create account. Body: {"email", "password", "birth_year"}. Returns session tokens. New accounts do not receive free AI credits; add Clips before using the gateway.
Login. Body: {"email", "password"}. Returns API key + balance.
Get current user profile and balance.
Get Clips balance, tier, and unlimited status.
Administrator-managed billing exemption. Ordinary accounts cannot enable it; they can disable an existing exemption with {"enabled": false}.
Create Stripe checkout. Body: {"package_slug": "starter"|"plus"|"pro"|"ultra"}. The checkout shows available payment methods.
List purchasable Clips packs: Starter $10 / Plus $25 / Pro $50 / Ultra $100.
Deprecated alias of the verified usage-pricing contract. Use /api/billing/pricing; legacy per-message pattern estimates are not final charges.
Public Clips pricing โ single source of truth for partner platforms. Returns the captured tariff, verified exact-model token rates, denomination, and explicit token-based examples. Top-up packages are listed separately at /api/billing/packages.
Estimate cost before sending. Params: ?model=gpt-5&input_tokens=1000&output_tokens=500
All API requests require a Bearer token in the Authorization header:
Authorization: Bearer bst_your_api_key_here
Your API key starts with bst_ and can be managed in your account settings. Keep it secret โ it controls access to your Clips balance.
Hosted AI usage is paid with Clips, prepaid Botstrapp service credits. 1 Clip = $0.001 of service usage, so 1,000 Clips = $1.00. There is no subscription or signup AI credit. Clips cannot be transferred between users, cashed out, or used for Store purchases โ see Terms ยง 5.
Buy more at botstrapp.ai/pricing or via the checkout API. The checkout shows available payment methods.
Where BYOK is supported, the applicable own-key tariff governs the platform charge. Review the active tariff before using your own provider API key.
Ordinary accounts use prepaid Clips. Billing exemptions require explicit administrator authorization and are not a customer plan or subscription.
Replace your existing OpenAI calls with Botstrapp.ai in 2 lines:
# Before (OpenAI only) client = OpenAI(api_key="sk-...") # After (Botstrapp.ai โ access ALL models) client = OpenAI( base_url="https://botstrapp.ai/v1", api_key="bst_...", ) # Now you can use any model โ same syntax: client.chat.completions.create(model="gpt-4o", ...) client.chat.completions.create(model="claude-sonnet-4-20250514", ...) client.chat.completions.create(model="gemini/gemini-2.5-pro", ...) client.chat.completions.create(model="groq/llama-3.3-70b-versatile", ...)
Responses follow the standard OpenAI format:
{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "gpt-4o",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I help you today?"
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 12,
"completion_tokens": 9,
"total_tokens": 21
}
}
Every completion response includes cost headers so you can track spend per request:
| Header | Description |
|---|---|
X-Botstrapp-Cost-Raw | Actual provider cost in USD |
X-Botstrapp-Cost | Marked-up cost in USD โ what you were charged |
X-Botstrapp-Markup-Rate | Platform markup rate applied (1.35) |
X-Botstrapp-Input-Tokens | Input tokens for this request |
X-Botstrapp-Output-Tokens | Output tokens for this request |
X-Botstrapp-Route | Route that served the request |
| Code | Meaning |
|---|---|
401 | Invalid or missing API key |
402 | Insufficient Clips balance โ top up at /pricing |
429 | Rate limit exceeded; retry according to the response headers |
400 | Bad request (missing model or messages) |
503 | Model temporarily unavailable |
Need help? support@botstrapp.ai