Skip to content
DecisionNodeDecisionNdedocs
  • Guides
  • API reference
  • Examples
  • Playground

start here

  • QuickstartGet startedGet an API key, send one request with three questions, and branch your code on the typed answers. Plain HTTPS, nothing to install.
  • POST /v1/decideAPI referenceAnswer typed questions about a state, optional images and video frames. One request, one buffered JSON response, one answer per question.
  • QuestionsConceptsQuestions say what to decide. Each one has a type that fixes the shape of its answer: a choice from your options, a score on your scale, a…
  • ConfidenceConceptsProbabilities are calibrated per question type, so a threshold means what it says on the data we measure.
  • ImagesConceptsSend up to 16 images and text in the same request. The model reads printed and handwritten text, amounts, dates, objects and layout, and…
  • Batch jobsPatternsSend up to 10,000 requests in one file and collect the answers later, at a lower price than live calls.
  • Pricing and billingEvery workspace runs on a plan: Starter, Pro, Business or Dedicated.
↑↓ moveopen7 suggestions
Get API keyGet API key
DecisionNodeDecisionNde

Get started

  • Introduction
  • Quickstart
  • CLI
  • Playground
  • Console and keys
  • With coding agents
  • MCP server
  • Examples

Concepts

  • State
  • Questions
  • Choice
  • Score
  • Truth
  • Number
  • Points and boxes
  • Images
  • Video
  • Boosters
  • Collections
  • Confidence
  • Determinism
  • API keys

Knowledge

  • Overview
  • Documents
  • In a decision
  • Pricing and your data
  • When a rule does not appear

Models

  • DecisionNode
  • DecisionNode Flash
  • DecisionNode Edge
  • Limits
  • Versions
  • Dedicated capacity

Fine-tuning

  • Overview
  • Prepare your dataset
  • Upload and validation
  • Start a training run
  • Watch a run
  • The quality gate
  • Use your model
  • Limits and pricing

Patterns

  • Confidence-gated routing
  • Form router
  • Fan-out
  • Guardrails
  • Control loops
  • Batch jobs
  • Keys on devices
  • Bill your customers per device
  • Publishable keys

Integrations

  • Home Assistant
  • MQTT bridge
  • ROS 2

API reference

  • Overview
  • POST/v1/decide
  • POST/v1/systemone
  • GET/v1/models
  • POST/v1/uploads
  • /v1/keys
  • GET/v1/keys/{key_id}/usage
  • GET/v1/usage
  • POST/v1/credit
  • Errors
  • Safety check
  • Rate limits

Sessions API

  • Sessions overview
  • POSTOpen a session
  • WSStream frames
  • DELEnd a session

Collections API

  • Overview
  • POSTCreate a collection
  • GETList collections
  • GETRetrieve a collection
  • DELDelete a collection
  • POSTEnroll a face
  • GETList items
  • PATCHUpdate an item
  • DELDelete an item
  • POSTAdd a document
  • PUTReplace a document
  • GETRetrieve an item
  • GETList passages
  • DELDelete failed documents
  • POSTSearch a knowledge base

Batch API

  • The batch object
  • POSTCreate a batch
  • POSTAdd requests
  • POSTFinalize a batch
  • GETRetrieve a batch
  • GETGet batch results
  • POSTCancel a batch
  • GETList batches

Pricing and billing

  • Pricing and billing
  • Refer & earn

Policies

  • Responsible use
  • Data and privacy
  • Benchmarks
  • Pricing
  • Playground
Get API key
  • Guides
  • API reference
  • Examples
  • Playground

Get started

  • Introduction
  • Quickstart
  • CLI
  • Playground
  • Console and keys
  • With coding agents
  • MCP server
  • Examples

Concepts

  • State
  • Questions
  • Choice
  • Score
  • Truth
  • Number
  • Points and boxes
  • Images
  • Video
  • Boosters
  • Collections
  • Confidence
  • Determinism
  • API keys

Knowledge

  • Overview
  • Documents
  • In a decision
  • Pricing and your data
  • When a rule does not appear

Models

  • DecisionNode
  • DecisionNode Flash
  • DecisionNode Edge
  • Limits
  • Versions
  • Dedicated capacity

Fine-tuning

  • Overview
  • Prepare your dataset
  • Upload and validation
  • Start a training run
  • Watch a run
  • The quality gate
  • Use your model
  • Limits and pricing

