Deposit $5, get $10 credit — every top-up doubled $10 → $20 · $25 → $50 · no daily caps · crypto accepted
api reference

Build against one endpoint

Helyx AI speaks the OpenAI Chat Completions protocol. Point any existing OpenAI client at https://helyxai.space/v1, swap the key, change the model string — done. There is no SDK of ours to install.

Quickstart

Create an account, grab a key from the dashboard, and make a call. Every claimable model's daily grant is taken automatically the moment you sign in.

# 1. sign in at helyxai.space, open the dashboard, create a key # 2. today's free tokens are already claimed on every eligible model curl https://helyxai.space/v1/chat/completions \ -H "Authorization: Bearer sk-your-key" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-opus-5", "messages": [{"role": "user", "content": "Hello"}] }'

Authentication

Every request carries a bearer token. Keys are created and revoked on the dashboard. We store only a SHA-256 hash, so a lost key cannot be recovered — revoke it and create a new one.

Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

A missing or malformed header returns 401. Keys are account-wide: any key can call any active model.

Chat completions

POSThttps://helyxai.space/v1/chat/completions
Content-Typeapplication/json
CORSenabled for all origins

Request body

modelrequired — slug from the catalog, e.g. claude-opus-5
messagesrequired — array of {role, content}; roles: system, user, assistant
streamoptional boolean — server-sent events when true
max_tokensoptional int — capped at the model's max output
temperatureoptional float — passed through to the provider

Response

{ "id": "msg_9f0...", "object": "chat.completion", "model": "claude-opus-5", "choices": [{ "index": 0, "message": { "role": "assistant", "content": "..." }, "finish_reason": "stop" }], "usage": { "prompt_tokens": 1240, "completion_tokens": 86, "total_tokens": 1326 } }

Streaming

Set "stream": true to receive server-sent events. Chunks arrive as data: lines and the stream ends with data: [DONE]. Usage totals arrive in the final chunk, so billing stays accurate on streamed calls.

curl -N https://helyxai.space/v1/chat/completions \ -H "Authorization: Bearer sk-your-key" \ -H "Content-Type: application/json" \ -d '{"model":"claude-opus-5","stream":true, "messages":[{"role":"user","content":"Count to five"}]}' data: {"choices":[{"delta":{"content":"One"}}]} data: {"choices":[{"delta":{"content":", two"}}]} data: [DONE]

Token accounting

You are charged for what you actually send and receive.

  • Gateway preamble is not billed. Upstream providers prepend a fixed system preamble — roughly 7,100 tokens on Claude Opus 5. We subtract it before anything is logged or charged. A one-word prompt therefore records 0 input tokens, not 7,000.
  • Only the remainder counts as input. If the provider reports 15,037 prompt tokens, your logged input is 15,037 − 7,100 = 7,937.
  • Output is counted as reported. No adjustment.
  • Free tokens are generic. A grant of 1M covers 1M combined input + output tokens.

Free-token waterfall

There are no plan tiers and no per-model daily caps. Every request draws from three sources in order:

Stage 1today's claim — per model, expires at midnight if unused
Stage 2permanent pool — 5,000,000 per invited user, plus anything an approved review paid; stacks and never expires
Stage 3credit balance — billed at the model's listed rate

The daily claim requires a signed-in session: visiting the dashboard claims it on every eligible model. The API never self-grants tokens, so a key alone cannot mint free usage. Unused daily tokens do not roll over — each day starts fresh and yesterday's remainder is gone. The claim per model is listed in the table below.

When a single request spans two sources, cost is split proportionally: if 30% of the tokens fall past your free tokens, you pay 30% of that request's price.

Retries & overload

Every model call is attempted up to three times against the upstream provider before we give up. Transient failures — timeouts, 5xx, rate limits, dropped connections — are retried transparently with a short backoff, so most blips never reach your code.

If all three attempts fail, the API returns 503:

{ "error": { "message": "Server is overloaded, try again in a while or contact support.", "type": "server_overloaded", "code": 503, "support": { "whatsapp": "https://wa.me/923125893198", "telegram": "https://t.me/kairalmas" } } }

Failed requests are never billed and never consume free tokens. If 503s persist, message us on WhatsApp or Telegram @kairalmas.

Data logging

We are currently retaining request and response content. While the platform is being tuned across all models, both the prompts you send and the completions we return are written to internal log files.

Specifically, for each API call we store the request payload, the flattened prompt text, the model's full output, the model slug, token counts, HTTP status, retry count, and latency. Nothing is shared with third parties beyond the upstream model provider that serves your request.

This capture is temporary and exists so we can compare model behaviour, reproduce failures, and verify billing. It will be switched off once that work is finished. If you are sending data you would rather not have retained, avoid it during this period or contact us to have your account excluded.

Logs are stored outside the web root and are not reachable over HTTP.

Error codes

400missing model or malformed body
401missing, malformed, or revoked API key
402no free tokens and no balance — claim daily tokens or top up
404unknown or inactive model slug
500handler misconfiguration on our side
502upstream gateway error we could not classify
503all three upstream attempts failed — server overloaded

Model catalog

5 models are active right now. Rates are per 1M tokens; a struck-through price means a discount is live and is applied automatically at request time.

SlugModelContextIn / 1MOut / 1MDaily claim
DeepSeek-V4-Flash DeepSeek-V4 Flash DeepSeek 1M $0.140 $0.280
DeepSeek-V4-Pro DeepSeek-V4 Pro 50% off DeepSeek 1M $0.800 $0.400 $1.50 $0.750
gemini-3.1-flash-lite Gemini 3.1 Flash Lite Google 1M $0.250 $1.50
gemma-4-31B-it Gemma4 31B Google 262K $0.200 $0.500
MiniMax-M3 MiniMax M3 MiniMax 1M $0.300 $1.20

SDK examples

Python (openai)

from openai import OpenAI client = OpenAI( api_key="sk-your-key", base_url="https://helyxai.space/v1", ) resp = client.chat.completions.create( model="claude-opus-5", messages=[{"role": "user", "content": "Explain CRDTs briefly"}], ) print(resp.choices[0].message.content)

Node (openai)

import OpenAI from "openai"; const client = new OpenAI({ apiKey: "sk-your-key", baseURL: "https://helyxai.space/v1", }); const r = await client.chat.completions.create({ model: "claude-opus-5", messages: [{ role: "user", content: "Write a haiku about retries" }], }); console.log(r.choices[0].message.content);

Handling 402 and 503

try: resp = client.chat.completions.create(model="claude-opus-5", messages=msgs) except Exception as e: code = getattr(e, "status_code", None) if code == 402: # out of free tokens and balance: claim daily tokens or top up ... elif code == 503: # we already retried 3x upstream; back off before trying again time.sleep(30)
stuck on something

Message us directly — no ticket queue.