Skip to content
Get an API key

Quickstart

View as Markdown
  1. 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.

  2. 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.

  3. 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_...
  4. 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"
  5. 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."}]
    }'
  6. Read the cost. Every answer carries what it cost in usage.noduma_cost, in credits, and the price it was charged at in usage.noduma_price_per_1k_tokens. See Usage and cost.

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.