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

# Flux1.1 [pro] ultra · Text to image

> Delivers ultra-fast, ultra high-resolution image creation.

[← Flux](/api-documentation/ai-generation/models/flux)

**Model name:** `flux-pro/v1.1-ultra`\
**Generation type:** `text_to_image`\
**Endpoint:** [`POST /api/asset_generator/`](/api-reference/ai-generation/post-ai-generation)

## Pricing

**1.0** credits per output.

Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.

## Quick start

<CodeGroup>
  ```bash cURL theme={null}
  curl --request POST \
    --url https://api.creatify.ai/api/asset_generator/ \
    --header 'Content-Type: application/json' \
    --header 'X-API-ID: your-api-id' \
    --header 'X-API-KEY: your-api-key' \
    --data '{
      "model_name": "flux-pro/v1.1-ultra",
      "input_params": {
        "prompt": "A product photo of a ceramic mug on a marble counter, soft daylight."
      }
    }'
  ```

  ```python Python theme={null}
  import requests

  response = requests.post(
      "https://api.creatify.ai/api/asset_generator/",
      headers={"X-API-ID": "your-api-id", "X-API-KEY": "your-api-key"},
      json={
          "model_name": "flux-pro/v1.1-ultra",
          "input_params": {
              "prompt": "A product photo of a ceramic mug on a marble counter, soft daylight."
          },
      },
  )
  print(response.json()["id"])
  ```
</CodeGroup>

## Input parameters

Send these fields in `input_params`.

<ParamField body="prompt" type="string" required>
  The prompt to generate an image from.

  Minimum characters: `1`.
  Maximum characters: `2000`.
</ParamField>

<ParamField body="seed" type="integer">
  The same seed and the same prompt given to the same version of the model will output the same image every time.
</ParamField>

<ParamField body="num_images" type="integer" default={1}>
  The number of images to generate.

  Minimum: `1`.
  Maximum: `4`.
</ParamField>

<ParamField body="aspect_ratio" type="string" default={"1:1"}>
  The aspect ratio of the generated image.

  Allowed values: `"21:9"`, `"16:9"`, `"4:3"`, `"3:2"`, `"1:1"`, `"2:3"`, `"3:4"`, `"9:16"`, `"9:21"`.
</ParamField>

<ParamField body="output_format" type="string" default={"jpeg"}>
  The format of the generated image.

  Allowed values: `"jpeg"`, `"png"`.
</ParamField>

<ParamField body="enhance_prompt" type="boolean" default={false}>
  Whether to enhance the prompt for better results.
</ParamField>

<Accordion title="Complete JSON schema">
  ```json theme={null}
  {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "required": [
      "prompt"
    ],
    "properties": {
      "seed": {
        "type": "integer",
        "title": "Seed",
        "description": "The same seed and the same prompt given to the same version of the model will output the same image every time.",
        "x-advance-settings": true
      },
      "prompt": {
        "type": "string",
        "title": "Prompt",
        "maxLength": 2000,
        "minLength": 1,
        "description": "The prompt to generate an image from."
      },
      "num_images": {
        "type": "integer",
        "title": "Num Images",
        "default": 1,
        "maximum": 4,
        "minimum": 1,
        "x-ui-name": "output_nums",
        "description": "The number of images to generate."
      },
      "aspect_ratio": {
        "enum": [
          "21:9",
          "16:9",
          "4:3",
          "3:2",
          "1:1",
          "2:3",
          "3:4",
          "9:16",
          "9:21"
        ],
        "type": "string",
        "title": "Aspect Ratio",
        "default": "1:1",
        "description": "The aspect ratio of the generated image."
      },
      "output_format": {
        "enum": [
          "jpeg",
          "png"
        ],
        "type": "string",
        "title": "Output Format",
        "default": "jpeg",
        "description": "The format of the generated image.",
        "x-advance-settings": true
      },
      "enhance_prompt": {
        "type": "boolean",
        "title": "Enhance Prompt",
        "default": false,
        "description": "Whether to enhance the prompt for better results.",
        "x-advance-settings": true
      }
    }
  }
  ```
</Accordion>

## Response

The request returns the task with `status: "initializing"`. Poll [GET /api/asset\_generator/\{id}/](/api-reference/ai-generation/get-ai-generation-) until `status` is `done` or `failed`, or pass a `webhook_url` to be notified. A finished task lists its files in `assets` and the credits it charged in `credits_used`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.