> ## 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.

> ## Agent Instructions
> Send API requests to https://api.ttapi.io with the TT-API-KEY header. Midjourney account hosting uses https://hold.ttapi.io. Claude Code uses https://cc.ttapi.io.
> Most generation endpoints are asynchronous. The submit response returns a job id. Poll that product's fetch endpoint, or pass a webhook on the submit request. A fetch call does not start a new generation.
> 1 USD = 100 quota. Check the pricing page for that product before estimating cost.
> This file lists the English docs. Follow every /_llms/ link recursively for the API reference, Chinese, and Russian. Open a page's .md URL for the endpoint schema.

# Изображение-в-изображение

> Изображение-в-изображение - Отправить асинхронную задачу, вернуть id

Эндпоинт изображение-в-изображение **Seedream API генерации изображений**. Преобразование стиля или редактирование на основе одного референсного изображения. Поддержка прозрачного фона (`background: transparent`). Отправьте асинхронную задачу и верните `id`.


## OpenAPI

````yaml openapi/ru/seedream-image-to-image.json POST /sd/api/v3/images/generations/tasks
openapi: 3.1.0
info:
  title: Seedream - Изображение-в-изображение
  version: 1.0.0
  description: >-
    Seedream Изображение-в-изображение API - Преобразование стиля или
    редактирование на основе референсного изображения.
servers:
  - url: https://api.ttapi.io
security: []
paths:
  /sd/api/v3/images/generations/tasks:
    post:
      description: Изображение-в-изображение - Отправить асинхронную задачу, вернуть id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageToImageRequest'
            example:
              model: doubao-seedream-5-0-pro-260628
              prompt: Преобразовать изображение в акварельный стиль
              image: https://example.com/reference.jpg
              size: 2K
              output_format: png
              watermark: false
      responses:
        '200':
          description: Задача успешно отправлена
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: PENDING_QUEUE
                    description: Статус задачи
                  message:
                    type: string
                    example: success
                  id:
                    type: string
                    description: ID задачи
                    example: 30d9b07d-7349-4cbc-8e11-9ba302c6d165
                required:
                  - status
                  - message
                  - id
      security:
        - CustomApiKey: []
components:
  schemas:
    ImageToImageRequest:
      type: object
      description: Изображение-в-изображение параметры запроса
      properties:
        model:
          type: string
          description: Название модели.
          enum:
            - doubao-seedream-5-0-pro-260628
            - doubao-seedream-5-0-flash-260915
          example: doubao-seedream-5-0-pro-260628
        prompt:
          type: string
          description: Текстовый промпт, описывающий намерение редактирования.
        image:
          type: string
          description: >-
            URL референсного изображения. Форматы:
            jpeg/png/webp/bmp/tiff/gif/heic/heif, соотношение сторон [1/16, 16],
            макс. 30МБ.
        size:
          type: string
          description: >-
            Размер изображения. 5.0 pro/flash варианты: 1K, 1.5K, 2K (по
            умолчанию 2K), или пиксели, например `2048x1024`.
          default: 2K
          enum:
            - 1K
            - 1.5K
            - 2K
        output_format:
          type: string
          description: Формат выходного изображения.
          default: jpeg
          enum:
            - png
            - jpeg
        response_format:
          type: string
          description: >-
            Формат ответа. `url` возвращает ссылку на изображение, `b64_json`
            возвращает Base64.
          default: url
          enum:
            - url
            - b64_json
        background:
          type: string
          description: >-
            Настройка прозрачности. `transparent` — прозрачный фон, `opaque` —
            непрозрачный фон.
          default: opaque
          enum:
            - transparent
            - opaque
        watermark:
          type: boolean
          description: >-
            Добавить водяной знак. true=Отображать «AI Generated» в правом
            нижнем углу, false=Не добавлять.
          default: true
          enum:
            - true
            - false
          example: false
        optimize_prompt_options:
          type: object
          description: Конфигурация оптимизации промпта
          properties:
            mode:
              type: string
              enum:
                - standard
                - fast
              default: standard
              description: >-
                Режим оптимизации. standard=стандартный (качество выше, время
                дольше), fast=быстрый (время короче, качество ниже, 5.0 flash не
                поддерживается)
        execution_expires_after:
          type: integer
          default: 172800
          description: >-
            Тайм-аут задачи (сек). Диапазон [3600, 259200] (1-72ч), по умолчанию
            172800 (48ч)
        priority:
          type: integer
          default: 0
          description: >-
            Приоритет выполнения. Диапазон [0, 9], больше = выше приоритет, по
            умолчанию 0 (FIFO)
        safety_identifier:
          type: string
          description: >-
            Уникальный идентификатор пользователя, макс. 64 символа.
            Рекомендуется хэшированная строка
      required:
        - model
        - prompt
        - image
  securitySchemes:
    CustomApiKey:
      type: apiKey
      in: header
      name: TT-API-KEY
      description: >-
        Получите API ключ в <a href='https://dashboard.ttapi.io'
        target='_blank'>TTAPI Дашборд</a>.

````

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