Skip to content

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:

bash
https://cloud-api.suitylab.com/openai-api/v1

Local 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.

bash
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 /models returns and what the Dashboard shows.

See models and billing for details.

Errors and limits ​

StatusCodeMeaning
401invalid_api_keyThe key is invalid or has been revoked.
402PROJECT_COMPUTE_UNAVAILABLENo usable grant, or the pool cannot serve requests.
402INSUFFICIENT_PROJECT_POINTSThe quota or points are exhausted.
  • Only the Authorization header is honoured; an api-key header has no effect.
  • GET /models is public; POST /chat/completions requires 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 ​

bash
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) ​

python
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) ​

ts
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.

Suity developer documentation · API generated by TypeDoc