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

Collections

A collection is a set of stored faces your requests can be matched against: your own, enrolled through the API or the console, or the public celebrities collection. The face_recognition booster searches one per request, and its matches come back as evidence.

on this page5 sections
  1. The public collection
  2. Create a collection and enroll faces
  3. Search a collection
  4. What collections cost
  5. Your data

A collection holds faces you want to recognise later: your staff at a door, the members of a club, the people allowed on a site. You enroll each face once, with your own reference for it, and DecisionNode keeps the face's template, never the picture. A request then names the collection in the face_recognition booster, and each face in its pictures is matched against the collection before the decision.

  • Type

    Value
    face for now. A collection's type never changes, and later types bring their own items and booster
  • An item

    Value
    One face: its template, your reference (up to 64 characters of letters, digits and _ . : -, such as an employee number) an optional label (up to 128 characters, shown in a match) and optional metadata (up to 20 flat fields of your own)
  • Never stored

    Value
    The picture. The template is made when you enroll and the picture is forgotten; a template cannot be turned back into a picture
  • Who sees it

    Value
    Your workspace only: no other workspace can see, search or be billed for your collections
What a collection is
Typeface for now. A collection's type never changes, and later types bring their own items and booster
An itemOne face: its template, your reference (up to 64 characters of letters, digits and _ . : -, such as an employee number) an optional label (up to 128 characters, shown in a match) and optional metadata (up to 20 flat fields of your own)
Never storedThe picture. The template is made when you enroll and the picture is forgotten; a template cannot be turned back into a picture
Who sees itYour workspace only: no other workspace can see, search or be billed for your collections

The public collection#

celebrities belongs to DecisionNode, is searched like your own and carries no storage fee.

  • celebrities

    Who may search it
    Every workspace
    A match returns
    The public figure's name, a reference and the score
The public collection
CollectionWho may search itA match returns
celebritiesEvery workspaceThe public figure's name, a reference and the score

Create a collection and enroll faces#

Collections are managed with your API key (dn_live_...) at https://api.decisionnode.com/v1/collectionshttps://api.decisionnode.com/v1/collections, or on the console's Collections page. Create one, then enroll a face per call: one picture, in any form a decision takes (url, data or upload_id).

Create a collection, then enroll a face
curl -X POST https://api.decisionnode.com/v1/collections \
  -H "Authorization: Bearer $DECISIONNODE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"face","name":"Staff, Stockholm office"}'
What comes back
{
  "id": "col_3f6c1a9e0b2d4c7f8a1e5d9b2c4f6a80",
  "type": "face",
  "name": "Staff, Stockholm office",
  "public": false,
  "items": 412,
  "created_at": "2026-10-12T09:00:00Z",
  "deletion": null
}
  • One item is one face. A picture with several faces enrolls the largest, and faces_found says how many faces it could take, at most 64: a face the detector is at least 0.7 sure of and at least 1,000 square pixels in size. box shows which face was taken, in pixels of the picture as you sent it.
  • A picture with no such face is a 422 with the entry no_face at image. Nothing is stored, and the enrollment is billed, since the face model ran.
  • A picture that cannot be read is never billed, since the face model did not run: a 422 image_unreadable (not a JPEG, PNG or WebP, too large, a url that cannot be reached in time, or more than 1,024 faces in it), the 400 image_url_refused of a url we do not fetch, or an upload's own 400. Nor is a 529: retry one after its Retry-After, except one whose details.reason is enrollment_unpriced, which says enrollment is not offered here yet and is never retried.
  • A reference may repeat: the same person enrolled twice keeps one reference on two items.
  • Public collections take no enrollment: 403 collection_read_only.
  • Limits: up to 100 collections and 1,000,000 items in all of them per workspace; write to us to raise them. Past them, 409 collections_limit_reached or items_limit_reached.
  • Zero retention does not stop an enrollment: an item is data you chose to keep, held until you delete it.
  • A workspace whose data is kept in a storage location other than the default cannot create collections or enroll: 403 collections_region_unavailable.
  • Metadata: an item may carry up to 20 flat fields of your own, 4,096 bytes at most, such as a department or a badge number. A match on your own collection carries them, and the model reads them as evidence: see Enroll a face.
  • Edit an item without enrolling it again: PATCH /v1/collections/{id}/items/{item_id} changes its reference, its label or its metadata, never billed.
  • A retried create, enrollment or edit runs once when you send the same Idempotency-Key header with it: see Retrying.

Search a collection#

Name the collection in the face_recognition booster's collection option: a public collection's name or the id of one of yours. Each face in the request's pictures is compared with the collection, and the nearest item at or above threshold (0 to 1, 0.5 when you leave it out) is a match. The model still answers every question; the matches come back in evidence.

