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

# seedream-5.0-lite-文生图

> 使用 seedream-5-0-lite-260128 根据文本生成图片。支持单图和连贯组图生成。 对于特定内容请求，请选择 Special-Ns 资源分组。

<Info>
  对于特定内容请求，请选择 **Special-Ns** 资源分组。
</Info>


## OpenAPI

````yaml zh/api-reference/model-api/bytedance/openapi/seedream-5-0-lite-260128-t2i/openapi.yaml POST /v1/images/generations
openapi: 3.1.0
info:
  title: Seedream 5.0 Lite 文生图
  description: 通过 AnyFast 使用 Seedream 5.0 Lite 根据文本生成单图或连贯组图。
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/images/generations:
    post:
      summary: 文生图
      description: >-
        使用 seedream-5-0-lite-260128 根据文本生成图片。支持单图和连贯组图生成。 对于特定内容请求，请选择
        Special-Ns 资源分组。
      operationId: generateSeedream50LiteTextToImageZh
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
              properties:
                model:
                  type: string
                  enum:
                    - seedream-5-0-lite-260128
                  description: 模型 ID。
                  example: seedream-5-0-lite-260128
                prompt:
                  type: string
                  description: 图片生成或编辑提示词。
                  example: 生成四张连贯的电影分镜，展示宇航员维修飞船的过程。
                size:
                  type: string
                  description: 分辨率档位 2K、3K、4K，或受支持的明确像素尺寸。
                  example: 2K
                seed:
                  type: integer
                  format: int32
                  description: 随机种子，用于提高重复请求结果的一致性。
                sequential_image_generation:
                  type: string
                  enum:
                    - auto
                    - disabled
                  default: disabled
                  description: auto 开启连贯组图输出；disabled 只生成一张图片。
                sequential_image_generation_options:
                  type: object
                  description: 组图生成配置，仅在 sequential_image_generation 为 auto 时生效。
                  properties:
                    max_images:
                      type: integer
                      minimum: 1
                      description: 最多生成的图片数量。
                      example: 4
                response_format:
                  type: string
                  enum:
                    - url
                    - b64_json
                  default: url
                  description: 以临时 URL 或 Base64 数据返回图片。URL 将在 24 小时后失效。
                output_format:
                  type: string
                  enum:
                    - png
                    - jpeg
                  default: jpeg
                  description: 生成图片的文件格式。
                watermark:
                  type: boolean
                  default: true
                  description: 是否添加“AI 生成”水印。
                optimize_prompt_options:
                  type: object
                  description: 提示词优化配置。
                  properties:
                    mode:
                      type: string
                      enum:
                        - standard
                      description: Seedream 5.0 Lite 支持 standard 提示词优化模式。
            examples:
              batchGeneration:
                summary: 生成连贯组图
                value:
                  model: seedream-5-0-lite-260128
                  prompt: 生成四张连贯的电影分镜，展示宇航员维修飞船的过程。
                  size: 2K
                  sequential_image_generation: auto
                  sequential_image_generation_options:
                    max_images: 4
                  output_format: png
                  response_format: url
                  watermark: false
      responses:
        '200':
          description: 图片生成成功。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImageGenerationResponse'
        '400':
          description: 请求参数无效或参数值不受支持。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: API 密钥缺失或无效。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: 请求频率超过限制。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ImageGenerationResponse:
      type: object
      properties:
        model:
          type: string
          description: 实际使用的模型。
          example: seedream-5-0-260128
        created:
          type: integer
          description: 任务创建时间，Unix 秒级时间戳。
          example: 1784880000
        data:
          type: array
          description: 生成图片结果。
          items:
            type: object
            properties:
              url:
                type: string
                description: response_format 为 url 时返回的临时图片链接。
                example: https://example.com/generated-image.png
              b64_json:
                type: string
                description: response_format 为 b64_json 时返回的 Base64 图片数据。
              size:
                type: string
                description: 生成图片尺寸。
                example: 2048x2048
        usage:
          type: object
          properties:
            generated_images:
              type: integer
              description: 成功生成的图片数量。
              example: 4
            output_tokens:
              type: integer
              description: 输出消耗量。
            total_tokens:
              type: integer
              description: 总消耗量。
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            type:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````