# Generate Sound Effect

**What**：Generate a sound effect (mp3) from a text description.

**When**：Use for ambience and action sound effects in videos / games / animations. No image / video materials.

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

## Sub-models

| model | Usage | Materials | Duration (sec) | Price (credits/sec) |
| --- | --- | --- | --- | --- |
| `elevenlabs-sound-v2` | Sound v2 | prompt (required) | 1~30 | 1.5 |

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| model | string | Yes | Sub-model: elevenlabs-sound-v2 |
| prompt | string | Yes | Sound effect description |
| duration | integer | — | Duration (sec) 1-30, default 5 |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/generator/elevenlabs \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "elevenlabs-sound-v2",
    "prompt": "heavy rain on a tin roof with distant thunder",
    "duration": 5
  }'
# -> { "code":200, "data":"<taskId>" }
```

## Response example
```json
{
  "code": 200,
  "msg": "success",
  "data": {
    "id": "cab61d6001a74bdeb80897dc0eebb5ed",
    "resultUrl": "https://cdn.novapi.ai/elevenlabs/1791950033809_927c5d544d5a470ea114defa6e719889.mp3",
    "status": "succeeded",
    "errorMsg": null,
    "createTime": "2026-10-14 11:53:35",
    "completeTime": "2026-10-14 11:53:54"
  }
}
```

## Response fields
| Field | Type | Description |
| --- | --- | --- |
| code | number | 200 means success |
| data.id | string | Task ID (taskId) |
| data.status | string | queued / running / succeeded / failed |
| data.resultUrl | string | Result URL(s) on our CDN (long-lived); multiple results are comma-separated; null until done or on failure |
| data.errorMsg | string \| null | Failure reason; null on success |
