# POST /minimax/v1/video_generation

**Method**: `POST`
**Endpoint**: `/minimax/v1/video_generation`

This section contains endpoint-specific behavior, parameters, or usage notes for this API.

## Request Parameters

### Header Parameters

```text
Authorization
string
Optional
Default Value:
Bearer {{YOUR_API_KEY}}
```

### Body Parameters application/json

```text
model
string
Required
  // provider-specific example normalized for English documentation
prompt
string
Required
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
  // provider-specific example normalized for English documentation
duration
integer
Optional
first_frame_image
string
Required
Uses the specified image as the opening frame of the video. Supports public URLs or Base64-encoded data URLs such as data:image/jpeg;base64,....
resolution
enum<string>
Optional
Enum Values:
768P
1080P
prompt_optimizer
boolean
Optional
Whether to optimize the prompt automatically. Defaults to true. Set it to false for more precise control.
Example
{
"model"
:
"string"
,
"prompt"
:
"string"
,
"duration"
:
0
,
"first_frame_image"
:
"string"
,
"resolution"
:
"768P"
,
"prompt_optimizer "
:
true
}
```

## Example Request

### Shell

```bash
curl --location --request POST '/minimax/v1/video_generation' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "string",
    "prompt": "string",
    "duration": 0,
    "first_frame_image": "string",
    "resolution": "768P",
    "prompt_optimizer ": true
}'
```

## Response

### 🟢 200 Success

**Content Type**: `application/json`

#### Response Schema

```text
id
string
Required
```

#### Example

```json
{
    "task_id": "106916112212032",
    "base_resp": {
        "status_code": 0,
        "status_msg": "success"
    }
}
```
