Documentation
OryxenChat API
An OpenAI-compatible chat completions API. Every base URL, model id and limit on this page is filled in from the live platform configuration, so the snippets can be copied as they are.
On this page
Quickstart
- Create an account and add funds (minimum deposit $10.00). No subscription is required.
- Create an API key and store it in the
ORYXEN_API_KEYenvironment variable. The key is shown only once. - Send a chat completion request:
curl https://api.oryxen.chat/v1/chat/completions \
-H "Authorization: Bearer $ORYXEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-abliterated",
"messages": [
{"role": "user", "content": "Explain what a context window is in one sentence."}
]
}'The response has the same shape as an OpenAI chat completion: the text is in choices[0].message.content and the token counts you were billed for are in usage.
Current price of qwen3.8-abliterated: $1.00 / 1M tokens input, $4.00 / 1M tokens output. See pricing.
Authentication
Authenticate every request with an API key in the Authorization header, using the Bearer scheme. Keys start with sk_live_.
Authorization: Bearer sk_live_...- A key is displayed once, when you create it. OryxenChat keeps only a hash, so a lost key cannot be recovered: revoke it and create a new one.
- Keep keys on the server side. Do not embed them in browser code, mobile apps or public repositories.
- Use one key per application so usage is reported separately and a single key can be revoked without affecting the others.
- A missing, malformed, revoked or expired key returns
401with the codeinvalid_api_key.
Setting the environment variable
export ORYXEN_API_KEY="sk_live_..."Base URL
All endpoints are relative to this base URL. In OpenAI SDKs and compatible tools, enter it as the base URL (it already includes the version path).
https://api.oryxen.chat/v1Endpoints
| Endpoint | Purpose |
|---|---|
POST /chat/completions | Generate a model response for a conversation. Supports streaming, tool calling and JSON mode where the model does. |
GET /models | List the models your key can use, in the OpenAI list format. The id of each entry is the value to send as model. |
GET /usage | Token usage and spend recorded for your account. |
GET /account | Your account's plan and current balance. |
GET /health | Whether the API is up and able to serve requests. |
Paths are shown relative to the base URL, so the full chat completions URL is https://api.oryxen.chat/v1/chat/completions.
curl https://api.oryxen.chat/v1/models \
-H "Authorization: Bearer $ORYXEN_API_KEY"Models available now
| Model id | Name | Context length | Max output tokens | Features |
|---|---|---|---|---|
qwen3.8-abliterated | Qwen3.8 Abliterated | 65,536 | 16,384 | streaming, tool calling, JSON mode |
Supported parameters
Request body fields accepted by POST /chat/completions. They behave as in the OpenAI chat completions API.
| Parameter | Type | Notes |
|---|---|---|
model | string, required | A model id from GET /models. |
messages | array, required | The conversation: objects with role (system, user, assistant, tool) and content. |
temperature | number | Sampling temperature. |
top_p | number | Nucleus sampling. |
max_tokens | integer | Upper bound on generated tokens. Limited to the model's maximum output. The balance hold for a request is based on this value, so a sensible limit leaves more of your balance free for parallel requests. |
max_completion_tokens | integer | Accepted as the newer name for max_tokens. |
stream | boolean | Send the response as server-sent events. |
stream_options.include_usage | boolean | With stream: true, adds a final chunk carrying the usage object. |
stop | string or array | Sequences at which generation stops. |
frequency_penalty | number | Penalise tokens by how often they have appeared. |
presence_penalty | number | Penalise tokens that have already appeared. |
response_format | object | JSON mode, for example {"type": "json_object"}, on models that list JSON mode. |
seed | integer | Best-effort reproducible sampling. |
tools | array | Function definitions the model may call, on models that list tool calling. |
tool_choice | string or object | Controls whether and which tool is called. |
Tool calling example
{
"model": "qwen3.8-abliterated",
"messages": [{"role": "user", "content": "What is the weather in Lisbon?"}],
"tools": [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Current weather for a city",
"parameters": {
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"]
}
}
}
],
"tool_choice": "auto"
}Not supported
These are not available. Requests that depend on them are rejected or the feature is ignored, so remove them when porting code from another provider.
ngreater than 1: each request returns a single choice.logprobsandtop_logprobs.- Audio input and audio output.
- Image inputs on models that do not list vision (no model currently offered has vision).
- The Responses API, the Assistants API, Embeddings and Images. Only the endpoints listed under Endpoints exist.
Streaming
Set stream: true to receive the response as server-sent events. Each event is a line starting with data: that contains a chat.completion.chunk JSON object; the stream ends with data: [DONE].
curl -N https://api.oryxen.chat/v1/chat/completions \
-H "Authorization: Bearer $ORYXEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen3.8-abliterated",
"stream": true,
"stream_options": {"include_usage": true},
"messages": [
{"role": "user", "content": "Explain what a context window is in one sentence."}
]
}'- Add
"stream_options": {"include_usage": true}to get a final chunk with theusageobject (itschoicesarray is empty). Without it, read your usage from the dashboard orGET /usage. - Errors that happen before the first token are returned as a normal JSON error response with the matching HTTP status, not as a stream.
- If you close the connection while the model is generating, generation stops. Tokens produced up to that point are billed.
- Responses are inspected before they are sent, so text reaches you a fraction of a second behind the model. If a response is stopped mid-stream you receive an
errorevent withcontent_policy_violationorsecurity_policy_violation, then[DONE]. - Disable response buffering in any proxy between your client and the API, otherwise tokens arrive in bursts.
Errors
Errors use the OpenAI error envelope with a matching HTTP status. Branch on the status and on error.code; the wording of error.message is for people and may change.
{
"error": {
"message": "Insufficient balance. Add funds to continue.",
"type": "insufficient_quota",
"param": null,
"code": "insufficient_quota"
}
}| Status | Code | Meaning and what to do |
|---|---|---|
| 400 | content_policy_violation | The request or the response was stopped by the safety system. Sexual content involving minors and sexual exploitation are never generated. Do not retry unchanged. |
| 400 | security_policy_violation | The request asked for confidential details of the OryxenChat platform itself, or the response was stopped by the security system. General technical and security questions are not affected. |
| 403 | account_restricted | The account is temporarily restricted after repeated policy violations. Wait for the time in the Retry-After header or contact support. |
| 401 | invalid_api_key | The key is missing, malformed, revoked or expired. Check the Authorization header or create a new key. |
| 402 | insufficient_quota | Your balance cannot cover the request. Add funds, or lower max_tokens so the hold fits your balance. |
| 404 | model_not_found | The model id does not exist or is not enabled for your plan. Use an id returned by GET /models. |
| 429 | rate_limit_exceeded | Too many requests in the current minute. Wait and retry with exponential backoff. |
| 429 | concurrency_limit | Too many of your requests are running at once. Wait for one to finish before starting another. |
| 503 | capacity_unavailable | No GPU is currently ready for this model. Retry after a short delay. |
| 503 | queue_full | The waiting queue for this model is full. Retry with backoff. |
| 503 | queue_timeout | The request waited too long for a free slot and was dropped before generation started. |
Requests that end in one of these errors before any output is produced are not charged.
Rate limits
Two limits apply per account: requests per minute and the number of requests running at the same time. Exceeding them returns 429 with rate_limit_exceeded or concurrency_limit.
| Plan | Requests per minute | Concurrent requests |
|---|---|---|
| Pay as you go | 60 | 4 |
When capacity is busy, requests wait in a queue for a free slot rather than failing immediately; a request that cannot be queued or waits too long returns 503. Treat 429 and 503 as retryable and back off exponentially.
Billing rules
- Billing is prepaid and in US dollars only. Requests draw from your wallet balance; there is no post-paid invoice.
- Each request is charged for its input tokens and its output tokens at the model's per-million prices. The price in force when the request starts applies to the whole request.
- When a request starts, the most it could cost is held from your balance. When it ends, you are charged for the tokens actually used and the rest of the hold is released straight away.
- A request that produces no output (rejected, failed before generation, timed out in the queue) is not charged. If a request fails or is cancelled after output was delivered, the tokens generated up to that point are charged.
- Charges are computed exactly and rounded up to the next millionth of a dollar. The dashboard shows each request's cost with up to six decimal places.
- With an empty balance, requests return
402 insufficient_quotauntil you add funds. Top-ups are never taken automatically. - Deposited funds do not expire.
Integrations
Any client that accepts a custom OpenAI base URL works. Three values are always needed: the base URL https://api.oryxen.chat/v1, your API key, and the model id qwen3.8-abliterated.
opencode
- Create
opencode.jsonin your project root, or edit the global file at~/.config/opencode/opencode.json, and add OryxenChat as a custom provider:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"oryxen": {
"npm": "@ai-sdk/openai-compatible",
"name": "OryxenChat",
"options": {
"baseURL": "https://api.oryxen.chat/v1",
"apiKey": "{env:ORYXEN_API_KEY}"
},
"models": {
"qwen3.8-abliterated": {
"name": "Qwen3.8 Abliterated",
"limit": {
"context": 65536,
"output": 16384
}
}
}
}
}
}- Set the
ORYXEN_API_KEYenvironment variable. The config reads it through{env:ORYXEN_API_KEY}, so the key never has to be written into the file.
export ORYXEN_API_KEY="sk_live_..."- Start
opencodefrom the same terminal. - Type
/modelsand choose Qwen3.8 Abliterated under OryxenChat.
The key under models must be the exact model id from GET /models. The limit values tell opencode how much context it may use and how long a reply may be.
DeepSeek Harness (DSH desktop app)
Through the app
- Open Settings → Models → Add model provider → Custom model API.
- Enter the base URL
https://api.oryxen.chat/v1, your API key, and the model idqwen3.8-abliterated. - Save, then select the model in a new conversation.
By editing the profile file
- Close the app and open
%USERPROFILE%\.dsh\profiles\desktop\cordis.patch.yml. - Add this entry under the existing list:
- id: llm-pi-ai
name: '@deepseek-ai/dsh-llm-pi-ai'
config:
providers:
oryxen:
displayName: OryxenChat
api: openai-completions
baseURL: https://api.oryxen.chat/v1
apiKeyEnv: ORYXEN_API_KEY
models:
- id: qwen3.8-abliterated
name: Qwen3.8 Abliterated
contextWindow: 65536
maxTokens: 16384
input: [text]
reasoningEfforts: false- Restart the app and enter your API key in the OryxenChat provider's key field.
Check these three things
idmust equal the model id returned byGET /models(currentlyqwen3.8-abliterated).contextWindowmust not exceed the model's context length (65,536 tokens). Set it to exactly that value, and update it whenever the model's context length changes:GET /modelsalways returns the current one.- If replies stop after a few tokens with an "output token limit" message while the conversation is still short,
contextWindowis set lower than the model's. The tool subtracts its own, generous estimate of the conversation from that window and asks for whatever is left, which can be as little as one token. - If the file already contains an
llm-pi-aientry, do not add a second one. Addoryxenunder its existingprovidersmap instead:
oryxen:
displayName: OryxenChat
api: openai-completions
baseURL: https://api.oryxen.chat/v1
apiKeyEnv: ORYXEN_API_KEY
models:
- id: qwen3.8-abliterated
name: Qwen3.8 Abliterated
contextWindow: 65536
maxTokens: 16384
input: [text]
reasoningEfforts: falseAny OpenAI-compatible app
Choose the provider type named “OpenAI compatible” (or “custom OpenAI endpoint”) and fill in the three values. Menu names vary a little between versions.
| Value | What to enter |
|---|---|
| Base URL | https://api.oryxen.chat/v1 |
| API key | Your sk_live_… key |
| Model id | qwen3.8-abliterated |
| Tool | Where the three values go |
|---|---|
| Cline | Settings → API Provider: “OpenAI Compatible”. Fill in Base URL, API Key and Model ID. |
| Continue | In the config file, add a model with provider: openai, apiBase (base URL), apiKey and model (model id). |
| Open WebUI | Admin Settings → Connections → OpenAI API: add a connection with the base URL and API key. The model then appears in the model picker. |
| LibreChat | In librechat.yaml, add a custom endpoint with baseURL, apiKey and the model id under models.default. |
If a tool asks for a context window or maximum output, use 65,536 and 16,384 tokens for qwen3.8-abliterated. Agent tools can read files and run commands on the model's say-so: read Using us with agent tools before giving one broad access. These values can change; read the current ones from GET /models (context_length, max_output_tokens) and update your tool's settings to match. A tool configured with a smaller context window cuts its own replies short.