# "/fal-ai/wan/v2.2-a14b/image-to-image"

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

> 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/wan/v2.2-a14b/image-to-image:
    post:
      summary: /fal-ai/wan/v2.2-a14b/image-to-image
      deprecated: false
      description: >-
        Vui lòng dán nội dung tài liệu Markdown cần dịch. 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_wan_v2_2_a14b_image_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:
                - image_url
                - prompt
              properties:
                acceleration:
                  type: string
                  description: >-
                    Tốc độ tạo hình ảnh, giá trị liệt kê: "thông thường", "không
                    có"
                aspect_ratio:
                  type: string
                  description: Kích thước hình ảnh
                enable_prompt_expansion:
                  type: boolean
                  description: Bật phần mở rộng lời nhắc
                enable_safety_checker:
                  type: boolean
                  description: 'Bật các kiểm tra bảo mật, giá trị mặc định: true'
                guidance_scale:
                  type: number
                  description: 'Giá trị phạm vi: 1-10'
                guidance_scale_2:
                  type: integer
                  description: 'Giá trị phạm vi: 1-10'
                image_format:
                  type: string
                  description: 'Định dạng đầu ra của hình ảnh: "jpeg", "png"'
                image_url:
                  type: string
                  description: URL hình ảnh
                num_inference_steps:
                  type: integer
                  description: 'Giá trị phạm vi: 2-40'
                prompt:
                  type: string
                  description: từ trong lời nhắc
                shift:
                  type: integer
                  description: 'Giá trị phạm vi: 1-10'
                strength:
                  type: number
                  description: 'Độ mạnh, phạm vi giá trị: 0-1'
              refName: PostFalAiWanV22A14bImageToImageRequest
              x-apifox-orders:
                - acceleration
                - aspect_ratio
                - enable_prompt_expansion
                - enable_safety_checker
                - guidance_scale
                - guidance_scale_2
                - image_format
                - image_url
                - num_inference_steps
                - prompt
                - shift
                - strength
              x-apidog-orders:
                - acceleration
                - aspect_ratio
                - enable_prompt_expansion
                - enable_safety_checker
                - guidance_scale
                - guidance_scale_2
                - image_format
                - image_url
                - num_inference_steps
                - prompt
                - shift
                - strength
            examples:
              fal_aiwanv22_a14bimage_to_image_single:
                value:
                  acceleration: thông thường
                  aspect_ratio: tự động
                  enable_prompt_expansion: false
                  enable_safety_checker: true
                  guidance_scale: 3.5
                  guidance_scale_2: 4
                  image_format: jpeg
                  image_url: >-
                    https://storage.googleapis.com/falserverless/example_inputs/wan-image-to-image-input.png
                  num_inference_steps: 27
                  prompt: >-
                    Một cảnh quay điện ảnh về một thành phố cổ lúc hoàng hôn,
                    những tòa nhà bằng đá tinh xảo, ánh sáng vàng ấm áp
                  shift: 2
                  strength: 0.5
                summary: fal_aiwanv22_a14bimage_to_image_single
                description: /fal-ai/wan/v2.2-a14b/image-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/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6/cancel
                    logs: []
                    metrics: {}
                    queue_position: 0
                    request_id: f88f1b41-b325-4f23-926b-da51481bf6c6
                    response_url: >-
                      https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6
                    status: IN_QUEUE
                    status_url: >-
                      https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6/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-45208908-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
