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

# FLUX models

export const APIKeyHint = () => <Note>Follow the <a href="/en/quickstart">quickstart guide</a> to get your own API Key.</Note>;

<APIKeyHint />

The FLUX series represents a family of AI image generation models developed by [Black Forest Labs](https://blackforestlabs.ai/). See the [pricing page](/en/models-and-pricing#image-generation) for pricing details.

**FLUX.1 Schnell**

* Entry-level model in the FLUX series
* Optimized for speed and efficiency
* Balanced performance for general-purpose use

**FLUX.1 dev**

* Developer-focused variant
* Enhanced customization options
* Flexible parameter adjustments

**FLUX.1 pro**

* Professional-grade model
* Highest quality output in the series
* Advanced features and controls

**Previews**

<Tabs>
  <Tab title="FLUX.1 Schnell">
    <img src="https://mintcdn.com/butterflyeffect-3a0f6b4e/XIP_99VNIjc_U1El/image-previews/flux-schnell.webp?fit=max&auto=format&n=XIP_99VNIjc_U1El&q=85&s=1113d52278d5f643f3c50f73dbb45363" width="1024" height="1024" data-path="image-previews/flux-schnell.webp" />
  </Tab>

  <Tab title="FLUX.1 dev">
    <img src="https://mintcdn.com/butterflyeffect-3a0f6b4e/XIP_99VNIjc_U1El/image-previews/flux-dev.webp?fit=max&auto=format&n=XIP_99VNIjc_U1El&q=85&s=7c251c517fa54eedcea9000929b38a21" width="1024" height="1024" data-path="image-previews/flux-dev.webp" />
  </Tab>

  <Tab title="FLUX.1 pro">
    <img src="https://mintcdn.com/butterflyeffect-3a0f6b4e/XIP_99VNIjc_U1El/image-previews/flux-pro.webp?fit=max&auto=format&n=XIP_99VNIjc_U1El&q=85&s=744c5a003cd581e3e865c3c446b0fe56" width="1024" height="768" data-path="image-previews/flux-pro.webp" />
  </Tab>
</Tabs>


## OpenAPI

````yaml POST /v1/image/gen/flux
openapi: 3.1.0
info:
  title: Monica Open API Platform
  version: v1
servers: []
security: []
tags:
  - name: image.v1.ImageGenerationService
    x-displayName: image.v1.ImageGenerationService
  - name: image.v1.ImageToolService
    x-displayName: image.v1.ImageToolService
  - name: text.v1.HumanizeService
    x-displayName: text.v1.HumanizeService
paths:
  /v1/image/gen/flux:
    post:
      tags:
        - image.v1.ImageGenerationService
      summary: FluxImageGeneration
      operationId: image.v1.ImageGenerationService.FluxImageGeneration
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/image.v1.FluxImageGenerationRequest'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/image.v1.FluxImageGenerationResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    image.v1.FluxImageGenerationRequest:
      type: object
      properties:
        model:
          type: string
          examples:
            - flux_dev
          title: model
          enum:
            - flux_pro
            - flux_dev
            - flux_schnell
          description: The Flux model to use for generation.
        prompt:
          type: string
          examples:
            - >-
              black forest gateau cake spelling out the words "FLUX DEV", tasty,
              food photography, dynamic shot
          title: prompt
          maxLength: 4000
          minLength: 1
          description: Text prompt for image generation.
        num_outputs:
          type: integer
          examples:
            - 1
          title: num_outputs
          maximum: 4
          minimum: 1
          format: int32
          description: >-
            Number of images to generate. Supports for flux_dev and
            flux_schnell. Between 1 and 4.
          default: '1'
        size:
          type: string
          examples:
            - 1024x1024
          title: size
          enum:
            - 1024x1024
            - 768x1344
            - 1344x768
          description: The aspect ratio of generated images.
          default: 1024x1024
        seed:
          type: integer
          examples:
            - 42
          title: seed
          maximum: 2147483647
          format: int32
          description: Random seed. Set for reproducible generation.
        steps:
          type: integer
          examples:
            - 25
          title: steps
          maximum: 50
          minimum: 1
          format: int32
          description: >-
            Number of denoising steps. Supports flux_dev and flux_schnell. For
            flux_dev between 1 and 50, with a default value of 28. For
            flux_schnell between 1 and 4, with a default value of 4. For
            flux_pro between 1 and 50, with a default value of 25.
          default: '25'
        guidance:
          type: number
          examples:
            - '3'
          title: guidance
          format: double
          description: >-
            Controls the balance between adherence to the text prompt and image
            quality/diversity. Higher values make the output more closely match
            the prompt but may reduce overall image quality. Lower values allow
            for more creative freedom but might produce results less relevant to
            the prompt. Supports flux_pro and flux_dev. Between 2 and 5 for
            flux_pro. Between 0 and 10 for flux_dev.
          default: '3'
        interval:
          type: integer
          examples:
            - 2
          title: interval
          maximum: 4
          minimum: 1
          format: int32
          description: >-
            Interval is a setting that increases the variance in possible
            outputs letting the model be a tad more dynamic in what outputs it
            may produce in terms of composition, color, detail, and prompt
            interpretation. Setting this value low will ensure strong prompt
            following with more consistent outputs, setting it higher will
            produce more dynamic or varied outputs. Only supports flux_pro.
            Between 1 and 4.
          default: '2'
        safety_tolerance:
          type: integer
          examples:
            - 2
          title: safety_tolerance
          maximum: 6
          minimum: 1
          format: int32
          description: >-
            Safety tolerance, 1 is most strict and 6 is most permissive. Only
            supports flux_pro. Between 1 and 6.
          default: '2'
      title: FluxImageGenerationRequest
      required:
        - model
        - prompt
      additionalProperties: false
    image.v1.FluxImageGenerationResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/image.v1.ImageResponseDataInner'
          title: data
          description: An array of generated image URLs.
      title: FluxImageGenerationResponse
      additionalProperties: false
    image.v1.ImageResponseDataInner:
      type: object
      properties:
        url:
          type: string
          title: url
          description: The URL of the generated image.
      title: ImageResponseDataInner
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````