Inference
View MarkdownBeta: this feature may change before general availability
Nodus serves open-weight models through one OpenAI-compatible inference API. Use a Nodus API key to access models, create endpoints, and track usage and billing in the Nodus console.
Sign in and create a key
Section titled “Sign in and create a key”Sign in to the console, open Settings → API keys, and create a key with the inference:invoke scope.
Call a model
Section titled “Call a model”from openai import OpenAI
client = OpenAI(base_url="https://platform-inference.nodus-compute.ai/v1", api_key="YOUR_NODUS_API_KEY")reply = client.chat.completions.create( model="nodus/gpt-oss-120b", messages=[{"role": "user", "content": "What is the capital of France?"}],)print(reply.choices[0].message.content)curl https://platform-inference.nodus-compute.ai/v1/chat/completions \ -H "Authorization: Bearer $NODUS_API_KEY" -H "Content-Type: application/json" \ -d '{"model": "nodus/gpt-oss-20b", "stream": true, "messages": [{"role": "user", "content": "Hello"}]}'Streaming works as in the OpenAI API (stream: true). Completed chat streams end with data: [DONE]; an interrupted or errored stream does not receive a generated completion marker. Every response carries a Nodus-Request-Id header.
Routing
Section titled “Routing”Chat inference prefers ready, compatible fast capacity when available. Standard capacity remains a fallback.
GET /v1/models shows the current rates, including cached-input pricing; the accepted rate stays fixed for
each request. Chat Completions, Responses and named endpoints share this policy.
Your prompts
Section titled “Your prompts”Nodus does not add branding instructions to your requests. Your system and developer instructions, message content, tool messages and supported cache controls are preserved. Model authors and licenses remain attributed.
Typed decisions (Preview)
Section titled “Typed decisions (Preview)”Clef and Clef Flash accept text or JSON state and return choices, scores, or yes/no probabilities through
/v1/systemone. See the decision guide.
From the CLI
Section titled “From the CLI”The CLI calls the same API with the credential of your current context:
$ nodus inference modelsMODEL NAME CONTEXT MAX OUTPUT PREVIEWopenai/gpt-oss-120b GPT-OSS 120B 128K 64K falseopenai/gpt-oss-20b GPT-OSS 20B 128K 64K false$ nodus inference chat --model nodus/gpt-oss-20b --max-tokens 64 "What is the capital of France?"The capital of France is Paris.request ireq_01k6d2x7q9fvjt3y8m0c4r5n2e · openai/gpt-oss-20b · 84 input + 21 output tokens · $0.000015$ nodus inference receipt ireq_01k6d2x7q9fvjt3y8m0c4r5n2echat prints the answer on standard output and the request id, the model that answered, the tokens and the charge
on standard error; -o json prints the whole completion. receipt shows any request’s charge for 30 days.
Models
Section titled “Models”GET /v1/models lists the models you can call now. Each model has a catalog name such as openai/gpt-oss-120b
and a nodus/ alias such as nodus/gpt-oss-120b. Read each model’s capabilities
and availability before calling it. Models supporting only
text chat do not accept paid plugins, model fallbacks, presets or explicit cache writes.
Open models such as GPT-OSS, Whisper and Gemma are eligible when supported and available. Closed proprietary
GPT, Gemini, Claude and Grok models are not offered in the public catalog.
In the console, open Inference → Models, choose a model, and open it in Playground. Nodus serves the selected model; the request and receipt retain its model identifier.
Model cards show the publisher’s name and logo, with matching color accents. Search by model or publisher, or filter by capabilities. A curated selection appears first; this order is not a measured usage ranking. The catalog still shows each available model’s current price and capabilities.
Responses, Messages and embeddings
Section titled “Responses, Messages and embeddings”Chat models also accept stateless Responses and Anthropic Messages requests, with the same model ids, credits, endpoint access policies and receipt headers. Responses supports text, inline images and client function tools; stored responses, background work and hosted tools are refused. Text Completions accepts one string prompt and one choice, without echo, suffix, logprobs or best-of sampling. Messages token counting is not available.
response = client.responses.create( model="nodus/gpt-oss-20b", input="Hello", max_output_tokens=256, reasoning={"effort": "none"}, store=False,)print(response.output_text)vectors = client.embeddings.create(model="nodus/bge-m3", input=["first document", "second document"])print(vectors.data[0].embedding)reasoning.effort supports none, minimal, low, medium, high and xhigh, subject to model support.
Omit it to keep the model’s default. Reasoning uses the output-token budget even though reasoning text is not
returned. Check status and output: an HTTP 200 response with status: incomplete is not a completed answer.
Reasoning summaries and other reasoning controls are not supported.
Embeddings are available when the embedding model appears in GET /v1/models.
A model’s operations field identifies the routes it accepts, including Embeddings, and aliases lists its
alternative model ids. The console labels
embedding models as text → vectors and provides embedding examples in the model panel and endpoint API tab.
A request can carry up to 2,048 inputs, each within the model’s context window. Messages accepts the same chat
models at /v1/messages, with max_tokens, messages and optional stream: true; it does not expose private
models used by managed agents. Streaming client tool arguments remain intact when several calls interleave.
On-demand pricing
Section titled “On-demand pricing”Nodus selects an available, compatible route using the estimated input size and the request’s output limit.
The accepted rate is fixed for that request; a price refresh or a more expensive fallback does not raise it.
Your final charge uses measured token usage. Check the Models catalog or /v1/models for current rates.
Catalog prices show one complete rate card selected using a reference mix of three input tokens per output token. A request with a different input/output mix or capability requirement can select a different rate card. Actual output length and cache hits are unknown before the response, so routing minimizes the estimated cost bound rather than promising the lowest possible final charge. Dedicated capacity uses a custom plan agreed with Nodus.
The console shows Input, Cached input and Output prices in USD per million tokens. Cached input is the catalog’s quoted cache-read rate, not a discount calculated by the console. When it matches the input rate, that rate card has no separate cached-input discount. A missing rate is labeled Not reported, not free. Cards round prices for readability; model details retain the full quoted precision. When the accepted Nodus rate card has a distinct cached-input price, measured cached tokens settle at that rate.
Transcribe or translate an audio file up to 25 MiB (flac, mp3, mp4, mpeg, m4a, ogg, wav or webm) with
openai/whisper-large-v3, and generate speech with canopylabs/orpheus-v1-english:
with open("meeting.m4a", "rb") as f: text = client.audio.transcriptions.create(model="nodus/whisper-large-v3", file=f)print(text.text)
speech = client.audio.speech.create(model="canopylabs/orpheus-v1-english", voice="tara", input="Your job finished.", response_format="wav")speech.write_to_file("done.wav")Upload the file itself: audio URLs and streamed transcription are not supported. Speech output is limited to 32 MiB.
Named endpoints
Section titled “Named endpoints”Standard API endpoints are self-service. For dedicated capacity, choose Contact us on the console’s Endpoints or New endpoint page to meet with Nodus and set up a plan for your models and traffic. Creating a standard endpoint does not reserve dedicated capacity.
An InferenceEndpoint gives a model its own base URL and access policy:
Nodus adds no request-rate, token-rate or concurrency caps to inference. This applies to both shared and named
endpoints, including existing endpoints with saved limits. Available model capacity and balance checks still apply.
A supplier can return 429; use its Retry-After value before retrying.
$ nodus create inferenceendpoint support-bot --model nodus/gpt-oss-120b --max-cost 50$ nodus wait ep/support-bot --for=jsonpath={.status.phase}=Running$ nodus get epNAME PHASE MODEL READY MAX-COST AGEsupport-bot Running nodus/gpt-oss-120b True $50 12s$ nodus inference chat --endpoint support-bot "Where is my order?"Call it at https://inference.nodus-compute.ai/endpoints/<project>/support-bot/v1, or send
model: "endpoint/support-bot" on the shared platform base URL above. Endpoints enforce
allowedKeys (API key names, --allowed-key) and an optional maxCostUSD: once the requests through an endpoint
have spent its cap, the next one gets 402 BudgetExceeded, and raising maxCostUSD lets requests through again (it
can only be raised). A new endpoint answers 503 for the few seconds until it is Running. nodus stop ep/support-bot makes it answer 503 until nodus start ep/support-bot; its Ready condition says whether its model
can serve now.
Pricing
Section titled “Pricing”The live catalog shows each model’s input, cached-input and output rates. Set an output token limit to bound your request’s cost. Actual output length and cache hits affect the final charge. Accepted rates stay fixed throughout the request, including a fallback. New requests benefit from price reductions as the catalog updates.
Request receipts and retries
Section titled “Request receipts and retries”- Send an
Idempotency-Keyheader to retry safely: a repeat within 24 hours returns the same answer withIdempotent-Replayed: trueand no second charge. A request that failed without a charge (Released) frees its key, so the retry runs again. Reusing a key for a different request body returns409. GET /v1/requests/{id}returns the receipt for 30 days: itsoperation,usage,amountUSD,pricebookVersionandstate:Running,Settled,Released(no tokens, no charge) orUnknown. A request whose outcome Nodus never learned isUnknownand is never charged.
Errors
Section titled “Errors”Errors use the OpenAI shape, with the Nodus error code in both type and code:
| Status | Code | Meaning |
|---|---|---|
| 400 | Unsupported |
An unsupported feature: built-in or server-side tools, a non-default service_tier, store, background, file parts, image URLs or audio URLs, a key repeated in another letter case, or an operation the model does not serve |
| 400 | Invalid |
A malformed request, or an upload that is not audio in a supported format |
| 401 | Unauthorized |
Missing or invalid API key |
| 402 | InsufficientCredits, BudgetExceeded |
Not enough credit for the hold, or a budget or endpoint cap blocks it |
| 409 | RequestInProgress |
The same Idempotency-Key is still running; retry after Retry-After |
| 409 | IdempotencyKeyReused |
The Idempotency-Key was used for a different request; send a new key |
| 413 | RequestEntityTooLarge |
A JSON body over 1 MiB or an audio file over 25 MiB |
| 429 | TooManyRequests |
A model supplier is throttling requests; retry after Retry-After |
| 502, 503 | Unavailable |
The model failed, is at capacity or is not available; retry shortly. You are not charged |
Batch audio availability
Section titled “Batch audio availability”When listed as Ready, nodus/nova-3-transcribe transcribes English mono audio to JSON text.
nodus/aura-2-speech accepts up to 2,000 characters with thalia, andromeda, helena or apollo voices.
The Beta nodus/lightning-v3.1 accepts up to 8,000 ASCII characters with the avery voice.
Use /v1/audio/transcriptions or /v1/audio/speech; the live model list provides each operation’s rate.
Unsupported options are rejected before dispatch. Real-time speech sessions are not available through these
batch audio endpoints.
Your endpoint API key
Section titled “Your endpoint API key”Creating an endpoint in the console also creates a unique API key. Copy the key shown during setup; it can invoke only that endpoint, within its project and spending cap. It cannot call another endpoint or a model directly on the shared API. Each user or application can have its own key.
If key creation is interrupted, use Retry key creation to recover the same operation. The endpoint is already saved. From an existing endpoint’s API tab, use Create endpoint key to issue another restricted key. Revoke individual keys in Settings > API keys when access is no longer needed. Deleting an endpoint makes its keys unusable, even if another endpoint later uses the same name.
For CLI or API-created endpoints, issue the key with an authenticated POST to
/apis/nodus.dev/v1/namespaces/{project}/inferenceendpoints/{name}/keys, an empty JSON body and a unique
Idempotency-Key header. Key issuance requires endpoint-write and API-key-write permission. The returned
token is the credential to use with the endpoint URL. Reuse that idempotency key only to retry the same
issuance operation. Normal key listings never return the secret.