---
title: "flux-2-klein-4b"
url: "https://docs.api.pruna.ai/apis/models-api-0/versions/7dfbc266-0f94-4c90-8518-d9e4d1a245ec/schemas/flux-2-klein-4b"
---

> Full API specification: https://docs.api.pruna.ai/apis/models-api-0/versions/7dfbc266-0f94-4c90-8518-d9e4d1a245ec.md

# flux-2-klein-4b

AI model for content generation. Rate limit: 150 requests per minute.

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: P-API
  version: 0.3.0
servers:
  - url: https://api.pruna.ai
    description: Production server
components:
  schemas:
    flux-2-klein-4b:
      type: object
      required:
        - input
      properties:
        input:
          type: object
          properties:
            seed:
              title: Seed
              description: Random seed. Set for reproducible generation
              type: integer
            images:
              items:
                type: string
                format: uri
              title: Images
              default: []
              description: List of input images for image-to-image generation. Maximum 5
                images. Must be jpeg, png, gif, or webp.
              type: array
            prompt:
              title: Prompt
              description: Text prompt for image generation.
              type: string
            go_fast:
              title: Go Fast
              default: false
              description: Run faster predictions with additional optimizations.
              type: boolean
            aspect_ratio:
              enum:
                - 1:1
                - 16:9
                - 9:16
                - 3:2
                - 2:3
                - 4:3
                - 3:4
                - 5:4
                - 4:5
                - 21:9
                - 9:21
                - match_input_image
              title: aspect_ratio
              description: Aspect ratio for the generated image. Use 'match_input_image' to
                match the aspect ratio of the first input image.
              default: 1:1
              type: string
            output_format:
              enum:
                - webp
                - jpg
                - png
              title: output_format
              description: Format of the output images
              default: jpg
              type: string
            output_quality:
              title: Output Quality
              default: 95
              maximum: 100
              minimum: 0
              description: Quality when saving the output images, from 0 to 100. 100 is best
                quality, 0 is lowest quality. Not relevant for .png outputs.
              type: integer
            output_megapixels:
              enum:
                - "0.25"
                - "0.5"
                - "1"
                - "2"
                - "4"
              title: output_megapixels
              description: Resolution of the output image in megapixels
              default: "1"
              type: string
            disable_safety_checker:
              title: Disable Safety Checker
              default: false
              description: Disable safety checker for generated images.
              type: boolean
          required:
            - prompt
          additionalProperties: false
      description: "AI model for content generation. Rate limit: 150 requests per minute."
```
