Buy inference
- Create a key. We start you with a little credit.
- Point any OpenAI client at
http://127.0.0.1:8787/v1. - We route to the cheapest healthy machine that has the model.
from openai import OpenAI
client = OpenAI(
base_url="http://127.0.0.1:8787/v1",
api_key="sk-scalar-YOUR-KEY",
)
print(client.chat.completions.create(
model="Qwen3.8-27B",
messages=[{"role":"user","content":"Hello from Scalar"}],
).choices[0].message.content)