Your first request
Point an OpenAI client at the base URL above. It needs a key and a wallet with something in it.
Use your OpenAI client
pip install openai or npm i openai, then point its base URL here. Chat completions lists the fields it forwards; everything else is dropped.
An inference call needs a positive wallet balance — add funds — and the first call to an idle model can answer 503 while it starts. Wait for Retry-After, then retry.
How a request is served
Each model id maps to one or more backends. If the first cannot take the request the API falls through to the next, and the response still reports the id you asked for. On the audio, forecast and classify endpoints x-openllms-runtime names the kind of machine that served it; chat and embeddings do not carry it. Per-key request quotas are off unless one is set on your key, so the ceiling you normally meet is backend capacity — a 429 with code backend_saturated, where a key limit would be rate_limit_exceeded.
Headers on every request
AuthorizationBearer <key>RequiredYour API key, from API keys in your dashboard. New keys start PK-OPENLLMS-; older PK-OPENLMS- and pk-llm- keys still work. Case-sensitive.
Content-Typeapplication/jsonRequiredOn POSTmultipart/form-data on the audio upload endpoints — let your client set it.
Headers you get back
x-request-idstringSupport needs it to find your call. Send your own X-Request-Id (≤128 bytes) and it is echoed back; anything longer or blank is replaced with a generated one.
Retry-Afterseconds, ≥1On 429, most 503s, and 504How long to wait before retrying.
x-openllms-cost-centsintegerSuccessful audio, forecast and classify responsesWhat the call cost, in whole cents. These calls have a 1¢ minimum, so 0 means the call was not charged.
x-openllms-runtimestringSuccessful audio, forecast and classify responsesWhich runtime served it. turbo is a GPU, dedicated or serverless; tiny is a CPU Lambda; direct means no provider was reported. Any other value is the provider's own name.
from openai import OpenAIclient = OpenAI(base_url="https://api.openllms.co/v1",api_key="PK-OPENLLMS-your-api-key",)completion = client.chat.completions.create(model="qwen-coder-3",messages=[{"role": "user","content": "Say hello in one sentence.",},],)print(completion.choices[0].message.content)