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

# Moss Image t2i



## OpenAPI

````yaml openapi-spec/moss-image-t2i.json POST /v1/images/generations/async
openapi: 3.1.0
info:
  description: >-
    MOSS Image t2i is a text-to-image model family from OpenMOSS, comprising a
    base model and a curated-data fine-tuned model. In addition to
    natural-language prompts, MOSS-Image supports native text-driven layout
    generation: objects, rendered text, and their spatial positions can be
    specified in a JSON prompt. 
  summary: API for Moss Image t2i model
  title: Moss Image t2i API
  version: 1.0.0
servers:
  - description: Model Verse API Server
    url: https://api.siray.ai
security: []
tags:
  - description: >-
      Moss Image t2i - MOSS Image t2i is a text-to-image model family from
      OpenMOSS, comprising a base model and a curated-data fine-tuned model. In
      addition to natural-language prompts, MOSS-Image supports native
      text-driven layout generation: objects, rendered text, and their spatial
      positions can be specified in a JSON prompt. 
    name: Moss Image t2i
paths:
  /v1/images/generations/async:
    post:
      tags:
        - Moss Image t2i
      summary: Generate image
      description: Generate an image using the Moss Image t2i model
      operationId: image_model-jkz6ldsw5o87cyqa
      requestBody:
        content:
          application/json:
            example:
              aspect_ratio: '1:1'
              model: moss/moss-image-t2i
              output_format: jpg
              prompt: example_value
              size: 1k
            schema:
              description: Request format for image generation models
              properties:
                aspect_ratio:
                  description: Aspect ratio
                  enum:
                    - '1:1'
                    - '1:2'
                    - '2:1'
                    - '1:3'
                    - '3:1'
                    - '2:3'
                    - '3:2'
                    - '3:4'
                    - '4:3'
                    - '4:5'
                    - '5:4'
                    - '9:16'
                    - '16:9'
                    - '9:21'
                    - '21:9'
                  type: string
                model:
                  description: Model name to use for the request
                  enum:
                    - moss/moss-image-t2i
                  type: string
                output_format:
                  description: Output format for the 3D model
                  enum:
                    - jpg
                    - png
                    - webp
                  type: string
                prompt:
                  description: Text prompt for generation
                  type: string
                size:
                  description: Size
                  enum:
                    - 1k
                    - 1.5k
                    - 2k
                  type: string
              required:
                - model
                - prompt
                - size
                - aspect_ratio
              title: Image Generation Request
              type: object
        description: Request payload
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskResponse'
          description: Successful response
      security:
        - bearerAuth: []
components:
  schemas:
    TaskResponse:
      description: Standard async task creation response
      properties:
        code:
          description: Status code returned by the service
          example: success
          type: string
        data:
          description: Response payload containing task details
          properties:
            task_id:
              description: Identifier of the created task
              type: string
          required:
            - task_id
          type: object
        fail_code:
          description: Failure code if the task submission did not succeed
          type: string
        message:
          description: Additional information about the request result
          type: string
      required:
        - data
        - code
        - message
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: API Key
      description: Bearer authentication using API key
      scheme: bearer
      type: http

````

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