Getting started
Quick start
From buying a model to your first API reply in four steps.
Four steps
- 1
- 2
Wait for the instance to be ready
We rent the GPU and start your model on it. The first start downloads the model, so it can take a few minutes. Follow it on My Instances; we also email you when it is
ready. - 3
Copy your API key
Open the ready instance on My Instances. Its API key (
ob_sk_…) is created and shown once: copy it somewhere safe. Lost it? Generate another under API Keys. - 4
Send your first request
Replace the key below with yours and run it.
Your first request
curl -s https://openllmbuddy-proxy.openllmbuddy.workers.dev/v1/chat/completions \
-H 'Authorization: Bearer ob_sk_000000000000000000000000000000000000000000000001' \
-H 'Content-Type: application/json' \
-d '{"model":"gemma4-26b-a4b-uncensored","messages":[{"role":"user","content":"Hello!"}]}'The reply is a JSON chat completion; the text is in choices[0].message.content. The same request with the OpenAI SDK:
from openai import OpenAI
client = OpenAI(
base_url="https://openllmbuddy-proxy.openllmbuddy.workers.dev/v1",
api_key="ob_sk_000000000000000000000000000000000000000000000001",
)
reply = client.chat.completions.create(
model="gemma4-26b-a4b-uncensored",
messages=[{"role": "user", "content": "Explain MoE in one paragraph."}],
)
print(reply.choices[0].message.content)Tip
Any model value works: your instance serves one model and answers with it. Add "stream": true to get the reply as it is written (Streaming).
Not working?
401: the key is mistyped or revoked. Copy it again, or make a new one.409: the instance is still starting, or its time pack has ended.403: identity verification is needed first.
Every status code is explained under Errors.