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

# SeeDreamV4 Image Generation

> Generate images using Volcengine SeeDream V4 model, supports batch generation



## OpenAPI

````yaml /api-reference/image/openapi.json post /v1/images/seedreamv4
openapi: 3.0.3
info:
  title: Images Service API
  description: >-
    AI Image Generation Service API - Provides various AI model image
    generation, task query and history record functions
  version: 1.0.0
  contact:
    name: API Support
servers:
  - url: https://api.tensorslab.com
    description: Development environment
security: []
tags:
  - name: Image Generation
    description: Image generation related interfaces
  - name: Task Management
    description: Task management related interfaces
paths:
  /v1/images/seedreamv4:
    post:
      tags:
        - Image Generation
      summary: SeeDreamV4 Image Generation
      description: >-
        Generate images using Volcengine SeeDream V4 model, supports batch
        generation
      operationId: seeDreamV4
      requestBody:
        required: false
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                category:
                  type: string
                  description: Category identifier, default is seedreamv4
                  default: seedreamv4
                prompt:
                  type: string
                  description: Prompt (required)
                batchsize:
                  type: integer
                  description: Batch generation quantity, 1-15
                  minimum: 1
                  maximum: 15
                  default: 1
                resolution:
                  type: string
                  description: 'Image resolution: 9:16, 16:9, 3:4, 4:3, 1:1'
                  enum:
                    - '9:16'
                    - '16:9'
                    - '3:4'
                    - '4:3'
                    - '1:1'
                sourceImage:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: Source image file
                imageUrl:
                  type: string
                  description: Source image URL
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralResponse'
              examples:
                success:
                  summary: Successful response
                  value:
                    code: 1000
                    msg: Task created successfully
                    data:
                      taskid: abcd_1234567890abcdef
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GeneralResponse:
      type: object
      description: General response
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/GeneralData'
          required:
            - data
    BaseResponse:
      type: object
      description: Base response structure
      properties:
        code:
          type: integer
          description: >-
            Response status code: 1000=Success, 9999=Failure, 9000=Insufficient
            Credits
        msg:
          type: string
          description: Response message
      required:
        - code
        - msg
    GeneralData:
      type: object
      description: General data response
      properties:
        taskid:
          type: string
          description: Task ID, used for subsequent task status query
        url:
          type: string
          description: Generated image URL (returned by some interfaces)
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        API Key authentication, please include the Authorization field in the
        request header

````