API documentation
RentLLM exposes an OpenAI-compatible API. Use any OpenAI SDK or plain HTTP.
Authentication
Pass your API key as a Bearer token in the Authorization header.
Authorization: Bearer YOUR_API_KEY
List models
curl https://broomy.laserraptor.eu/api/v1/models \ -H "Authorization: Bearer YOUR_API_KEY"
Chat completions
curl https://broomy.laserraptor.eu/api/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-flash",
"messages": [{"role":"user","content":"Hello!"}],
"stream": false
}'Streaming
Set stream: true to receive Server-Sent Events in OpenAI format.
Using the OpenAI SDK (Python)
from openai import OpenAI
client = OpenAI(
base_url="https://broomy.laserraptor.eu/api/v1",
api_key="YOUR_API_KEY",
)
resp = client.chat.completions.create(
model="qwen3.8-flash",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)