API docs

One endpoint, OpenAI-compatible. If your code already talks to OpenAI or OpenRouter, you swap one base URL and one key and you are done. The quick start is three steps, and it runs in under 5 minutes.

Quick start, 3 steps Request reference App guides Migrate from OpenRouter or Chutes Errors & limits API status

Quick start, 3 steps

01

Create an account & key

Email + password to sign up. In the dashboard, create an API key, with an optional per-key spend limit so a runaway script can't drain your balance.

02

Top up $15+

Crypto direct, swap, or card. Crypto top-ups credit +20% (15% base + 5% crypto). Top-up flow →

03

Send your first request

Copy a snippet below, paste your key, pick a verified model from the catalog.

curl https://fluxneuralcompute.com/v1/chat/completions \ -H "Authorization: Bearer ***" \ -H "Content-Type: application/json" \ -d '{ "model": "claude-sonnet-5-5", "messages": [{"role": "user", "content": "Say hello."}] }'

Model IDs are exactly the strings in the catalog. Click any ID there to copy it. Streaming (SSE) works like OpenAI's.

Request reference

Same shape as the OpenAI Chat Completions API; anything not listed passes through to the provider.

POST /v1/chat/completions: body

modelstring · required · catalog ID
messagesarray · required · role/content
temperature, top_poptional · passthrough
max_tokensoptional · caps output tokens
streamboolean · SSE like OpenAI
tools / tool_choiceoptional · where the model supports it

Auth & conventions

AuthorizationBearer your 48-character key
Content-Typeapplication/json
Billingper token, input + output metered separately
Context limitsper model (see context column in the catalog)
Rate limitsper account/day, in+out combined

Worked cases

Case: long documents without blowing the context
claude-sonnet-5-5 carries a 1M-token context, gemini-3.1-pro 2M. For RAG-style traffic, cheap input matters more than output: glm-5.3-flash at $0.12/1M input handles the retrieval loop, and you escalate only the final synthesis to a frontier model. The calculator prices exactly this split.
Case: an agent that keeps a spend ceiling
Create a key with a $25 spend limit (create form or Edit limits → spend limit) and hand it to the agent. Requests start failing with 402 pre_consume_token_quota_failed at the cap. The balance is untouched, and your other keys keep working. Raise, remove or revoke from the dashboard at any time; all take effect immediately.
Case: streaming a long generation
Set "stream": true. You get SSE chunks shaped like OpenAI's, with a final [DONE] sentinel. Reconnect logic and backoff behave exactly as in the OpenAI SDKs, so existing retry wrappers work unmodified.

App integration guides

Each guide: the exact base URL, where the key goes, a first task to confirm the connection, and what to check when it doesn't.

SillyTavern

Connection profile → Chat Completion → Custom (OpenAI-compatible).

Custom Endpoint : https://fluxneuralcompute.com/v1 API Key : *** Model : claude-sonnet-5-5

Second step: send "reply with the single word: connected".

Not working? Check the model ID is copy-pasted from the catalog, and that your balance covers one request. SillyTavern hides 402 errors as generic failures.

Claude Code / Cline / coding agents

Set the OpenAI-compatible base URL and key in your agent's provider config.

OPENAI_BASE_URL=https://fluxneuralcompute.com/v1 OPENAI_API_KEY=***

Second step: ask the agent to list the files in the current directory and summarize them.

Not working? Some agents cache provider settings. Restart the agent after changing the env vars.

LibreChat

Add a custom endpoint in librechat.yaml.

endpoints: custom: - name: FLUX apiKey: *** baseURL: https://fluxneuralcompute.com/v1 models: # default: all verified models

Second step: create a new conversation and switch the model to any verified model.

Not working? LibreChat requires the trailing /v1 and a key whose spend limit is above $0.

OpenWebUI / LiteLLM

Add FLUX as an OpenAI-compatible connection.

OpenWebUI: Settings → Connections → OpenAI API URL: https://fluxneuralcompute.com/v1 LiteLLM: model_list: - model_name: flux litellm_params: model: openai/claude-sonnet-5-5 api_base: https://fluxneuralcompute.com/v1

Second step: a one-line "ping" message through the proxy.

Janitor, Kilo, OpenCode and Codex CLI guides ship at launch on the same pattern. Missing your tool? The OpenAI-compatible endpoint is all most apps need.

