← All integrationsAPI · OpenAI-compatible

The Space Bunny Alpha OpenAI compatible API

The Space Bunny Alpha OpenAI compatible API speaks the OpenAI Chat Completions wire format. If your code, SDK or agent already talks to OpenAI, you point it at our hosted endpoint by changing three things — the base URL, the API key and the model name — and nothing else.

Every example needs an sb_live_ key. Grab one → The hosted API is prepaid (from $5), billed per token.

The three constants

Keep these three constants the same across every OpenAI SDK, framework and CLI, and the Space Bunny Alpha OpenAI compatible API behaves like any other OpenAI endpoint — the rest of your OpenAI code stays untouched.

SettingValue
base_urlhttps://spacebunnymodel.com/api/v1
api_keyan sb_live_ key from /get-api-key
modelspace-bunny-alpha (flagship) or space-bunny-flash (budget/fast)
endpointPOST /api/v1/chat/completions

Drop-in with the official OpenAI SDKs

Python (openai)

from openai import OpenAI

client = OpenAI(
    base_url="https://spacebunnymodel.com/api/v1",
    api_key="sb_live_...",  # your Space Bunny key
)

resp = client.chat.completions.create(
    model="space-bunny-alpha",
    messages=[{"role": "user", "content": "Refactor this function..."}],
)
print(resp.choices[0].message.content)

Node / TypeScript (openai)

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://spacebunnymodel.com/api/v1",
  apiKey: process.env.SPACE_BUNNY_API_KEY, // sb_live_...
});

const resp = await client.chat.completions.create({
  model: "space-bunny-alpha",
  messages: [{ role: "user", content: "Explain this stack trace..." }],
});
console.log(resp.choices[0].message.content);

curl

curl https://spacebunnymodel.com/api/v1/chat/completions \
  -H "Authorization: Bearer sb_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "space-bunny-alpha",
    "messages": [{"role": "user", "content": "Hello Space Bunny"}]
  }'

Streaming

Add "stream": true to the request body and the Space Bunny Alpha OpenAI compatible API returns standard OpenAI-style server-sent events — a series of data: chunks ending with data: [DONE]. The OpenAI SDKs parse this for you; no special handling is needed on our side.

# same request, just add stream: true
curl https://spacebunnymodel.com/api/v1/chat/completions \
  -H "Authorization: Bearer sb_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "space-bunny-alpha",
    "messages": [{"role": "user", "content": "Write a haiku"}],
    "stream": true
  }'
# -> standard OpenAI SSE: a series of data: {...} chunks, ending with data: [DONE]

Point your framework or gateway at it

Because the Space Bunny Alpha OpenAI compatible API speaks the OpenAI Chat Completions format, the common Python frameworks and gateways reach it the same way as the raw SDK — an OpenAI-compatible base URL, an sb_live_ key, and the model name. The snippets below are the standard public configuration for each library; we have not end-to-end tested every framework against the hosted endpoint, so treat them as drop-in config rather than a certified integration.

LangChain (langchain-openai)

Pass a custom base_url to ChatOpenAI — the same "langchain openai compatible api base_url" pattern you would use for any OpenAI-compatible endpoint. Setting use_responses_api=False keeps requests on the Chat Completions path.

from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="space-bunny-alpha",
    base_url="https://spacebunnymodel.com/api/v1",
    api_key="sb_live_...",       # your Space Bunny key
    use_responses_api=False,     # stay on the Chat Completions path
)
print(llm.invoke("Refactor this function...").content)

LlamaIndex (OpenAILike)

Use OpenAILike with api_base and is_chat_model=True so calls go to /chat/completions, and set context_window to match the model. We have not verified embeddings, the Responses API or function calling through this path — add is_function_calling_model=False unless you have confirmed tool calls work for your use case.

from llama_index.llms.openai_like import OpenAILike

llm = OpenAILike(
    model="space-bunny-alpha",
    api_base="https://spacebunnymodel.com/api/v1",
    api_key="sb_live_...",           # your Space Bunny key
    is_chat_model=True,              # route to /chat/completions
    context_window=1000000,          # upstream-listed limit
)
print(llm.complete("Summarize this file...").text)

LiteLLM

Prefix the model with openai/ to force LiteLLM's OpenAI-compatible route, then point api_base at the /api/v1 endpoint. The same two settings work in a LiteLLM proxy config.yaml (a model: openai/space-bunny-alpha entry plus an api_base line).

import litellm

resp = litellm.completion(
    model="openai/space-bunny-alpha",              # openai/ -> OpenAI-compatible route
    api_base="https://spacebunnymodel.com/api/v1",
    api_key="sb_live_...",                          # your Space Bunny key
    messages=[{"role": "user", "content": "Explain this stack trace..."}],
)
print(resp.choices[0].message.content)

What's supported

Models & pricing

Billed per total token (prompt + completion, including reasoning) at one blended rate per model — a simple, predictable bill. Prepaid: top up from $5 and draw down the balance.

ModelPrice / 1M total tokensBest for
space-bunny-alpha$1.50flagship — hard refactors, long-context coding agents
space-bunny-flash$0.50budget / fast, high-volume loops

A key at a zero balance returns HTTP 402 with a top-up link — you're never billed by surprise. Full numbers on the pricing page.

FAQ

Is the Space Bunny API really OpenAI-compatible?

Yes. The Space Bunny Alpha OpenAI compatible API implements the OpenAI Chat Completions surface at https://spacebunnymodel.com/api/v1/chat/completions. The request body (model, messages, max_tokens, stream, …) and the response shape match OpenAI's, so any OpenAI SDK or tool works by changing only the base URL, API key and model name.

What base URL and model name do I use?

Base URL https://spacebunnymodel.com/api/v1, key format sb_live_, and model space-bunny-alpha (flagship) or space-bunny-flash (budget/fast). Requests land on POST /api/v1/chat/completions.

Does it support streaming?

Yes. Send "stream": true and the endpoint returns standard OpenAI-style server-sent events (data: chunks ending with [DONE]) — the same format the OpenAI SDKs already parse.

Is it free? What does it cost?

The hosted API is prepaid, not free: top up from $5, then pay per total token (prompt + completion). space-bunny-alpha is $1.50 per 1M total tokens and space-bunny-flash is $0.50 per 1M. A key at a zero balance returns HTTP 402 with a top-up link — you are never billed by surprise.

See also: How to call the API · API docs · Claude Code · OpenRouter · Pricing

Start calling Space Bunny Alpha

Grab a key and drop it into your OpenAI client — the in-browser playground runs on that same prepaid API.

Open the playgroundGet an API key
Space Bunny Alpha OpenAI-Compatible API — base URL, model & keys · Space Bunny Model