# Gemini Omni Character

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/omni/character/create:
    post:
      summary: Gemini Omni Character
      deprecated: false
      description: >-
        - image_urls supports 1–2 images (index 0 portrait, index 1 optional
        full-body), each up to 20MB.

        - `audio_ids` must come from the `gemini-omni-audio` endpoint


        ## Create Task


        Use this endpoint to create a new character.


        :::tip

        This endpoint is free.

        :::


        ## Related Resources


        <CardGroup cols={2}>
          <Card title="Model Marketplace" icon="lucide-store" href="/market/quickstart">
            Explore all available models and capabilities
          </Card>
          <Card title="Common API" icon="lucide-cog" href="/common-api/get-account-credits">
            Check account credits and usage
          </Card>
        </CardGroup>
      operationId: gemini-omni-character
      tags:
        - docs/en/Market/Video Models/Gemini Omni
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - descriptions
                - image_urls
              properties:
                descriptions:
                  type: string
                  description: >-
                    Character description used to define the appearance,
                    identity, style, clothing, or personality of the character.
                  examples:
                    - >-
                      A young female character with short silver hair and a
                      futuristic utility jacket, calm, agile, and strongly
                      cyberpunk in style.
                image_urls:
                  type: array
                  maxItems: 2
                  minItems: 1
                  items:
                    type: string
                    format: uri
                  description: >-
                    Array of character reference image URLs. Up to 2 images are
                    supported. Index 0 is the portrait image, and index 1 is the
                    body image. The body image is optional, but if provided, the
                    portrait image must be present at index 0.


                    Image limits:

                    - Each image must be no larger than `20MB`

                    - Use a publicly accessible image URL
                  examples:
                    - - https://example.com/assets/character-portrait.png
                      - https://example.com/assets/character-body.png
                audio_ids:
                  type: array
                  items:
                    type: string
                  description: >-
                    Array of audio IDs generated by the `gemini-omni-audio`
                    endpoint. These can be used to provide voice traits, tone,
                    or persona guidance for the character.
                  examples:
                    - - audio_01hx8p0demo
                character_name:
                  type: string
                  description: Character name
              x-apidog-orders:
                - descriptions
                - image_urls
                - audio_ids
                - character_name
            example:
              description: >-
                A young female character with short silver hair and a futuristic
                utility jacket, calm, agile, and strongly cyberpunk in style.
              image_urls:
                - https://example.com/assets/character-reference.png
              audio_ids:
                - audio_01hx8p0demo
              character_name: Jenny
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      code:
                        type: integer
                        description: >-
                          Status code of the request. The HTTP status is 200
                          even when the request fails, so always check this
                          field: 200 means success; any other value means the
                          request failed and msg describes the reason. Common
                          values: 401 invalid or missing API key; 402
                          insufficient credits; 429 rate limit exceeded; 422 or
                          500 the request could not be processed (read msg and
                          check your parameters before retrying).
                      data:
                        type: object
                        properties:
                          characterName:
                            type: string
                          imageUrl:
                            type: string
                          characterId:
                            type: string
                          bodyImageUrl:
                            type: string
                        x-apidog-orders:
                          - characterId
                          - characterName
                          - imageUrl
                          - bodyImageUrl
                      msg:
                        type: string
                    x-apidog-orders:
                      - code
                      - data
                      - msg
              example:
                code: 200
                msg: success
                data:
                  characterId: b09dbf56...
                  characterName: cute character
                  imageUrl: https://xx.com/profile.png
                  bodyImageUrl: https://xx.com/body.png
          headers: {}
          x-apidog-name: ''
      security:
        - BearerAuth: []
          x-apidog:
            schemeGroups:
              - id: kn8M4YUlc5i0A0179ezwx
                schemeIds:
                  - BearerAuth
            required: true
            use:
              id: kn8M4YUlc5i0A0179ezwx
            scopes:
              kn8M4YUlc5i0A0179ezwx:
                BearerAuth: []
      x-apidog-folder: docs/en/Market/Video Models/Gemini Omni
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1184766/apis/api-36220261-run
components:
  schemas: {}
  securitySchemes:
    BearerAuth:
      type: bearer
      scheme: bearer
      bearerFormat: API Key
      description: >-
        All API requests require a Bearer Token. Add the header `Authorization:
        Bearer YOUR_API_KEY` to authenticate requests.
    BearerAuth1:
      type: bearer
      scheme: bearer
      bearerFormat: API Key
      description: >-
        所有 API 请求都需要 Bearer Token。请在请求头中添加 `Authorization: Bearer YOUR_API_KEY`
        进行身份验证。
servers:
  - url: https://api.kie.ai
    description: 正式环境
security:
  - BearerAuth: []
    x-apidog:
      schemeGroups:
        - id: kn8M4YUlc5i0A0179ezwx
          schemeIds:
            - BearerAuth
      required: true
      use:
        id: kn8M4YUlc5i0A0179ezwx
      scopes:
        kn8M4YUlc5i0A0179ezwx:
          BearerAuth: []

```
