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

# Grok Imagine Video 1.5 图生视频

> Grok Imagine Video 1.5 API 可让一张首帧图片动起来，生成 1–15 秒、480p、720p 或 1080p 的视频。

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

## Grok Imagine Video 1.5 图生视频

使用描述主体运动、镜头运动和声音的提示词让单张图片动起来。图片作为首帧，并决定视频的宽高比。

## 请求

将 `model` 设为 `xai/grok-imagine-video-v1.5/image-to-video`。下列参数放在 `input` 中。可选的 `callback_url` 放在请求根级。

### prompt

必填字符串。用 **1–4,096 个字符**描述场景和期望的运动，至少包含一个非空白字符。

### image\_urls

必填数组，包含**恰好一个**可公开访问的 HTTP(S) 图片 URL。URL 需带主机名，且无需凭证即可访问。

### resolution

可选字符串：`480p`、`720p` 或 `1080p`。默认：`720p`。

### duration

可选整数，**1 到 15** 秒。默认：**6**。


## OpenAPI

````yaml zh/api-manual/video-series/xai-grok-imagine-video-v1-5-image-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Grok Imagine Video 1.5 图生视频
  description: 使用 Grok Imagine Video 1.5 将参考图转为视频，输出最高 1080p，片段时长 1 到 15 秒。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Video Series
      summary: Grok Imagine Video 1.5 图生视频
      description: 使用运动提示词让一张首帧图片动起来。可选择输出分辨率和时长。
      operationId: submit_xai_grok_imagine_video_v1_5_image_to_video
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              additionalProperties: true
              properties:
                model:
                  type: string
                  example: xai/grok-imagine-video-v1.5/image-to-video
                  enum:
                    - xai/grok-imagine-video-v1.5/image-to-video
                input:
                  type: object
                  required:
                    - prompt
                    - image_urls
                  properties:
                    prompt:
                      type: string
                      maxLength: 4096
                      minLength: 1
                      description: 描述主体运动、镜头运动和声音，1–4096 个字符。
                    image_urls:
                      type: array
                      minItems: 1
                      maxItems: 1
                      items:
                        type: string
                        format: uri
                        description: 图片 URL。
                      description: 提供恰好一个可公开访问的 HTTP(S) 图片 URL 作为首帧。
                    resolution:
                      type: string
                      enum:
                        - 480p
                        - 720p
                        - 1080p
                      default: 720p
                      description: 输出分辨率。默认：720p。
                    duration:
                      type: integer
                      minimum: 1
                      maximum: 15
                      description: 整数视频时长，1 到 15 秒。默认：6。
                      default: 6
                  additionalProperties: false
                callback_url:
                  type: string
                  nullable: true
                  description: 可选，接收任务完成通知的公开 HTTP(S) 地址，建议使用 HTTPS。省略、传 null 或传空字符串即不启用回调。
              description: model 和 callback_url 放在请求根级，生成参数放在 input 中。
            examples:
              basic:
                summary: 基础工作流
                value:
                  model: xai/grok-imagine-video-v1.5/image-to-video
                  input:
                    duration: 6
                    image_urls:
                      - https://example.com/image.png
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    resolution: 720p
              callback:
                summary: 接收完成回调
                value:
                  model: xai/grok-imagine-video-v1.5/image-to-video
                  input:
                    duration: 6
                    image_urls:
                      - https://example.com/image.png
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    resolution: 720p
                  callback_url: https://your-domain.com/callback
      responses:
        '200':
          description: 任务已提交
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - data
                properties:
                  code:
                    type: integer
                    enum:
                      - 200
                  data:
                    type: object
                    required:
                      - task_id
                      - status
                      - created_time
                    properties:
                      task_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - not_started
                          - running
                          - finished
                          - failed
                      created_time:
                        type: string
                        format: date-time
              example:
                code: 200
                data:
                  task_id: task-unified-example
                  status: running
                  created_time: '2026-09-10T08:00:00'
        '400':
          description: 请求校验或余额检查失败
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '401':
          description: 凭证无效
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '403':
          description: 拒绝访问
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '404':
          description: 模型未知或已停用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '408':
          description: 请求超时
          content:
            text/plain:
              schema:
                type: string
              example: Request timeout
        '422':
          description: JSON 无效或请求体不是对象
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '429':
          description: 超出速率限制或 API Key 积分限额
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '500':
          description: 内部错误
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '502':
          description: 无法创建生成任务
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '503':
          description: 所请求的模型暂时不可用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 使用 VIDGO_API_KEY。

````

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