# Glossary

> The terms of the Inola API documentation, from API key and scope to verdict, threshold, token, credits, spend limit, batch and custom_id.

This page defines the terms used across the Inola API documentation, in one or two sentences each. Every other
page links a term here on its first use. The terms are written the same way in the documentation, in the API and in
the console.

## API key

A secret that identifies the caller: every request carries it in `Authorization: Bearer <key>`. A key belongs to an
[organization](#organization) and has [scopes](#scope); live keys start with `ck_live_`. See
[Authentication](https://inola.ai/docs/authentication.md).

## scope

A permission of an [API key](#api-key): `inference` (detection, decisions, files and batches), `models:read` (the
model list) and `usage:read` (usage statistics). A call without the needed scope returns `403 insufficient_scope`.

## organization

The owner of API keys, of a [plan](#plan) and of a balance. The usage of all its keys is billed to it, its limits are
shared by its keys, and its files and batches are visible to all its keys.

## model

What a request names in its `model` field, such as `cordon-mini` (prompt injection detection) or `decider-mini`. A model has [versions](#version). See [Models and versions](https://inola.ai/docs/concepts/models-and-versions.md).

## version

A release of a [model](#model), such as `2.2.1`, with a status: `preview`, `active`, `deprecated` or `retired`. The
plain model name resolves to the default version or to the [pinned](#pin) one.

## pin

A [version](#version) of a model the [organization](#organization) fixes in the console: the plain model name then
resolves to it for every key of the organization.

## verdict

The decision of a detection model about a document: `output.answers.injection.verdict` at the
[threshold](#threshold), and the verdicts at fixed [false-positive rate points](#false-positive-rate-point) in
`output.answers.injection.verdicts`. See
[Verdicts and scores](https://inola.ai/docs/concepts/verdicts-and-scores.md).

## score

The probability, from 0 to 1, that a document contains a prompt injection (`output.answers.injection.noul` in the response).

## threshold

The [score](#score) above which the [verdict](#verdict) is `true`. Sent as `options.threshold` in
the request; without it the model's recommended point is used.

## false-positive rate point

A threshold fixed by the rate of clean documents it marks as injections: `fpr_1e-03` is about one false alarm per
1 000 clean documents, `fpr_1e-04` about one per 10 000. The verdicts at these points are in `verdicts`.

## plan

What an [organization](#organization) pays for: the models it can use, their prices, the limits, the monthly
allowances. The values of your plan are listed by `GET /v1/models` and in
the console.

## token

The unit of billing: one token of the texts you send (the document and the text of your questions), each counted
once; nothing the service adds. Each model has its own price per token. See [Tokens and billing](https://inola.ai/docs/concepts/tokens-and-billing.md).

## output token rate

For models that generate output: how many [tokens](#token) one output token counts as (for example, one output token
= 2 tokens). The rate of each model is listed by `GET /v1/models`.

## credits

The balance of an [organization](#organization): top-ups and grants. With no balance left,
requests return `402 payment_required`.

## spend limit

A monthly ceiling on spending that the [organization](#organization) sets itself in the console. When it is reached,
requests return `429 spend_limit_reached` until the next billing period or a higher limit.

## batch

A set of documents sent as one JSONL file and processed within the completion window, with results downloaded as they
are ready. See [Batches](https://inola.ai/docs/guides/batches.md).

## custom_id

Your own id of one line of a [batch](#batch) input file. The result line carries the same `custom_id`; results are
matched to documents by it, since line order is not guaranteed.
