OryxenChat

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

  1. Create an account and add funds (minimum deposit $10.00). No subscription is required.
  2. Create an API key and store it in the ORYXEN_API_KEY environment variable. The key is shown only once.
  3. 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_.

HTTP header
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 401 with the code invalid_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).

Base URL
https://api.oryxen.chat/v1

Endpoints

API endpoints
EndpointPurpose
POST /chat/completionsGenerate a model response for a conversation. Supports streaming, tool calling and JSON mode where the model does.
GET /modelsList the models your key can use, in the OpenAI list format. The id of each entry is the value to send as model.
GET /usageToken usage and spend recorded for your account.
GET /accountYour account's plan and current balance.
GET /healthWhether 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

Public models
Model idNameContext lengthMax output tokensFeatures
qwen3.8-abliteratedQwen3.8 Abliterated65,53616,384streaming, tool calling, JSON mode

Supported parameters

Request body fields accepted by POST /chat/completions. They behave as in the OpenAI chat completions API.

Supported request parameters
ParameterTypeNotes
modelstring, requiredA model id from GET /models.
messagesarray, requiredThe conversation: objects with role (system, user, assistant, tool) and content.
temperaturenumberSampling temperature.
top_pnumberNucleus sampling.
max_tokensintegerUpper 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_tokensintegerAccepted as the newer name for max_tokens.
streambooleanSend the response as server-sent events.
stream_options.include_usagebooleanWith stream: true, adds a final chunk carrying the usage object.
stopstring or arraySequences at which generation stops.
frequency_penaltynumberPenalise tokens by how often they have appeared.
presence_penaltynumberPenalise tokens that have already appeared.
response_formatobjectJSON mode, for example {"type": "json_object"}, on models that list JSON mode.
seedintegerBest-effort reproducible sampling.
toolsarrayFunction definitions the model may call, on models that list tool calling.
tool_choicestring or objectControls whether and which tool is called.

Tool calling example

Request body
{
  "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.

  • n greater than 1: each request returns a single choice.
  • logprobs and top_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
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 the usage object (its choices array is empty). Without it, read your usage from the dashboard or GET /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 error event with content_policy_violation or security_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 response (example)
{
  "error": {
    "message": "Insufficient balance. Add funds to continue.",
    "type": "insufficient_quota",
    "param": null,
    "code": "insufficient_quota"
  }
}
Error codes
StatusCodeMeaning and what to do
400content_policy_violationThe request or the response was stopped by the safety system. Sexual content involving minors and sexual exploitation are never generated. Do not retry unchanged.
400security_policy_violationThe 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.
403account_restrictedThe account is temporarily restricted after repeated policy violations. Wait for the time in the Retry-After header or contact support.
401invalid_api_keyThe key is missing, malformed, revoked or expired. Check the Authorization header or create a new key.
402insufficient_quotaYour balance cannot cover the request. Add funds, or lower max_tokens so the hold fits your balance.
404model_not_foundThe model id does not exist or is not enabled for your plan. Use an id returned by GET /models.
429rate_limit_exceededToo many requests in the current minute. Wait and retry with exponential backoff.
429concurrency_limitToo many of your requests are running at once. Wait for one to finish before starting another.
503capacity_unavailableNo GPU is currently ready for this model. Retry after a short delay.
503queue_fullThe waiting queue for this model is full. Retry with backoff.
503queue_timeoutThe 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.

Limits per plan
PlanRequests per minuteConcurrent requests
Pay as you go604

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_quota until 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

  1. Create opencode.json in your project root, or edit the global file at ~/.config/opencode/opencode.json, and add OryxenChat as a custom provider:
opencode.json
{
  "$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
          }
        }
      }
    }
  }
}
  1. Set the ORYXEN_API_KEY environment 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_..."
  1. Start opencode from the same terminal.
  2. Type /models and 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

  1. Open Settings → Models → Add model provider → Custom model API.
  2. Enter the base URL https://api.oryxen.chat/v1, your API key, and the model id qwen3.8-abliterated.
  3. Save, then select the model in a new conversation.

By editing the profile file

  1. Close the app and open %USERPROFILE%\.dsh\profiles\desktop\cordis.patch.yml.
  2. Add this entry under the existing list:
cordis.patch.yml
- 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
  1. Restart the app and enter your API key in the OryxenChat provider's key field.

Check these three things

  • id must equal the model id returned by GET /models (currently qwen3.8-abliterated).
  • contextWindow must 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 /models always returns the current one.
  • If replies stop after a few tokens with an "output token limit" message while the conversation is still short, contextWindow is 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-ai entry, do not add a second one. Add oryxen under its existing providers map instead:
cordis.patch.yml (inside the existing providers map)
      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

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

Values to enter
ValueWhat to enter
Base URLhttps://api.oryxen.chat/v1
API keyYour sk_live_… key
Model idqwen3.8-abliterated
Where the values go in common tools
ToolWhere the three values go
ClineSettings → API Provider: “OpenAI Compatible”. Fill in Base URL, API Key and Model ID.
ContinueIn the config file, add a model with provider: openai, apiBase (base URL), apiKey and model (model id).
Open WebUIAdmin Settings → Connections → OpenAI API: add a connection with the base URL and API key. The model then appears in the model picker.
LibreChatIn 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.