> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sinancode.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Flux 2 Pro Image-to-Image

> Edit high-quality images using Flux 2 Pro model (async)

Edit images professionally using [Black Forest Labs](https://bfl.ai)' FLUX.2 Pro model.

**Key Features:**

* **High-Fidelity Editing** - 4MP resolution editing while preserving original details and coherence
* **Natural Language Instructions** - Complete complex edits through text descriptions
* **Multi-Image Fusion** - Blend up to 10 reference images into new compositions
* **Realistic Physics** - 32B parameter model for precise lighting and material handling


## OpenAPI

````yaml /en/openapi.yaml POST /generate/k/flux2-pro-image-to-image
openapi: 3.0.0
info:
  contact:
    email: support@sinancode.com
    name: API Support
    url: https://sinancode.com/support
  description: AI Model Task Scheduling Platform API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://sinancode.com/terms-of-service
  title: TikTomato API
  version: '1.0'
servers:
  - url: https://api.sinancode.com/v1
    description: Production server
security: []
paths:
  /generate/k/flux2-pro-image-to-image:
    post:
      tags:
        - public
      summary: Flux 2 Pro Image-to-Image
      description: Edit high-quality images using Flux 2 Pro model (async)
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ka.CreateFlux2ProImageToImageTaskRequest'
        description: Task parameters
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.CreateTaskResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    ka.CreateFlux2ProImageToImageTaskRequest:
      properties:
        aspect_ratio:
          default: auto
          description: Aspect ratio (optional, default auto)
          enum:
            - '1:1'
            - '4:3'
            - '3:4'
            - '16:9'
            - '9:16'
            - '3:2'
            - '2:3'
            - auto
          example: auto
          type: string
        input_urls:
          description: Input image URL list (required, 1-8 images)
          example:
            - https://example.com/image1.png
            - https://example.com/image2.png
          items:
            type: string
          maxItems: 8
          minItems: 1
          type: array
        prompt:
          description: Prompt (required, 3-5000 characters)
          example: The jar in image 1 is filled with capsules exactly same as image 2
          maxLength: 5000
          minLength: 3
          type: string
        resolution:
          default: 1K
          description: Resolution (optional, default 1K)
          enum:
            - 1K
            - 2K
          example: 1K
          type: string
      required:
        - input_urls
        - prompt
      type: object
    dto.CreateTaskResponse:
      properties:
        task_id:
          description: Task ID
          example: 01234567-89ab-cdef-0123-456789abcdef
          type: string
      required:
        - task_id
      type: object
    apierror.ErrorResponse:
      properties:
        error_code:
          description: Machine-readable error code (e.g., TASK.INVALID_PARAMS)
          type: string
        message:
          description: User-friendly error message
          type: string
      type: object
  securitySchemes:
    AccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Please use your API Token for authentication

````