# File Transcription

**What**：Transcribe a recorded audio file into timestamped text. Submit returns a taskId; poll for the result. On succeeded, resultUrl is the transcription file URL (JSON with text and word-level timestamps, valid 24h).

**When**：Use for meeting recordings, podcasts or long audio. fun-asr-mtl supports multiple languages.

## Endpoints
- POST `/api/cqt/generator/qwen`
- GET `/api/cqt/info/qwen?id={taskId}`

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| model | string | Yes | fun-asr / fun-asr-mtl (multilingual) / qwen3-asr-flash-filetrans |
| audioUrl | string | Yes | Input audio file URL (replaces prompt; ASR has no prompt). |
| duration | integer | Yes | ⚠️ Input audio duration in seconds — drives billing. Default 5; always pass the real length or billing is badly underestimated. |
| webhookUrl | string | — | Completion webhook URL (optional). |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/generator/qwen \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "model": "fun-asr", "audioUrl": "https://cdn.example.com/a.wav", "duration": 60 }'
# -> { "code":200, "data":"<taskId>" }
```

## Response example
```json
{
  "code": 200,
  "data": {
    "id": "<taskId>",
    "status": "succeeded",
    "resultUrl": "https://.../transcription.json",
    "createTime": "2026-06-24 10:00:00",
    "completeTime": "2026-06-24 10:00:20"
  }
}
```
