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

# Retries and model warm-up

> Handle transient 425, 429, 503, and Anthropic-compatible 529 responses, wait for or warm a cold model, and avoid retrying permanent request failures.

## Retry only transient failures

Use bounded exponential backoff, respect `Retry-After`, and stop after a fixed attempt or time budget.

## Retry conditions

| Status | Meaning | Action |
| - | - | - |
| `425` | The selected model is warming | Retry after `Retry-After`, or send `X-Fastino-Wait-For-Model: true` to [wait for the model](#wait-for-a-cold-model) |
| `429` | Rate limit reached | Respect `Retry-After`, then retry |
| `503` | Service temporarily unavailable | Retry with bounded backoff |
| `529` | Anthropic-compatible endpoint overloaded | Retry manually; the Anthropic SDK does not automatically retry this response |

Do not retry authentication, billing, validation, missing-model, or malformed-request errors until the request is corrected.

## Wait for a cold model

A model that has not served for a while goes cold. The next call starts it and gets `425` until it is ready, which can take several minutes.

To wait instead of retrying, send `X-Fastino-Wait-For-Model: true` on `POST /v1/chat/completions`, `/v1/messages`, `/v1/responses`, `/v1/systemone`, or `/v1/gliner-2`. The request waits up to 150 seconds for the model, then runs. If the model is still starting after that, you get the usual `425` with `Retry-After`, and the model keeps starting for your retry. The header accepts `true`, `1`, or `yes` in any case; any other value is ignored. Streaming requests ignore this header.

```bash theme={null}
curl https://api.fastino.ai/v1/chat/completions \
  -H "Authorization: Bearer $FASTINO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Fastino-Wait-For-Model: true" \
  -d '{
    "model": "fastino/gliner2.5-multi-v1",
    "messages": [{"role": "user", "content": "Great phone."}],
    "schema": {"classifications": [{"task": "sentiment", "labels": ["positive", "negative", "neutral"]}]}
  }'
```

Set your client read timeout above 170 seconds so it does not give up while the request waits.

## Check and warm a model before use

* `GET /v1/model-status/{model_id}` returns `state` (`ready`, `starting`, or `cold`) and `retry_after_seconds`, which is `null` once the model is ready.
* `POST /v1/model-status/{model_id}/warm` starts the model without running inference and returns `202`. It is not billed, and repeated calls share one start.

```bash theme={null}
MODEL_ID=fastino/gliner2.5-multi-v1

curl -X POST "https://api.fastino.ai/v1/model-status/$MODEL_ID/warm" \
  -H "Authorization: Bearer $FASTINO_API_KEY"

curl "https://api.fastino.ai/v1/model-status/$MODEL_ID" \
  -H "Authorization: Bearer $FASTINO_API_KEY"
```

Warm the model before a benchmark or a traffic burst, then poll the status every `retry_after_seconds` until it is `ready`. Each API server reports what it has seen, so right after a warm call the status can still say `cold` for a short time; keep polling.

## Safe retry checklist

* Use an idempotency key for training-job creation and other supported mutations.
* Keep the same request body when replaying an idempotent request.
* Apply jitter and a maximum delay.
* Log the final status and request ID, but never the API key.

See the complete error response shapes and resolution guidance in [Errors](https://docs.fastino.ai/troubleshooting/errors.md).


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