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

# Export model

> **Required scope:** models:manage

**Required scope:** `models:manage`

### Request body

`ExportModelRequest`

<ParamField body="checkpoint_id" type="string">
  Checkpoint ID (optional, uses current if not specified)
</ParamField>

<ParamField body="format" type="ExportFormat" required />

<ParamField body="include_kb" type="boolean">
  Include knowledge base
</ParamField>

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |
| `501` | Model export is not yet implemented                |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/model/export' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "checkpoint_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "format": "safe_tensors",
    "include_kb": true
  }'
  ```
</RequestExample>
