OpenAI-compatible API
Call SUITY Lab's platform models and granted compute through a standard OpenAI-compatible interface. Authenticate with a project API key — no platform login is required on the client.
Base URL
Point any OpenAI-compatible SDK at this base URL:
https://cloud-api.suitylab.com/openai-api/v1Local development defaults to http://localhost:8787/openai-api/v1 and can be overridden with VITE_API_BASE_URL.
Authentication
Send your project API key as a Bearer token. Only the Authorization header is read; an api-key header is ignored.
Authorization: Bearer <project key>Project keys look like sk-suity-.... Create & manage API keys inside a project in the Dashboard.
Endpoints
GET https://cloud-api.suitylab.com/openai-api/v1/models— list available models (public, no key required).POST https://cloud-api.suitylab.com/openai-api/v1/chat/completions— create a chat completion (requires a valid key).
With a project key you can reach platform models and the models granted to your project.
Billing
Calls made with a project key consume the project's granted compute points (platform / organization sponsored). They never fall back to your personal paid or free points; when the grant is exhausted the request is rejected with 402.
- Usage is billed in points, priced per model for input and output.
- Available models and prices follow what
GET /modelsreturns and what the Dashboard shows.
See models and billing for details.
Errors and limits
| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The key is invalid or has been revoked. |
402 | PROJECT_COMPUTE_UNAVAILABLE | No usable grant, or the pool cannot serve requests. |
402 | INSUFFICIENT_PROJECT_POINTS | The quota or points are exhausted. |
- Only the
Authorizationheader is honoured; anapi-keyheader has no effect. GET /modelsis public;POST /chat/completionsrequires a valid project key.- A project key only spends the project's granted points, never your personal points.
The full list lives in the error code reference.
Examples
cURL
curl https://cloud-api.suitylab.com/openai-api/v1/chat/completions \
-H "Authorization: Bearer $SUITY_PROJECT_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "cloudflare/llama-3.1-8b",
"messages": [{"role": "user", "content": "Hello"}]
}'Python (openai)
from openai import OpenAI
client = OpenAI(
base_url="https://cloud-api.suitylab.com/openai-api/v1",
api_key="sk-suity-...", # your project API key
)
resp = client.chat.completions.create(
model="cloudflare/llama-3.1-8b",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)Node.js (openai)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://cloud-api.suitylab.com/openai-api/v1",
apiKey: "sk-suity-...", // your project API key
});
const resp = await client.chat.completions.create({
model: "cloudflare/llama-3.1-8b",
messages: [{ role: "user", content: "Hello" }],
});
console.log(resp.choices[0].message.content);Need more compute points? See pricing.
