> ## 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/openapi.json as the source of truth for customer-facing Fastino API routes. Only call operations present in that specification. Do not infer or call undocumented routes. Direct Fastino API integrations use https://api.fastino.ai, /v1 routes, and FASTINO_API_KEY.

# 获取训练日志

> 获取 Fastino 训练任务输出日志的时间点快照。

`GET /v1/training-jobs/{job_id}/logs`

返回结构化的 stdout 和 stderr 条目。此端点不流式传输;要跟随运行中的任务,请轮询该端点。

## 请求

<ParamField header="X-API-Key" type="string" required>
  您的 Fastino API 密钥。
</ParamField>

<ParamField path="job_id" type="string" required>
  训练任务 UUID。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl https://api.fastino.ai/v1/training-jobs/YOUR_TRAINING_JOB_ID/logs \
    -H "X-API-Key: $FASTINO_API_KEY"
  ```
</RequestExample>

## 响应

<ResponseField name="job_id" type="string">
  训练任务 UUID。
</ResponseField>

<ResponseField name="logs" type="object[]">
  日志条目。每个条目包含 `id`、`job_id`、`timestamp`、`level`、`message` 和 `source`。
</ResponseField>

<ResponseField name="total_logs" type="integer">
  返回的条目数量。
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "job_id": "YOUR_TRAINING_JOB_ID",
    "logs": [
      {
        "id": "LOG_ID",
        "job_id": "YOUR_TRAINING_JOB_ID",
        "timestamp": "2026-09-22T20:00:00Z",
        "level": "INFO",
        "message": "Epoch 2 completed",
        "source": "trainer"
      }
    ],
    "total_logs": 1
  }
  ```
</ResponseExample>

未知或无法访问的任务返回 `404`。
