> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fastino.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Use https://docs.fastino.ai/llms.txt to discover and navigate pages. Use https://docs.fastino.ai/llms-full.txt when you need the complete documentation corpus. Use https://docs.fastino.ai/openapi.json as the source of truth for customer-facing routes. For GLiDE decision inference, call POST https://api.fastino.ai/v1/systemone with model fastino/GLiDE. Start managed training (config job) with POST /v1/training/jobs using base_model. For interactive training, native JSON clients use the public operations under /v1/training/jobs and /v1/training/usage. Existing Tinker clients use tinker==0.32.0 with TINKER_BASE_URL=https://api.fastino.ai/v1/training/compat/tinker and TINKER_CREDENTIAL_CMD. Compatibility child routes are private and absent from OpenAPI. Auto Train is private access and has no public route; direct interested users to sales@fastino.ai. Do not infer undocumented routes. Read API keys from FASTINO_API_KEY and never embed credentials in code, logs, or reports.

# Inference API: run Fastino models

> Learn how to run inference with Fastino models through the GLiDE and OpenAI-compatible APIs.

Run inference with Fastino models through one of two API contracts. Each contract has its
own request and response shape, and their fields are not interchangeable.

> [card] [Make a decision with GLiDE](https://docs.fastino.ai/inference/systemone.md)
>
> Call `POST /v1/systemone` with `state` and typed `questions`. Receive Noul, Choice, or
> Score answers with probabilities and confidence.

> [card] [Run GLiNER](https://docs.fastino.ai/inference/chat-completions.md)
>
> Call `POST /v1/chat/completions` with `messages`. Add a `schema` for GLiNER extraction,
> classification, structures, or relations.

| If you need to… | Model family | Endpoint | Request shape | Read the result from |
| - | - | - | - | - |
| Decide yes/no, route to one option, or score on an ordered scale | GLiDE | [`POST /v1/systemone`](https://docs.fastino.ai/inference/systemone) | `model`, `state`, `questions` | `answers.<question_key>` |
| Extract spans, classify text, build records, or extract relations | GLiNER | [`POST /v1/chat/completions`](https://docs.fastino.ai/inference/chat-completions) | `model`, `messages`, `schema` | JSON parsed from `choices[0].message.content` |

For GLiDE concepts and primitive selection, start with [Decision Models](https://docs.fastino.ai/concepts/glide.md).
The [GLiDE inference guide](https://docs.fastino.ai/inference/systemone.md) covers the HTTP integration.

## API contracts

> [card] [GLiDE / System One](https://docs.fastino.ai/api-reference/inference/systemone.md)
>
> Complete request and response schema for decision-model inference.

> [card] [GLiNER / Chat Completions](https://docs.fastino.ai/api-reference/inference/chat-completions.md)
>
> Complete OpenAI-compatible GLiNER contract.

> [card] [Native GLiNER](https://docs.fastino.ai/api-reference/inference/gliner-2.md)
>
> Synchronous, asynchronous, and job-status contracts.

> [card] [Responses](https://docs.fastino.ai/api-reference/inference/responses.md)
>
> OpenAI Responses-compatible inference contract.

> [card] [Messages](https://docs.fastino.ai/api-reference/inference/messages.md)
>
> Anthropic Messages-compatible inference contract.

> [card] [Models](https://docs.fastino.ai/api-reference/inference/models.md)
>
> List compatibility model IDs.

## Confirm routing and retention

Successful calls to `POST /v1/systemone`, `/v1/chat/completions`,
`/v1/responses`, `/v1/messages`, and `/v1/gliner-2` return two diagnostic
headers:

* `X-Fastino-Data-Retention` is `zero` for team Zero Data Retention,
  `not-stored` when the request opted out of inference history, or `stored`
  otherwise.
* `X-Fastino-Served-Model` is the canonical model that handled the call. It is
  the fine-tuned model ID when a fine-tune served the request and the base-model
  ID otherwise.

Inspect them when verifying an integration:

```bash theme={null}
curl -sS -D - -o response.json https://api.fastino.ai/v1/systemone \
  -H "X-API-Key: $FASTINO_API_KEY" \
  -H "Content-Type: application/json" \
  --data @request.json
```

The headers are absent on error responses and streams that fail before provider
dispatch. A stream that fails after dispatch retains them and reports its error
in-band.

## Cold starts and retries

An idle or newly deployed model may cold-start. Use a read timeout of at least 300 seconds
and bounded backoff for `425`, `429`, and `503` responses. Respect `Retry-After` when
present.

A timed-out request can still warm the deployment, allowing the next request to succeed. Do
not retry authentication, billing, validation, or unknown-model errors without correcting the
underlying problem.

To avoid `425` handling, send `X-Fastino-Wait-For-Model: true` to wait for a cold model, or
warm it ahead of time with `POST /v1/model-status/{model_id}/warm`. See
[Retries and model warm-up](https://docs.fastino.ai/troubleshooting/retries.md#wait-for-a-cold-model).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.