> ## 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.

# Hailuo 2.3 文生视频

> 使用 Hailuo 2.3 Standard 生成短视频场景，输出 768p，可对书面场景构思进行可选的提示词优化。

> [!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)接口获取结果。

使用 Hailuo 2.3 Standard 生成短视频场景，输出 768p，可对书面场景构思进行可选的提示词优化。

## 模型

* **minimax/hailuo-2.3/standard/text-to-video** - 根据文本提示词生成视频场景。

## 功能

* 根据文本提示词生成视频场景。
* 该 model ID 将输出分辨率固定为 `768p`。

## 时长选项

* **6、10 秒** - `duration` 设为整数。可选。默认值：**6 秒**。

## 高级参数

`model` 和可选的 `callback_url` 放在请求根级。所有工作流程参数（包括输出选项）都放在 `input` 中。

只发送该工作流程支持的 input 字段。JSON 类型校验时不会把字符串转换为数字或布尔值；`prompt` 必须是字符串，小数时长会被拒绝。不支持的 `input` 字段会在扣除积分前被拒绝。

### 提示词

* `prompt`：必填。描述场景和期望的动作。长度：**1-5,000 个字符**。
* 提供该值时不能为空。

### 分辨率

* `resolution`：可选。可选值：`768p`。默认值：`768p`。

### 提示词优化

* `prompt_optimizer`：可选。控制自动提示词优化。使用 `true` 或 `false`。未指定默认值；不使用时省略该字段。

## 计费因素

计费取决于视频时长（`duration`），使用 Standard 模型档位。该接口将输出分辨率固定为 `768p`。提示词优化（`prompt_optimizer`）不影响费用。

提交时扣除积分，任务失败时退还。


## OpenAPI

````yaml zh/api-manual/video-series/minimax-hailuo-2-3-standard-text-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Hailuo 2.3 文生视频
  description: 使用 Hailuo 2.3 Standard 生成短视频场景，输出 768p，可对书面场景构思进行可选的提示词优化。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Video Series
      summary: Hailuo 2.3 文生视频
      description: >-
        只发送该工作流程列出的字段。其他工作流程的参数会在扣除积分前被拒绝。


        prompt 必填且不能为空。


        该 ID 将 `resolution` 固定为 `768p`。


        不做类型转换：数字形式的提示词、字符串形式的布尔值和小数时长会被拒绝。


        计费取决于视频时长（`duration`），使用 Standard 模型档位。该接口将输出分辨率固定为
        `768p`。提示词优化（`prompt_optimizer`）不影响费用。
      operationId: submit_minimax_hailuo_2_3_standard_text_to_video
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              additionalProperties: true
              properties:
                model:
                  type: string
                  example: minimax/hailuo-2.3/standard/text-to-video
                input:
                  type: object
                  required:
                    - prompt
                  properties:
                    prompt:
                      type: string
                      maxLength: 5000
                      minLength: 1
                      description: 必填的非空字符串，校验前会去除首尾空白。最多 5,000 个 Unicode 字符。
                    duration:
                      type: integer
                      enum:
                        - 6
                        - 10
                      default: 6
                      description: 输出时长（秒）。6 或 10；默认为 6。
                    resolution:
                      type: string
                      enum:
                        - 768p
                      default: 768p
                      description: 该接口固定为 768p。
                    prompt_optimizer:
                      type: boolean
                      description: 可选布尔值，未指定默认值。不使用时省略。不额外收费。
                  additionalProperties: false
                callback_url:
                  type: string
                  nullable: true
                  description: >-
                    可选的公开 HTTP(S) 接口，用于接收任务完成通知。建议使用 HTTPS。省略、传 null
                    或空字符串即可禁用回调。
              description: model 和 callback_url 放在根级。未知的根级字段会被忽略；不支持的 input 字段会被拒绝。
            examples:
              basic:
                summary: 基础工作流程
                value:
                  model: minimax/hailuo-2.3/standard/text-to-video
                  input:
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    duration: 6
                    resolution: 768p
              callback:
                summary: 接收完成回调
                value:
                  model: minimax/hailuo-2.3/standard/text-to-video
                  input:
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    duration: 6
                    resolution: 768p
                  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.