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

# Модель Flux.1.1 [pro] Ultra

> Используйте Flux.1.1[pro] Ultra API для генерации AI-изображений высокого разрешения с повышенной детализацией, четкостью и премиальным качеством результата.



## OpenAPI

````yaml openapi/ru/flux.json POST /bfl/v1/flux-pro-1.1-ultra
openapi: 3.1.0
info:
  title: Документация Flux API
  version: 1.0.0
  description: >-
    Сервис TTAPI Flux API, в настоящее время интегрирующий самую совершенную
    большую видеомодель Sora2.
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /bfl/v1/flux-pro-1.1-ultra:
    post:
      description: >-
        Создавайте или редактируйте изображения с помощью модели Flux Pro 1.1
        Ultra на основе текстовых подсказок. <a
        href='https://docs.bfl.ai/api/tasks/generate-an-image-with-flux-11-[pro]-with-ultra-mode-and-optional-raw-mode'
        target='_blank'>Официальная документация</a>
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UltraRequest'
      responses:
        '200':
          $ref: '#/components/responses/SuccessResponse'
        '400':
          $ref: '#/components/responses/400Response'
        '401':
          $ref: '#/components/responses/401Response'
      security:
        - CustomApiKey: []
components:
  schemas:
    UltraRequest:
      type: object
      properties:
        prompt:
          type: string
          description: >-
            Описание изображения. Примечание. Flux поддерживает многоязычное
            понимание, но при тестировании лучше всего подходит английский.
        aspect_ratio:
          type: string
          example: '21:9'
          description: Соотношение сторон
          enum:
            - '21:9'
            - '9:21'
        image_prompt:
          type: string
          description: Референс-изображение в кодировке base64
        raw:
          type: string
          description: >-
            Генерировать изображения с меньшей обработкой и более естественным
            видом. По умолчанию: false
        seed:
          type: string
          description: Случайный исходное значение
        output_format:
          type: string
          description: Формат вывода
          example: jpeg
          enum:
            - jpeg
            - png
        prompt_upsampling:
          type: boolean
          description: Включить улучшение промпта. true - да, false - нет
          example: 'false'
          enum:
            - 'false'
            - 'true'
        safety_tolerance:
          type: integer
          description: >-
            Уровень допуска безопасности для регулировки входа и выхода.
            Диапазон: 0-6, где 0 — самый строгий, а 6 — самый разрешающий. По
            умолчанию: 2
          example: '2'
        webhook_url:
          type: string
          description: URL асинхронного обратный вызов
      required:
        - prompt
  responses:
    SuccessResponse:
      description: Запрос выполнен успешно
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: SUCCESS
              message:
                type: string
                example: success
              data:
                type: object
                example:
                  jobId: jobId
            required:
              - status
              - message
              - data
    400Response:
      description: Ошибка параметров
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: '"prompt" cannot be empty.'
              data:
                type: object
            required:
              - status
              - message
    401Response:
      description: Ошибка авторизации
      content:
        application/json:
          schema:
            type: object
            properties:
              status:
                type: string
                example: FAILED
              message:
                type: string
                example: Wrong TT-API-KEY or email is not activated.
            required:
              - status
              - message
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        Вы можете получить API-ключ в <a href='https://dashboard.ttapi.io'
        target='_blank'>панель управления TTAPI</a>.

````