# Jimeng video generation

`POST /jimeng/`

Video generation endpoint in the native Jimeng API format.

The `Action` parameter selects the operation:
- `CVSync2AsyncSubmitTask`: submit a video generation task
- `CVSync2AsyncGetResult`: fetch the task result

`Action` and `Version` must both be passed as query parameters.

## Authorizations

Bearer authentication — send `Authorization: Bearer <token>`.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Action` | query | string | yes | API action |
| `Version` | query | string | yes | API version |

## Request Body (application/json)

```json
{
  "type": "object",
  "description": "Native Jimeng 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"
    }
  }
}
```

## Responses

### 200 — Request processed

```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "integer",
      "description": "Response code"
    },
    "message": {
      "type": "string",
      "description": "Response message"
    },
    "data": {
      "type": "object",
      "description": "Response data",
      "properties": {}
    }
  }
}
```

### 400 — Invalid request parameters

```json
{
  "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
        }
      }
    }
  }
}
```
