# "/fal-ai/vidu/reference-to-image"

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

> 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:
  /fal-ai/vidu/reference-to-image:
    post:
      summary: /fal-ai/vidu/reference-to-image
      deprecated: false
      description: >-
        Vui lòng dán nội dung tài liệu cần dịch vào đây. Tôi không thể truy cập
        trực tiếp nội dung từ URL đã cung cấp.
      operationId: fal_ai_fal_ai_vidu_reference_to_image
      tags:
        - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai
        - Fal.ai
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - prompt
                - reference_image_urls
              properties:
                aspect_ratio:
                  type: string
                  description: 'Tỷ lệ hình ảnh, các giá trị liệt kê: 1:1, 16:9, 9:16'
                prompt:
                  type: string
                  description: từ trong lời nhắc
                reference_image_urls:
                  type: array
                  items:
                    type: string
                  description: URL hình ảnh tham khảo
              refName: PostFalAiViduReferenceToImageRequest
              x-apifox-orders:
                - aspect_ratio
                - prompt
                - reference_image_urls
              x-apidog-orders:
                - aspect_ratio
                - prompt
                - reference_image_urls
            examples:
              fal_aividureference_to_image_single:
                value:
                  aspect_ratio: '16:9'
                  prompt: >-
                    Con quỷ nhỏ đang nhìn quả táo trên bãi biển và đi vòng quanh
                    nó.
                  reference_image_urls:
                    - >-
                      https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference1.png
                    - >-
                      https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference2.png
                    - >-
                      https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference3.png
                summary: fal_aividureference_to_image_single
                description: /fal-ai/vidu/reference-to-image
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                x-apidog-orders: []
              examples:
                example:
                  summary: example
                  value:
                    cancel_url: >-
                      https://queue.fal.run/fal-ai/vidu/requests/405a114e-04bd-463a-a98c-895502cfdce9/cancel
                    logs: []
                    metrics: {}
                    queue_position: 0
                    request_id: 405a114e-04bd-463a-a98c-895502cfdce9
                    response_url: >-
                      Vui lòng dán nội dung tài liệu cần dịch vào đây vì tôi
                      không thể truy cập trực tiếp đường dẫn này.
                    status: IN_QUEUE
                    status_url: >-
                      https://queue.fal.run/fal-ai/vidu/requests/405a114e-04bd-463a-a98c-895502cfdce9/status
          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/Hình ảnh/Fal.ai
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208911-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