Switch from OpenRouter or Chutes in 60 seconds

Same request shape, same SDK, different base URL. Point your existing code at us:

# before (OpenRouter) base_url = "https://openrouter.ai/api/v1" # after - the only change base_url = "https://fluxneuralcompute.com/v1" api_key = "***" # new key from the FLUX dashboard

Model IDs differ for some families (e.g. anthropic/claude-sonnet-5-5 → claude-sonnet-5-5), so map them once with the catalog. Requests that don't reference provider routing headers simply work. Migration from Chutes is the same one-line change; their catalog-style IDs map directly for the models we share.

Errors & limits

HTTPerror.codeYou'll seeWhat to do
503model_not_found"No available channel for model …": the model ID isn't in our catalog (returned as 503 today; check the code, not just the status)Copy the exact ID from the catalog page
401(empty)"Invalid token": key missing or mistypedRe-copy the key from the dashboard
403(empty)"This token status is unavailable": the key was revoked (or disabled) by the account ownerNothing to fix on your side. Ask for a fresh key; the dashboard shows the revoke reason next to the key
402pre_consume_token_quota_failed"this API key has reached its spend limit: the key has $X left": the KEY's spend limit (the one you set in Edit limits), not your balance: the account balance is untouched and your other keys keep workingRaise or remove the key's spend limit in the dashboard (Edit limits), or use another key
402insufficient_user_quota"Your account balance is too low for this request: $X available": the ACCOUNT balance (all keys on the account share it)Top up from the Top up page (crypto or card); credit is applied once the network confirms
429(empty) / rpm / tpm / concurrency / ramp_limit"daily token allowance reached (tier …)" for the daily allowance (code empty); "rate limit exceeded (rpm | tpm | concurrency | ramp_limit)" when a speed limit trips, so honor the Retry-After and x-ratelimit response headersThe daily allowance resets at 00:00 UTC and grows with verified top-ups; speed limits ease within a minute, and per-key speed limits are adjustable in the dashboard (Edit limits). New accounts (<48h) run at a lower per-key request rate (20 req/min) before the full tier rate applies
429(top-up invoices)"You can create one invoice per minute. Your next one is ready in Xs", with a Retry-After header giving the exact seconds. The one-per-minute limit is per account, all payment rails combined, so a direct invoice makes your next swap or card invoice wait the minute tooWait the stated seconds and create the next top-up. The wait does not grow from refused attempts, and it only counts invoices you actually created
422(top-up invoices)"top-ups are capped at $4,000 (KYD) each…" for the per-top-up cap, or "that top-up would take you past the $120,000 (KYD) daily limit…" when the day's total would exceed the daily cap. The message names the midnight UTC reset and the support pathSplit a larger amount into separate top-ups. For the daily limit, come back after midnight UTC or contact support about a custom plan; there is no lifetime limit
5xxvariesUpstream or routing faultRetry; auto-failover applies; incidents on status

The codes above are the live values our endpoint returns today. Match on error.code and the message, not the HTTP status alone. The top-up invoice endpoints (/topup/invoice, all payment rails) speak plain-English detail strings instead of codes; their rows are marked (top-up invoices). Full request/response reference, rate-limit tiers and llms.txt at launch. Auth is a Bearer key; keys are revocable, carry optional spend caps, and are limited to 20 per account (30 at the top verified-deposit tier; more requires a custom, manually-approved plan. Your dashboard shows the live count).

x-ratelimit headers (present on every speed-limited response, key scope and account scope): x-ratelimit-limit-requests = your sustained requests/min; x-ratelimit-remaining-requests = requests admissible right now. After an idle period this can read up to 2× the limit (the documented burst allowance: a quiet minute lets you send a short burst, then the sustained rate applies); x-ratelimit-reset-requests = Unix time when remaining is back at its max; x-ratelimit-limit-tokens / -remaining-tokens / -reset-tokens = the same three semantics on the 60-second token window (reset = when the oldest counted request ages out; an empty window resets at now+60s). Every field also exists in the x-ratelimit-account-* form for the account-wide scope, and Retry-After gives the next-admissible time in seconds.

To list the catalog programmatically: GET /v1/models with your Bearer key returns every available model ID.

Get your key and ship the first request

The endpoint is live, the catalog is verified, and the quick start takes under 5 minutes.

Get your API key