# Generate MP4

> Suno v1 has its own task system, different from Suno v2: a submit returns a numeric taskId and results come from the v1 query endpoints; task IDs and result formats are not interchangeable between the two. For the OpenAI-style entry use /v1/audio/generations (model suno_v1).

**What**：Export a song as an MP4 video.

**When**：taskId must be the task ID of a song you submitted through a v1 create endpoint (the system uses it to find the song’s model version). Fetch the result with “Get MP4 result”.

## Endpoints
- Submit task: POST `/api/cqt/suno/v1/generateMp4`
- Query the result (with the returned taskId): GET `/api/cqt/suno/v1/getMp4Result?taskId={taskId}`

> After submitting, poll with the taskId — every 5–10 seconds is enough, no need to hit it every second.

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| taskId | number | Yes | Task ID you received when creating the song. |
| songId | string | Yes | Song clip ID. |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/suno/v1/generateMp4 \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{"taskId":1234567890,"songId":"<clipId>"}'
# -> { "code":200, "msg":"success", "data":{ "taskId":1234567890 } }
```

## Response example
```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": 1234567890
  }
}
```

## Response fields
| Field | Type | Description |
| --- | --- | --- |
| code | number | Business code: 200 = success; see the error notes for the rest. The HTTP status is normally 200. |
| msg | string | Message: success on success, the reason on failure. |
| data.taskId | number | Task ID (a number). Use it with the query endpoint to fetch the result. |

## Common errors
| msg | Meaning |
| --- | --- |
| 系统异常，请稍后重试 | The taskId was not submitted through a v1 create endpoint (no such task in the system); the credits are refunded. |
