Quickstart
-
Create your account. Open the Noduma app, choose Create your account and confirm your email with the link or the 6-digit code it sends. Choose Use AI or Both.
-
Get credits. An account created in the Noduma app starts with no credits. Earn them by sharing a PC, or ask the Noduma maintainers at contact@noduma.dev. If you share a PC of your own, its answers to you are free: send your requests to My PCs. Credits are not money: they cannot be bought or paid out.
-
Create an API key. In the Noduma app, open API keys and create a named key. It starts with
ndm_k_and is shown once: keep it like a password. Revoke ends it at once.Terminal window export NODUMA_API_KEY=ndm_k_... -
List the models and see which ones a PC serves now (
"state": "ready") and their price:Terminal window curl https://app.noduma.dev/v1/models -H "Authorization: Bearer $NODUMA_API_KEY" -
Send a request. Use a model whose state is
ready:Terminal window curl https://app.noduma.dev/v1/chat/completions \-H "Authorization: Bearer $NODUMA_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "qwen2.5-7b-instruct-q4_k_m","messages": [{"role": "user", "content": "Explain in one sentence what a GPU does."}]}'# pip install openaiimport osfrom openai import OpenAIclient = OpenAI(base_url="https://app.noduma.dev/v1", api_key=os.environ["NODUMA_API_KEY"])answer = client.chat.completions.create(model="qwen2.5-7b-instruct-q4_k_m",messages=[{"role": "user", "content": "Explain in one sentence what a GPU does."}],)print(answer.choices[0].message.content)// npm install openaiimport OpenAI from 'openai';const client = new OpenAI({ baseURL: 'https://app.noduma.dev/v1', apiKey: process.env.NODUMA_API_KEY });const answer = await client.chat.completions.create({model: 'qwen2.5-7b-instruct-q4_k_m',messages: [{ role: 'user', content: 'Explain in one sentence what a GPU does.' }],});console.log(answer.choices[0].message.content); -
Read the cost. Every answer carries what it cost in
usage.noduma_cost, in credits, and the price it was charged at inusage.noduma_price_per_1k_tokens. See Usage and cost.
If it fails
Section titled “If it fails”| Answer | What it means |
|---|---|
401 invalid_api_key |
The key is missing, mistyped or revoked |
402 insufficient_credits |
The balance does not cover the answer; see step 2 |
503 model_not_available |
The model is on Noduma's list but no PC serves it right now; try another model or later |
404 model_not_found |
The name is not on Noduma's list; copy it from /v1/models |
Every error is in Errors.
- Streaming to show words as they are written.
- SDK examples for streaming, tools and the routing header in Python and JavaScript.
- Routing to know who can read your request.