Patterns

  • Confidence-gated routing
  • Form router
  • Fan-out
  • Guardrails
  • Control loops
  • Batch jobs
  • Keys on devices
  • Bill your customers per device
  • Publishable keys

Integrations

  • Home Assistant
  • MQTT bridge
  • ROS 2

API reference

  • Overview
  • POST/v1/decide
  • POST/v1/systemone
  • GET/v1/models
  • POST/v1/uploads
  • /v1/keys
  • GET/v1/keys/{key_id}/usage
  • GET/v1/usage
  • POST/v1/credit
  • Errors
  • Safety check
  • Rate limits

Sessions API

  • Sessions overview
  • POSTOpen a session
  • WSStream frames
  • DELEnd a session

Collections API

  • Overview
  • POSTCreate a collection
  • GETList collections
  • GETRetrieve a collection
  • DELDelete a collection
  • POSTEnroll a face
  • GETList items
  • PATCHUpdate an item
  • DELDelete an item
  • POSTAdd a document
  • PUTReplace a document
  • GETRetrieve an item
  • GETList passages
  • DELDelete failed documents
  • POSTSearch a knowledge base

Batch API

  • The batch object
  • POSTCreate a batch
  • POSTAdd requests
  • POSTFinalize a batch
  • GETRetrieve a batch
  • GETGet batch results
  • POSTCancel a batch
  • GETList batches

Pricing and billing

  • Pricing and billing
  • Refer & earn

Policies

  • Responsible use
  • Data and privacy
  1. docs
  2. /
  3. Concepts

API keys

Four kinds of API key, from full access on your server to a publishable key in a browser: what each may call, where it belongs, and why every device gets a key of its own.

on this page5 sections
  1. Which kind to use
  2. Why every device gets its own key
  3. A key's settings
  4. What a key's kind refuses
  5. A key's kind never changes

Every call carries a key, and the key's kind decides what the call may do. Choose the narrowest kind that does the job: a key on a device or in a web page can be copied, and a copied key does whatever its kind allows until you revoke it.

  • Full access

    scope
    full
    May call
    Everything the workspace may but /v1/keys: decisions, models, uploads, sessions, batch jobs, collections and per-key usage
    Where it belongs
    Your servers, in a secret manager or an environment variable
  • Decisions only

    scope
    decide
    May call
    POST /v1/decide and GET /v1/models; a face search only where the key allows it
    Where it belongs
    One per device, app install or service that only decides
  • Manage device keys

    scope
    keys
    May call
    /v1/keys: create, list, change and revoke Decisions-only keys, and read their usage. No decisions
    Where it belongs
    Your provisioning server, and nowhere else
  • Publishable

    scope
    publishable
    May call
    POST /v1/decide only, not even GET /v1/models, on the models it lists (DecisionNode Flash unless you add more), never a face search, always within its rate limits and daily spend cap
    Where it belongs
    Web pages and mobile apps: public by design
The four kinds
KindscopeMay callWhere it belongs
Full accessfullEverything the workspace may but /v1/keys: decisions, models, uploads, sessions, batch jobs, collections and per-key usageYour servers, in a secret manager or an environment variable
Decisions onlydecidePOST /v1/decide and GET /v1/models; a face search only where the key allows itOne per device, app install or service that only decides
Manage device keyskeys/v1/keys: create, list, change and revoke Decisions-only keys, and read their usage. No decisionsYour provisioning server, and nowhere else
PublishablepublishablePOST /v1/decide only, not even GET /v1/models, on the models it lists (DecisionNode Flash unless you add more), never a face search, always within its rate limits and daily spend capWeb pages and mobile apps: public by design

Full access, Manage device keys and Publishable keys are made only in the console, under API keys. An Owner, Admin or Developer makes Full access and Decisions-only keys; only an Owner or Admin makes, changes or revokes a Manage device keys or Publishable key. Decisions-only keys are also made by your provisioning server through /v1/keys, one per device.

Which kind to use#

  • A service of yours that does more than decide (batches, sessions, collections)

    Use
    Full access, kept on the server
  • A service of yours that only decides

    Use
    Decisions only: the same answers, and much less to lose if it leaks
  • A fleet of devices: cameras, kiosks, robots, vehicles

    Use
    One Decisions-only key per device, made by your provisioning server: Keys on devices
  • A web page or a mobile app with no server of yours behind it

    Use
    Publishable: Publishable keys
  • A web page with your own server behind it

    Use
    Your server calls DecisionNode with its key; the page calls your server
