SDK examples
The API is OpenAI-compatible, so any OpenAI SDK works by pointing it at our base URL.
Non-streaming
curl
curl https://api.llmstudio.dev/v1/chat/completions \
-H "Authorization: Bearer $LLM_STUDIO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"studio/qwen3-0.6b","messages":[{"role":"user","content":"Hello"}]}'Streaming
Python
stream = client.chat.completions.create(
model="studio/qwen3-0.6b",
messages=[{"role": "user", "content": "Count to 5"}],
stream=True,
)
for chunk in stream:
delta = chunk.choices[0].delta.content
if delta:
print(delta, end="")