Skip to content

创建视频

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/video/create:
    post:
      summary: '创建视频 '
      deprecated: false
      description: ''
      tags:
        - 视频模型/grok 视频生成/视频统一格式
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Accept
          in: header
          description: ''
          required: true
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  description: 模型名字 grok-video-3
                prompt:
                  type: string
                  description: ' 提示词'
                aspect_ratio:
                  type: string
                  description: 可选为 2:3, 3:2, 1:1
                size:
                  type: string
                  description: 720P或者1080P 暂只支持720P
                images:
                  type: array
                  items:
                    type: string
                  description: 垫图图片链接,垫图后视频尺寸跟着图片尺寸走,
              required:
                - model
                - prompt
                - aspect_ratio
                - size
                - images
              x-apifox-orders:
                - model
                - prompt
                - aspect_ratio
                - size
                - images
            example:
              model: grok-video-3
              prompt: 小猫在吃鱼  --mode=custom
              aspect_ratio: '3:2'
              size: 720P
              images:
                - >-
                  https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_5_imageToimage.png
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  status_update_time:
                    type: integer
                required:
                  - id
                  - status
                  - status_update_time
              examples:
                '1':
                  summary: 成功示例
                  value:
                    id: veo3.1-components:1762241017-xTL0P9HvGF
                    status: pending
                    status_update_time: 1762241017286
                '2':
                  summary: 成功示例
                  value:
                    id: grok:299604b7-c5ea-47b5-bc64-c06f300f0d27
                    status: processing
                    status_update_time: 1764522528
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 视频模型/grok 视频生成/视频统一格式
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-385288046-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

AnyAPI — 专业的 AI 接口聚合服务