Which kind to use
Where the call comes fromUse
A service of yours that does more than decide (batches, sessions, collections)Full access, kept on the server
A service of yours that only decidesDecisions only: the same answers, and much less to lose if it leaks
A fleet of devices: cameras, kiosks, robots, vehiclesOne Decisions-only key per device, made by your provisioning server: Keys on devices
A web page or a mobile app with no server of yours behind itPublishable: Publishable keys
A web page with your own server behind itYour server calls DecisionNode with its key; the page calls your server

Why every device gets its own key#

  • A device can be lost, opened or copied. Its key is only as safe as its storage. With a key per device, one lost device is one revoked key, and every other device keeps working.
  • Never a Full access key on a device or in a browser. A full key reads, changes and deletes your collections, starts batch jobs and sessions, and spends at the workspace's rate. Copied from one device, it is all of that for whoever has it. Pasted into a web page, it does not even work: only a publishable key's answers carry the headers that let a page read them, so a page cannot read a Full access, Decisions-only or Manage device keys key's answers, whatever origin it sends. Outside a browser, on a server or in a desktop app, such a key works as it always does.
  • Never the Manage device keys key on a device. It makes keys. It belongs to the server that hands them out.
  • Bound what a key can spend. A Decisions-only key can carry its own rate limits and a daily spend cap, so a copied key costs at most its cap a day until you revoke it.
  • Name and label it. device_id finds the key of one device, and labels revoke a group at once: a store, a batch of hardware, a firmware version.
  • A key is a meter. Every call is metered on the key that made it, and GET /v1/usage reads each key's usage and cost for a period, so with a key per device you can bill each of your customers for its own devices: Bill your customers per device.
  • Let it expire. expires_at ends a key on its own: a pilot, a rental, a device that renews its key on a schedule. An expired key is replaced, never extended: only a rename or a revoke still works on it. A Full access key's expiry is checked when a session's socket connects: a socket already open keeps going until its session ends.
  • Images go inline. A Decisions-only key cannot make uploads (POST /v1/uploads is 403 key_scope_denied), so a device sends its pictures inline or by url in the decision, up to 25 MiB a request.

A key's settings#

  • Face search is opt-in. A Decisions-only key cannot use the face_recognition booster unless you tick May search your face collections when you create it or edit it (may_search_collections). Anyone holding such a key can search your collections and read the matches, so tick it only for a device that runs face recognition. A Full access key always may.
  • Its own rate limits. Under Rate limits (optional), set the key's own Requests per second and Tokens per second, each a whole number from 1 to your workspace's own. Left empty, the workspace's limit applies. Over them, 429 rate_limit_error with Retry-After, as for any key.

What a key's kind refuses#

A call outside a key's kind is 403 key_scope_denied, before anything runs or is billed: "This key may only make decisions." for a route the kind does not reach, such as an upload, a batch, a session or a collection, and "This key may not search collections." for a face_recognition booster on a key without the search allowed. A key past its daily spend cap gets 429 key_spend_cap_reached until the cap resets at 00:00 UTC, and an expired key 401 authentication_error with details.reason key_expired. A Manage device keys key anywhere but /v1/keys and the usage routes gets "This key may only manage keys.", and a Full access key on /v1/keys "Keys are managed with a keys key, made in the console." A publishable key anywhere but a decision gets "A publishable key may only make decisions.", and adds two of its own: 403 origin_not_allowed and 403 model_not_allowed (Publishable keys).

A key's refusals
{
  "detail": {
    "error_type": "key_scope_denied",
    "message": "This key may only make decisions."
  }
}

A key's kind never changes#

A key's kind is set when it is made. Its name, labels, limits, spend cap, expiry and the face search flag can be changed later; its kind cannot. To change the kind, make a new key, move to it, and revoke the old one.

Your existing keys are Full access

Every key made before the key kinds is a Full access key and keeps working exactly as before. Nothing changes until you make a key of another kind.

previousDeterminismnextKnowledge

DecisionNode is built and run by Bynn Intelligence, Inc.

  • Home
  • Playground
  • Examples
  • Console
  • Responsible use
  • Terms
  • Acceptable use
  • Privacy
  • Data processing
  • Defence addendum
  • Cookies
  • Affiliate program

on this page

  1. Which kind to use
  2. Why every device gets its own key
  3. A key's settings
  4. What a key's kind refuses
  5. A key's kind never changes