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

# Flux.2 Image Generation

> 32B parameter image generation model from Black Forest Labs with multi-reference support and superior text rendering

<Tip>
  1. After submission, a `task_id` will be returned. If you provided a `callback_url`, when the task status becomes `finished` or `failed`, a POST request will be sent to the `callback_url`.
  2. Regardless of whether `callback_url` is provided, you can retrieve the response result through the unified [Query Task Status](/api-manual/task-management/status) endpoint.
</Tip>

# Flux 2 Image Generation

FLUX.2 is a 32 billion parameter image generation and editing model from Black Forest Labs. It combines text-to-image and multi-image editing in a single architecture, delivering photoreal images with clean typography at resolutions up to 2K. Supports referencing up to 8 images simultaneously with excellent character, product, and style consistency.

## Available Models

* **flux-2-pro** - High-fidelity text-to-image generation for production deployments
* **flux-2-pro-edit** - Advanced multi-reference image editing with up to 8 input images
* **flux-2-flex** - Adjustable speed vs. quality balance for flexible workflows
* **flux-2-flex-edit** - Flexible image editing with multi-reference support


## OpenAPI

````yaml /api-manual/image-series/flux-2.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Flux 2 API
  description: >-
    32B parameter image generation model from Black Forest Labs with
    multi-reference support and superior text rendering
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: Production server
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Flux 2
      summary: Submit Flux 2 Generation Task
      description: >-
        32B parameter image generation and editing model from Black Forest Labs.
        Combines text-to-image and multi-image editing with superior text
        rendering and multi-reference support
      operationId: submitFlux2Task
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              flux-2-pro:
                summary: Flux 2 Pro Image Generation
                value:
                  model: flux-2-pro
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      The jar in image 1 is filled with capsules exactly same as
                      image 2 with the exact logo
                    size: '1:1'
                    resolution: 1K
              flux-2-pro-edit:
                summary: Flux 2 Pro Image Edit
                value:
                  model: flux-2-pro-edit
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: Add colorful flowers in the foreground
                    image_urls:
                      - https://example.com/1.jpg
                      - https://example.com/2.jpg
                    size: '1:1'
                    resolution: 1K
              flux-2-flex:
                summary: Flux 2 Flex Image Generation
                value:
                  model: flux-2-flex
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      The jar in image 1 is filled with capsules exactly same as
                      image 2 with the exact logo
                    size: '1:1'
                    resolution: 1K
              flux-2-flex-edit:
                summary: Flux 2 Flex Image Edit
                value:
                  model: flux-2-flex-edit
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: Add colorful flowers in the foreground
                    image_urls:
                      - https://example.com/1.jpg
                      - https://example.com/2.jpg
                    size: '1:1'
                    resolution: 1K
      responses:
        '200':
          description: Task submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      properties:
        model:
          type: string
          description: Flux 2 model identifier
          enum:
            - flux-2-pro
            - flux-2-pro-edit
            - flux-2-flex
            - flux-2-flex-edit
        callback_url:
          type: string
          format: uri
          description: Webhook callback URL for result notifications
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
            - size
            - resolution
          description: Input parameters for generation
          properties:
            prompt:
              type: string
              description: Generation prompt describing the desired output
              maxLength: 1000
              example: A beautiful sunset over the ocean
            image_urls:
              type: array
              items:
                type: string
                format: uri
              minItems: 1
              maxItems: 8
              description: >-
                Input reference images (1-8 images). Required for edit models
                (flux-2-pro-edit, flux-2-flex-edit)
              example:
                - https://example.com/1.jpg
                - https://example.com/2.jpg
            size:
              type: string
              description: >-
                Image size ratio. Use 'auto' to automatically detect based on
                first input image
              enum:
                - '1:1'
                - '4:3'
                - '3:4'
                - '16:9'
                - '9:16'
                - '3:2'
                - '2:3'
                - auto
              example: '1:1'
            resolution:
              type: string
              description: Output image resolution
              enum:
                - 1K
                - 2K
              example: 1K
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
          description: HTTP status code
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-unified-1757165031-uyujaw3d
              description: Unique task identifier for status tracking
            status:
              type: string
              enum:
                - not_started
              example: not_started
              description: Initial task status
            created_time:
              type: string
              format: date-time
              example: '2025-11-12T10:30:00'
              description: ISO 8601 timestamp when the task was created
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        All API endpoints require Bearer Token authentication


        Get your API Key:


        Visit the [API Key Management
        Page](https://vidgo.ai/apis/dashboard/api-key) to get your API Key


        Add it to the request header:


        ```

        Authorization: Bearer YOUR_API_KEY

        ```

````