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

# Queue an optimizer step

> Queue an optimizer step over accumulated gradients on an interactive training job. The request body is optional, and the response returns a future_id to poll.

`POST /v1/training/jobs/{job_id}/optim-step`

Applies the gradients accumulated by forward-backward passes since the last
step, using AdamW. Operations run in the order the job receives them. Although
you can pre-queue this call, wait until the forward-backward future is
`completed` before queueing it: a pre-queued optimizer step can still run after
the forward-backward future `failed` or was `cancelled`. See the
[interactive training loop](https://docs.fastino.ai/training/training-loop.md).

## Request

**X-API-Key** `string` *required*

Your Fastino API key.

**job\_id** `string` *required*

Interactive job ID.

The JSON body is optional.

**adam\_params** `object`

AdamW parameters. Omitted fields use their defaults.

**properties**

**learning\_rate** `number` (default: 0.0001)

Learning rate, `>= 0`.

**beta1** `number` (default: 0.9)

From `0` up to, but not including, `1`.

**beta2** `number` (default: 0.95)

From `0` up to, but not including, `1`.

**eps** `number` (default: 1e-12)

`> 0`.

**weight\_decay** `number` (default: 0)

`>= 0`.

**grad\_clip\_norm** `number` (default: 0)

Gradient-norm clip, `>= 0`. `0` disables clipping.

```bash cURL theme={null}
curl -X POST "https://api.fastino.ai/v1/training/jobs/$TRAINING_JOB_ID/optim-step" \
  -H "X-API-Key: $FASTINO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"adam_params": {"learning_rate": 0.0001}}'
```

## Response

```json Response theme={null}
{
  "future_id": "FUTURE_ID",
  "job_id": "SESSION_ID:train:0",
  "type": "optim_step"
}
```

The completed future's `result` holds the step's metrics.

| Status | Meaning |
| - | - |
| `400` | An Adam parameter is out of range, or the job was stopped. |
| `404` | The job doesn't exist or belongs to another team. |
| `422` | The body has an unknown field. |
| `429` | The job already has `512` operations queued. Wait for its existing futures to finish before retrying. See [Interactive-job lifecycle](https://docs.fastino.ai/training.md#interactive-job-lifecycle). |


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