Base URL
https://api.purebridge.uk
Use the API domain for programmatic traffic. Manage accounts, keys, and billing in the console.
Developer access
OpenAI-compatible API reference for developers and power users. This page keeps endpoint, SDK, CLI, agent, and error-handling details.
Enterprise Custom · For teams that need a sales contact and manual setup.
If you only want direct chat, writing, or image generation, start with the user guide or open Chatbox. This page is for users who need API Key, Base URL, SDK, CLI, IDE agent, and automation setup.
Base URL
Use the API domain for programmatic traffic. Manage accounts, keys, and billing in the console.
Authentication
Create an API KEY inside your PureBridge app workspace, then pass it in the Authorization header.
Compatibility
Works with OpenAI SDK style base_url, bearer authentication, and JSON request/response payloads.
Quickstart
The public user flow is now simple: create an account on the main domain, generate an API KEY in App, then call the API domain.
Endpoints
PureBridge keeps the public contract small and predictable. These are the routes currently documented for user-facing integrations.
/v1/models
Returns enabled PureBridge model IDs that can be used in completion requests.
/v1/chat/completions
Streaming supported
Accepts an OpenAI-style chat payload; supports stream: true SSE responses and stream: false JSON responses.
/health
Returns a lightweight OK signal for deployment and probe checks.
Request sample
Chat completions support stream: true for interactive responses. Use stream: false when you want a simple header-verification request.
Model values shown here are PureBridge model IDs returned by GET /v1/models. Use them exactly as returned; they may be routing aliases rather than upstream provider release names.
curl https://api.purebridge.uk/v1/chat/completions \
-H "Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "codex-auto-review",
"messages": [
{
"role": "system",
"content": "You are a concise assistant."
},
{
"role": "user",
"content": "Say hello from PureBridge."
}
],
"stream": true
}'
Response sample
data: {"id":"chatcmpl_123","object":"chat.completion.chunk","model":"codex-auto-review","choices":[{"index":0,"delta":{"role":"assistant"},"finish_reason":null}]}
data: {"id":"chatcmpl_123","object":"chat.completion.chunk","model":"codex-auto-review","choices":[{"index":0,"delta":{"content":"Hello from PureBridge."},"finish_reason":null}]}
data: {"id":"chatcmpl_123","object":"chat.completion.chunk","model":"codex-auto-review","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
data: [DONE]
Verifiable request
When the selected model routes to the official OpenAI upstream, PureBridge passes through the x-request-id returned by OpenAI. You can also send X-Client-Request-Id so your own trace id is available in upstream troubleshooting.
verify.sh
export PB_API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxx"
CLIENT_REQUEST_ID="pb-verify-$(date +%s)"
BODY='{"model":"codex-auto-review","messages":[{"role":"user","content":"ping"}],"stream":false}'
printf "%s" "$BODY" | shasum -a 256
curl -sS -D - -o /tmp/purebridge-verify.json https://api.purebridge.uk/v1/chat/completions \
-H "Authorization: Bearer $PB_API_KEY" \
-H "Content-Type: application/json" \
-H "X-Client-Request-Id: $CLIENT_REQUEST_ID" \
--data-binary "$BODY" \
| grep -Ei '^(x-request-id|openai-|x-ratelimit|date):'
Enabled model IDs
Model values shown here are PureBridge model IDs returned by GET /v1/models. Use them exactly as returned; they may be routing aliases rather than upstream provider release names.
Models payload
{
"object": "list",
"data": [
{
"id": "codex-auto-review",
"object": "model",
"owned_by": ""
},
{
"id": "gpt-5.4-mini",
"object": "model",
"owned_by": ""
},
{
"id": "gpt-5.5",
"object": "model",
"owned_by": ""
}
]
}
Integration details
Keep implementation simple: one API domain, bearer authentication, explicit model selection, and normal HTTP error handling.
Scenario focus
Next step
Submit the contact form so we can review your requirements and follow up.
Notes