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

# 下载最后一帧

> 下载创建任务时请求的最后一帧 JPEG。

仅对通过 [Ark 创建接口](/cn/api/video-ark) 设置了 `return_last_frame: true` 的任务可用。等待 `status: succeeded` 后下载，返回 JPEG 文件。

使用任务 ID 和创建任务所属账号的 API 令牌。有效期与视频文件相同：成功后 72 小时，过期返回 410。


## OpenAPI

````yaml openapi/relay.json GET /v1/videos/{task_id}/last-frame
openapi: 3.0.1
info:
  title: AIOHub API
  description: AIOHub 公开 API
  version: 1.0.0
servers:
  - url: https://api.aiohub.org
security:
  - BearerAuth: []
tags:
  - name: 获取模型列表
  - name: OpenAI Chat
  - name: OpenAI Responses
  - name: 图片生成
  - name: OpenAI 图像
  - name: 视频生成
  - name: Claude Messages
  - name: Gemini API
  - name: OpenAI Embeddings
  - name: 文本补全
  - name: OpenAI 音频
  - name: Realtime API
paths:
  /v1/videos/{task_id}/last-frame:
    get:
      tags:
        - 视频生成
      summary: 获取视频最后一帧
      description: |
        返回视频最后一帧的 JPEG。仅对创建时设置了 `return_last_frame: true` 的任务可用，有效期与视频文件相同。
      operationId: getVideoLastFrame
      parameters:
        - name: task_id
          in: path
          required: true
          example: task_ADQ5XK6AKWg36WePoJ3sZRyDvWl1ogGZ
          schema:
            type: string
          description: 创建任务时返回的 `id`
      responses:
        '200':
          description: JPEG 图片
          headers: {}
          content:
            image/jpeg:
              schema:
                type: string
                format: binary
        '404':
          description: 任务不存在、未成功，或未请求最后一帧
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
        '410':
          description: 已超过 72 小时保留期
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: 错误信息
            type:
              type: string
              description: 错误类型
            param:
              type: string
              description: 相关参数
              nullable: true
            code:
              type: string
              description: 错误代码
              nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: API key (sk-xxx)

````

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