Build with Nodedistro
Access leading AI models through one API, one key, and one prepaid developer balance.
curl https://ai.nodedistro.com/api/developer/chat \
-H "Authorization: Bearer $NODEDISTRO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"messages":[{"role":"user","content":"Hello!"}]}'
Project overview
Developer API activity for the current billing month.
Buy a pack or enter a custom amount (min $5).
Get started
Go from key to first response in minutes.
API keys
Recently created credentials.
API endpoint
Use this base URL from your server.
Default project
API keys
Create and manage secret keys for this project.| Name | Key | Lifetime usage | Last used | Status | Actions |
|---|
Default project
Playground
Prototype prompts and inspect live API responses.Response
ReadyRun a request to see the model response, latency, tokens, and cost.
API Platform
Build with the Nodedistro AI Chat API. One authenticated endpoint for model routing, optional web search, and account-level usage metering.
Developer quickstart
Make your first API request in minutes. Create a key, send chat messages, and read the assistant response.
Chat API
Send messages to /api/developer/chat with provider routing and optional web search.
API playground
Test the same request shape your application will call before shipping.
Authentication
The Nodedistro AI API uses API keys for authentication. Create and manage keys in the developer console. Keys begin with ndsk_.
Remember that your API key is a secret. Do not share it or embed it in client-side code. Store it only on your server and send it in the Authorization header.
Authorization: Bearer ndsk_your_key
Prepaid credits
Calls to POST /api/developer/chat spend from your prepaid developer credit balance. Workspace chat continues to use your plan’s monthly included budget.
- Shared wallet — one balance covers OpenAI (
openai), Anthropic (anthropic), and Google (gemini). - Required balance — each request needs enough credits to cover the projected cost before the provider is called.
- Add credits — purchase one-time packs ($10 / $25 / $50 / $100) or a custom amount (minimum $5) from the developer console Overview. Choose which vendor account Nodedistro should fund; your spendable balance stays shared.
- Empty balance — the API returns
402withcode: "CREDITS_REQUIRED"and the remainingcreditBalanceUsd.
Chat > Completions
Create chat completion
Given a list of messages comprising a conversation, the model returns an assistant response.
/api/developer/chat
Request body
All fields are JSON. Only messages is required.
Ordered chat turns. Each item needs role (system, user, or assistant) and content.
Provider ID such as openai, anthropic, or gemini. Unavailable providers are rejected.
Model ID for the selected provider. Use auto only when that provider supports automatic routing.
When true, the API may search the web before generating a response, subject to provider policy.
URLs in the latest user message are read automatically. Follow-ups use a matching page name from recent user links, or the most recent link when no page is named. Set false to disable page reading, or true to also read a search result when no URL is supplied. This works independently of webSearch.
Controls randomness. Prefer lower values for deterministic application behavior.
Returns
Returns a chat completion object with assistant text and metering fields.
contentstringAssistant response text.
providerstringProvider used for the response.
modelstringModel used for the response.
usageobjectInput, output, and total tokens plus estimated cost for this request.
monthlyUsageobjectCurrent billing-month usage and request totals for the account.
developerCreditBalanceUsdnumberRemaining prepaid balance after this Developer API request.
webSearchobject | nullSearch provider, results, page status, and errors when search ran.
Error codes
Errors return JSON with an error string. Some responses also include a machine-readable code.
CREDITS_REQUIRED). Add credits in the developer console.Usage and limits
Developer API spend deducts prepaid credits. Workspace chat usage is tracked separately against your plan budget and refreshes at 12:00 AM UTC on the first day of each month.
- Developer credits — prepaid wallet required for
/api/developer/chat; returned asdeveloperCreditBalanceUsd. - Included budget — plan allowance for workspace chat, returned as
budgetUsd. - Key hygiene — revoke unused keys and rotate credentials after exposure.
No matching sections. Try another search term.
Nodedistro