# "Chỉnh sửa video"

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

> 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:
  /v1/videos/edits:
    post:
      summary: Chỉnh sửa video
      deprecated: false
      description: >-
        Chỉnh sửa video bằng Grok Imagine (`POST /v1/videos/edits`). Được hỗ trợ
        bởi các mô hình grok-imagine-video; thăm dò trạng thái qua `GET
        /v1/videos/{id}`.
      operationId: grok_v1_videos_edits
      tags:
        - >-
          OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Video/hiểu thấu đáo/định dạng chính
          thức
        - Grok
      parameters:
        - name: Content-Type
          in: header
          description: Content-Type của phần thân yêu cầu, thường là application/json
          required: false
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: Khóa API Bearer
          required: false
          example: ''
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
                - resolution
                - aspect_ratio
                - video
              properties:
                aspect_ratio:
                  type: string
                  description: ("1:1" | "16:9" | "9:16" )
                model:
                  type: string
                  description: grok-imagine-video
                prompt:
                  type: string
                  description: từ trong lời nhắc
                resolution:
                  type: string
                  description: ("480p" | "720p")
                video:
                  type: object
                  required:
                    - url
                  properties:
                    url:
                      type: string
                      description: URL tài nguyên
                  description: URL hoặc mã định danh video
                  x-apifox-orders:
                    - url
                  x-apidog-orders:
                    - url
              refName: PostV1VideosEditsRequest
              x-apifox-orders:
                - aspect_ratio
                - model
                - prompt
                - resolution
                - video
              x-apidog-orders:
                - aspect_ratio
                - model
                - prompt
                - resolution
                - video
            examples: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                x-apidog-orders: []
              examples:
                example:
                  summary: example
                  value:
                    aspect_ratio: '16:9'
                    model: grok-imagine-video
                    prompt: Đeo cho người phụ nữ một chiếc vòng cổ bạc.
                    resolution: 480p
                    video:
                      url: >-
                        https://imageproxy.zhongzhuan.chat/api/proxy/image/5dada4bd5c095d1062b79582a51481bf.mp4
          headers: {}
          x-apidog-name: ''
        '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/Video/hiểu thấu đáo/định dạng chính thức
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45209069-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