A request that searches your own collection
{
  "images": [
    {
      "id": "door",
      "url": "https://files.example.com/office/door-cam/0904.jpg"
    }
  ],
  "boosters": [
    {
      "name": "face_recognition",
      "options": {
        "collection": "col_3f6c1a9e0b2d4c7f8a1e5d9b2c4f6a80",
        "threshold": 0.6
      }
    }
  ],
  "questions": {
    "staff": {
      "type": "truth",
      "instructions": "Is the person at the door in our Staff, Stockholm office collection?"
    }
  }
}

The model reads each match's collection_name with its score and reference, so a question can name the collection, as this one does with "Staff, Stockholm office". A search of your own collection also carries collection_name on the picture's result. Both are present only on a reading from a worker on the dn-evidence-4 format, so read them as optional. A collection whose name says what it holds (staff, members, allowed on site) makes such questions read plainly.

evidence.face_recognition.results, per collection
{
  "image": "door",
  "faces": 1,
  "collection_name": "Staff, Stockholm office",
  "matches": [
    {
      "box": { "x1": 640, "y1": 122, "x2": 731, "y2": 240 },
      "score": 0.91,
      "collection": "col_3f6c1a9e0b2d4c7f8a1e5d9b2c4f6a80",
      "collection_name": "Staff, Stockholm office",
      "reference": "emp-1042",
      "label": "Anna, reception",
      "metadata": {
        "department": "reception",
        "badge": 1042,
        "visitor": false
      }
    }
  ]
}
  • faces is how many faces were searched: up to 64 a picture, the most certain first, each one the detector is at least 0.7 sure of and at least 1,000 square pixels in size. matches is always there, [] when nothing matched, best score first, at most 64.
  • Each match carries its box (in the request's units, as every booster's box), its score, the collection searched, its collection_name (your collection's name, or its col_ id when it has none; a public collection's id, such as celebrities) and the item's reference, with label for your own item that has one, its metadata when it carries some, and name for a public figure. No match ever carries a picture.
  • A picture with more than 1,024 faces, or a search that cannot finish in its time, is the booster's error or timeout and is not billed; see When a booster cannot read.
  • A match is a measure of similarity, not an identification. Act on it as evidence, beside your own threshold and the model's answers; the Terms forbid deciding about a person on a match alone.

What collections cost#

  • A search of your own collection, per picture

    Price
    $0.001
  • A search of celebrities, per picture

    Price
    $0.001
  • An enrollment, per picture the face model reads, a face found or not

    Price
    $0.001
  • Storage, per item and month

    Price
    $0.00001
Collection prices
WhatPrice
A search of your own collection, per picture$0.001
A search of celebrities, per picture$0.001
An enrollment, per picture the face model reads, a face found or not$0.001
Storage, per item and month$0.00001
  • Searches are booster calls: billed per picture and collection searched, only for a reading that ran, with your request's tokens.
  • Storage is a monthly fee: every item stored at any time in a month pays that month, an item you delete during it included, with no proration. It is charged on the 1st of the next month, from your balance (a dedicated workspace's invoice carries it). The public collections carry none.
  • Face collections are in Pro and Business, and in the trial, where searches of them and of celebrities are billed booster calls; on Starter a celebrities search runs only as a test call. An enrollment and storage are always billed.
  • When the balance cannot cover the storage charge, it is retried 3 times, 10 days apart, and your workspace's owner and admins are emailed each time. After the third failure every item of your collections is marked for deletion 30 days later: the owner and admins are emailed the date, and a reminder goes out 7 days before it.
  • During those days the items stay searchable, and a top-up or a new payment method retries the charge at once; a success clears the marks. At the date the items are deleted for good, and the collections stay, empty.

Your data#

  • Templates only. An item is a template, your reference, your label, your metadata and its times. No picture is stored.
  • Yours alone. Every call is scoped to the key's workspace; another workspace's collection reads as not found.
  • Deleting is real. A deleted item or collection leaves no template behind, and it cannot be restored.
  • Never used to train. Biometric data in a collection or a search is never used to improve the models, whatever your settings.
  • Your lawful basis. For every face you enroll you need a lawful basis, the person's consent where the law requires it, and the notice the law requires; see section 6.10 of the Terms.
  • Collections APIEvery route, field and error.Read
  • BoostersHow a booster's reading reaches the model.Read
previousBoostersnextConfidence

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. The public collection
  2. Create a collection and enroll faces
  3. Search a collection
  4. What collections cost
  5. Your data