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

# Jimeng video generation

> Video generation endpoint in Jimeng official API format.

Use the Action parameter to specify the operation type:
- `CVSync2AsyncSubmitTask`: Submit a video generation task
- `CVSync2AsyncGetResult`: Get task result

Specify Action and Version in the query parameters.




## OpenAPI

````yaml /fr/api-reference/openapi.json post /jimeng/
openapi: 3.0.1
info:
  title: Rock API API de modèles IA
  version: 1.0.0
  description: Référence de l’API de modèles IA compatible OpenAI pour Rock API.
servers:
  - url: https://rockapi.ai
security:
  - BearerAuth: []
tags:
  - name: List models
  - name: OpenAI format (Chat)
  - name: OpenAI format (Responses)
  - name: Image generation
  - name: Image generation/OpenAI-compatible format
  - name: Image generation/Qwen
  - name: Video generation
  - name: Video generation/Sora-compatible format
  - name: Video generation/Kling format
  - name: Video generation/Jimeng format
  - name: Claude format (Messages)
  - name: Gemini format
  - name: OpenAI format (Embeddings)
  - name: Text completions
  - name: OpenAI audio
  - name: Rerank
  - name: Moderations
  - name: Realtime
  - name: Not implemented
  - name: Not implemented/Fine-tunes
  - name: Not implemented/Files
paths:
  /jimeng/:
    post:
      tags:
        - Video generation/Jimeng format
      summary: Jimeng video generation
      description: |
        Video generation endpoint in Jimeng official API format.

        Use the Action parameter to specify the operation type:
        - `CVSync2AsyncSubmitTask`: Submit a video generation task
        - `CVSync2AsyncGetResult`: Get task result

        Specify Action and Version in the query parameters.
      operationId: createJimengVideo
      parameters:
        - name: Action
          in: query
          description: API operation type
          required: true
          schema:
            type: string
            enum:
              - CVSync2AsyncSubmitTask
              - CVSync2AsyncGetResult
        - name: Version
          in: query
          description: API version
          required: true
          example: '2022-08-31'
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              description: Jimeng official API request format
              properties:
                req_key:
                  type: string
                  description: Request type identifier
                prompt:
                  type: string
                  description: Text description
                binary_data_base64:
                  type: array
                  items:
                    type: string
                  description: Base64-encoded image data
            example:
              req_key: jimeng_video_generation
              prompt: A cat playing piano
      responses:
        '200':
          description: Request processed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    description: Response code
                  message:
                    type: string
                    description: Response message
                  data:
                    type: object
                    description: Response data
                    properties: {}
          headers: {}
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              description: Error message
            type:
              type: string
              description: Error type
            param:
              type: string
              description: Related parameter
              nullable: true
            code:
              type: string
              description: Error code
              nullable: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        Authenticate with a Bearer Token.
        Format: `Authorization: Bearer sk-xxxxxx`

````