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

# Warm a fine-tuned model with the readiness agent

> Call the model readiness A2A agent over JSON-RPC to warm a fine-tuned model, then poll the task or receive a push notification when it is ready.

`POST /v1/model-readiness/a2a`

The model readiness agent is an [A2A](https://a2a-protocol.org) 0.3 agent with
one skill, **Warm a fine-tuned model**. Send it one of your fine-tuned models'
IDs and it creates a task that warms the model and ends when the model is
ready, or when it could not be made ready. No inference is run. Poll the task,
or give the agent an HTTPS callback that receives the task once it ends. Its
agent card is at
[`GET /v1/model-readiness/agent-card.json`](https://docs.fastino.ai/api-reference/inference/model-readiness-agent-card).

Every call is one JSON-RPC 2.0 request with your API key in `X-API-Key`. The
HTTP status is `200` for every JSON-RPC response; read `result` or `error` in
the body.

## Methods

| Method | `params` | Result |
| - | - | - |
| `message/send` | `message`, and optionally `configuration.pushNotificationConfig` | A new task |
| `tasks/get` | `id`: the task ID | The task |
| `tasks/cancel` | `id`: the task ID | The canceled task |
| `tasks/pushNotificationConfig/set` | `taskId` and `pushNotificationConfig` | The push configuration, without its secrets |
| `tasks/pushNotificationConfig/get` | `id`: the task ID, and optionally `pushNotificationConfigId` | The push configuration, without its secrets |
| `tasks/pushNotificationConfig/list` | `id`: the task ID | A list with zero or one push configuration |
| `tasks/pushNotificationConfig/delete` | `id`: the task ID, and optionally `pushNotificationConfigId` | `null` |

Streaming is not supported, and a task cannot be continued with another
message.

## Create a task

Send `message/send` with one `data` part whose `data` holds `model_id`, the
UUID of one of your team's fine-tuned models. The model must have a published
artifact, and not every fine-tuned model can be warmed this way; an unsupported
model returns error `-32602`.

`messageId` makes the call idempotent: sending the same request with the same
`messageId` returns the same task, and reusing a `messageId` for a different
request returns `-32602`.

```json message-send.json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "message/send",
  "params": {
    "message": {
      "role": "user",
      "kind": "message",
      "messageId": "warm-support-model-1",
      "parts": [
        {"kind": "data", "data": {"model_id": "YOUR_MODEL_ID"}}
      ]
    },
    "configuration": {
      "pushNotificationConfig": {
        "url": "https://YOUR_AGENT_HOST/fastino/readiness",
        "token": "YOUR_CALLBACK_TOKEN"
      }
    }
  }
}
```

```bash theme={null}
curl https://api.fastino.ai/v1/model-readiness/a2a \
  -H "X-API-Key: $FASTINO_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @message-send.json
```

Leave out `configuration` to poll instead of receiving a push notification.

## Task

`message/send`, `tasks/get` and `tasks/cancel` return an A2A task.

| Field | Meaning |
| - | - |
| `id` | Task ID. `contextId` has the same value. |
| `kind` | `task`. |
| `status.state` | `submitted` or `working` while the task runs, then `completed` (the model is ready), `failed`, or `canceled`. |
| `status.timestamp` | When the task was created, or when it ended. |
| `metadata.model_id` | The model being warmed. |
| `metadata.error_code` | Why the task failed, such as `warmup_timeout`, or `access_revoked` when the task was canceled because you lost access to the model. `null` while the task runs, when it completes, and when you cancel it. |
| `metadata.readiness_is_observation` | Always `true`: `completed` reports that the model was ready when it was observed, not that it stays warm. |
| `metadata.inference_submitted` | Always `false`. |
| `metadata.push_sent` | Whether the push notification was delivered. |
| `metadata.delivery_attempts` | How many deliveries of the push notification failed. |
| `metadata.delivery_exhausted` | `true` when delivery stopped after its last attempt. |

```json Response theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "id": "YOUR_TASK_ID",
    "contextId": "YOUR_TASK_ID",
    "kind": "task",
    "status": {"state": "submitted", "timestamp": "2026-11-19T18:00:00Z"},
    "metadata": {
      "model_id": "YOUR_MODEL_ID",
      "error_code": null,
      "readiness_is_observation": true,
      "inference_submitted": false,
      "push_sent": false,
      "delivery_attempts": 0,
      "delivery_exhausted": false
    }
  }
}
```

A task that is not ready within 20 minutes fails with `warmup_timeout`.

## Poll or cancel a task

```json tasks-get.json theme={null}
{"jsonrpc": "2.0", "id": 2, "method": "tasks/get", "params": {"id": "YOUR_TASK_ID"}}
```

Use the same body with `tasks/cancel` to cancel a task that has not ended.
Canceling a task that has ended returns `-32002`.

## Push notifications

A task has at most one push configuration, `default` unless you give it an
`id`. Set it in `message/send`: `tasks/pushNotificationConfig/set` and
`delete` return `-32602` once the task has ended or while the agent is
processing it. `get` and `delete` return `-32001` when the task has no push
configuration with the requested ID.

| Field | Meaning |
| - | - |
| `url` | A public `https` URL on port 443, without user information or a fragment. |
| `token` | 16 to 1,024 printable ASCII characters, sent back in the `X-A2A-Notification-Token` header. |
| `authentication` | Optional. `{"schemes": ["Bearer"], "credentials": "..."}` also sends `Authorization: Bearer <credentials>`. |
| `id` | Optional, up to 100 characters. Defaults to `default`. |

When the task completes or fails, the agent sends an HTTPS `POST` of the task
object to `url`. A canceled task sends no notification. It retries a failed delivery up to 5 attempts in all. Delivery is at
least once: deduplicate by task `id` and `status.timestamp`, and check the
token before trusting a notification.

## Limits

Each team member can have at most 3 tasks that have not ended, and can create
at most 20 tasks per hour. A request over either limit returns `-32602`.

A task that has ended is kept for 7 days after it was created. After that,
calls for it return `-32001`.

## Errors

| Code | Meaning |
| - | - |
| `-32700` | The body is not JSON. |
| `-32600` | The body is not a JSON-RPC 2.0 request. |
| `-32601` | The method is not supported. |
| `-32602` | The parameters, the model, or the task's state does not allow the request, or a limit was reached. |
| `-32001` | The task or model was not found, or the task has no push configuration with the requested ID. |
| `-32002` | The task has ended and cannot be canceled. |
| `-32603` | Internal error. |

A missing or invalid API key returns HTTP `401`.


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