# "Video sinh từ hình ảnh (chức năng phiên bản nâng cao)"

Nguồn: https://docs.openaihub.net/api-45208872/

> API origin: `https://api.openaihub.net`. Chọn đúng nhóm API và model. Thông số dưới đây là bản tham chiếu kỹ thuật; chưa phải kết quả kiểm thử từng endpoint bằng tài khoản của bạn.


## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /mj/submit/video:
    post:
      summary: Video sinh từ hình ảnh (chức năng phiên bản nâng cao)
      deprecated: false
      description: ''
      operationId: post-mj-submit-video
      tags:
        - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ
        - mj
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - prompt
                - image
              properties:
                base64:
                  type: string
                  description: >-
                    base64 của ảnh gốc; cùng giá trị với ảnh trên máy khách;
                    chuyển tiếp nguyên trạng
                image:
                  type: string
                  description: >-
                    Ảnh gốc ở dạng base64 (tiền tố data URL). Ảnh cơ sở I2V;
                    được truyền nguyên trạng; không được khai báo trong struct
                    backend
                mode:
                  type: string
                  enum:
                    - FAST
                    - RELAX
                    - TURBO
                  enumDetails:
                    - value: NHANH
                      description: mặc định
                    - value: NỚI LỎNG
                    - value: TURBO
                  description: Che do tao (truyen thang). FAST(mac dinh)/RELAX/TURBO
                motion:
                  type: string
                  enum:
                    - low
                    - high
                  enumDetails:
                    - value: thấp
                      description: mặc định
                    - value: cao
                  description: >-
                    Cường độ chuyển động (truyền nguyên trạng). thấp (mặc
                    định)/cao
                notifyHook:
                  type: string
                  description: URL callback; dùng notifyHook toàn cục khi để trống
                prompt:
                  type: string
                  description: nội dung video / mô tả chuyển động
                state:
                  type: string
                  description: >-
                    Chất lượng của hình ảnh sẽ được tạo. `hd` tạo ra hình ảnh có
                    chi tiết sắc nét hơn và tính nhất quán cao hơn. Tham số này
                    chỉ hỗ trợ `dall-e-3`.
                taskId:
                  type: string
                  description: >-
                    Tùy chọn. Đối với video từ một tác vụ MJ hiện có, hãy truyền
                    ID của tác vụ đó (relay-mj.go:690 cần taskId); không cần cho
                    I2V có hình ảnh
              x-apifox-orders:
                - base64
                - image
                - mode
                - motion
                - notifyHook
                - prompt
                - state
                - taskId
              x-apidog-orders:
                - base64
                - image
                - mode
                - motion
                - notifyHook
                - prompt
                - state
                - taskId
            examples: {}
      responses:
        '200':
          description: Được
          content:
            application/json:
              schema:
                type: object
                x-apidog-orders: []
              examples:
                example:
                  summary: example
                  value:
                    code: 1
                    description: thành công
                    result: '1720000000000000'
          headers: {}
          x-apidog-name: Được
        '400':
          description: Yêu cầu không hợp lệ hoặc xác thực thất bại
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - message
                      - type
                    properties:
                      message:
                        type: string
                        description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
                      type:
                        type: string
                        description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
                        examples:
                          - new_api_error
                    x-apifox-orders:
                      - message
                      - type
                    x-apidog-orders:
                      - message
                      - type
                refName: NewApiError
                x-apifox-orders:
                  - error
                x-apidog-orders:
                  - error
              examples:
                example:
                  summary: example
                  value:
                    error:
                      message: >-
                        Yêu cầu không hợp lệ (mã yêu cầu:
                        20260805120000123456789AbCdEfGh)
                      type: new_api_error
          headers: {}
          x-apidog-name: Yêu cầu không hợp lệ hoặc xác thực thất bại
        '401':
          description: Khóa API bị thiếu hoặc không hợp lệ
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - message
                      - type
                    properties:
                      message:
                        type: string
                        description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
                      type:
                        type: string
                        description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
                        examples:
                          - new_api_error
                    x-apifox-orders:
                      - message
                      - type
                    x-apidog-orders:
                      - message
                      - type
                refName: NewApiError
                x-apifox-orders:
                  - error
                x-apidog-orders:
                  - error
              examples:
                example:
                  summary: example
                  value:
                    error:
                      message: >-
                        Mã thông báo không hợp lệ (request id:
                        20260805120000123456789AbCdEfGh)
                      type: new_api_error
          headers: {}
          x-apidog-name: Khóa API bị thiếu hoặc không hợp lệ
      security: []
      x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208872-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
