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

# Generations

> Seedream 5.5 text-to-image / image-to-image (OpenAI Images generations).

**Path:** `POST https://api.omniall.ai/v1/images/generations`

Model must be `doubao-seedream-5.5`. Pass reference images with `image` / `images` / `image_urls` / `reference_images`.

Auth: `Authorization: Bearer sk-...`



## OpenAPI

````yaml openapi/jimeng-image.yaml POST /v1/images/generations
openapi: 3.1.0
info:
  title: Omniall AI — Jimeng / Seedream Image
  version: 1.0.0
  description: >-
    Seedream 5.5 via OpenAI-compatible Images API.


    **Generate / image-to-image:** `POST
    https://api.omniall.ai/v1/images/generations`


    Auth: `Authorization: Bearer sk-...`


    Model: `doubao-seedream-5.5` only.


    Pass clarity in `resolution` (`1080p` / `2K`) and aspect ratio in
    `size`/`ratio` (`1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `21:9`). Do not put
    `2K`/`1080p` into `size`.
servers:
  - url: https://api.omniall.ai
security: []
tags:
  - name: Jimeng / Seedream
    description: Seedream 5.5 text-to-image and image-to-image
paths:
  /v1/images/generations:
    post:
      tags:
        - Jimeng / Seedream
      summary: Generations
      description: >-
        Seedream 5.5 text-to-image / image-to-image (OpenAI Images generations).


        **Path:** `POST https://api.omniall.ai/v1/images/generations`


        Model must be `doubao-seedream-5.5`. Pass reference images with `image`
        / `images` / `image_urls` / `reference_images`.


        Auth: `Authorization: Bearer sk-...`
      operationId: jimengCreateImageGeneration
      parameters:
        - name: Authorization
          in: header
          required: true
          schema:
            type: string
            example: Bearer sk-...
          description: Bearer API key, e.g. `Bearer sk-...`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/JimengImageRequest'
            examples:
              text_to_image_2k:
                summary: Text-to-image (2K)
                value:
                  model: doubao-seedream-5.5
                  prompt: >-
                    An orange cat watching rain from a windowsill, warm indoor
                    light, photorealistic
                  'n': 1
                  size: '16:9'
                  resolution: 2K
                  response_format: url
              text_to_image_1080p:
                summary: Text-to-image (1080p)
                value:
                  model: doubao-seedream-5.5
                  prompt: Minimal product still life, white background, soft light
                  'n': 1
                  size: '1:1'
                  resolution: 1080p
                  response_format: url
              with_reference:
                summary: Image-to-image with reference
                value:
                  model: doubao-seedream-5.5
                  prompt: >-
                    Keep the person and outfit; change the background to a night
                    city
                  images:
                    - https://example.com/reference.png
                  size: '9:16'
                  resolution: 2K
                  'n': 1
                  response_format: url
      responses:
        '200':
          description: Image generation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JimengImageResponse'
              example:
                created: 1710000000
                data:
                  - url: https://example.com/image.png
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
        '404':
          description: Model or upstream path unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OpenAIErrorResponse'
components:
  schemas:
    JimengImageRequest:
      type: object
      required:
        - model
        - prompt
      description: Seedream 5.5 generation body (`POST /v1/images/generations`).
      properties:
        model:
          $ref: '#/components/schemas/JimengSeedreamModel'
        prompt:
          type: string
          description: >-
            Text description of the image. Be specific about subject, style,
            lighting, and composition.
          example: >-
            An orange cat watching rain from a windowsill, warm indoor light,
            photorealistic
        'n':
          type: integer
          minimum: 1
          maximum: 1
          description: Number of images. Seedream 5.5 is fixed to `1`.
          default: 1
        resolution:
          type: string
          description: >-
            Clarity tier. Use `1080p` or `2K` (aliases `1080`/`1080P` → `1080p`,
            `2k` → `2K`). Invalid values are rejected. This field is used for
            resolution-tier billing.
          enum:
            - 1080p
            - 2K
          example: 2K
        size:
          type: string
          description: >-
            Aspect ratio only (`1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `21:9`).
            Alias field `ratio` is also accepted. Do not put `2K`/`1080p` here.
          enum:
            - '1:1'
            - '16:9'
            - '9:16'
            - '4:3'
            - '3:4'
            - '21:9'
          example: '16:9'
        ratio:
          type: string
          description: Alias of `size` for aspect ratio.
          enum:
            - '1:1'
            - '16:9'
            - '9:16'
            - '4:3'
            - '3:4'
            - '21:9'
          example: '16:9'
        response_format:
          type: string
          enum:
            - url
            - b64_json
          description: Return image URL(s) or Base64 JSON. Prefer `url`.
          default: url
        watermark:
          type: boolean
          description: Request a watermark when the provider supports this flag.
          default: false
          example: false
        seed:
          type: integer
          description: >-
            Random seed. Same seed + params helps reproducibility when
            supported.
        image:
          oneOf:
            - type: string
              description: Single reference. **Prefer HTTPS URL**; avoid Base64 / data URI.
            - type: array
              items:
                type: string
              description: Array of reference HTTPS URLs.
          description: |-
            Optional reference image(s) for image-to-image.
            - **Recommended:** one HTTPS URL, or a string array of URLs
            - **Not recommended:** Base64 (large bodies often hit 413)
            Upload local files first, then pass the URL.
        images:
          type: array
          items:
            type: string
          description: >-
            Reference image URL array (alias of `image` / `image_urls` /
            `reference_images`).
          example:
            - https://example.com/reference.png
        image_urls:
          type: array
          items:
            type: string
          description: Alias of `images`.
        reference_images:
          type: array
          items:
            type: string
          description: Alias of `images`.
        sequential_image_generation:
          type: string
          description: >-
            Grouped / sequential generation control when supported (e.g. `auto`
            / `disabled`).
          example: disabled
        user:
          type: string
          description: Opaque end-user id for abuse monitoring.
    JimengImageResponse:
      type: object
      description: OpenAI-compatible image response.
      properties:
        created:
          type: integer
          description: Unix timestamp when the image job completed.
        data:
          type: array
          description: Result list.
          items:
            type: object
            properties:
              url:
                type: string
                description: Image URL (`response_format=url`).
              b64_json:
                type: string
                description: Base64 image data (`response_format=b64_json`).
              revised_prompt:
                type: string
                description: Revised prompt when returned by upstream.
    OpenAIErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: string
    JimengSeedreamModel:
      type: string
      description: Seedream / Jimeng model id. Only Seedream 5.5 is available.
      enum:
        - doubao-seedream-5.5
      example: doubao-seedream-5.5

````

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