# Crop

**What**：Cut out a segment of the audio.

**When**：Use to keep only a part.

## Endpoints
- POST `/api/cqt/generator/suno` (task: `audioCrop`)
- GET `/api/cqt/info/suno?id={taskId}`

## Request params
| Param | Type | Required | Description |
| --- | --- | --- | --- |
| task | string | Yes | Fixed value: audioCrop |
| clipId | string | Yes | Source clip ID |
| cropStartS | number | Yes | Crop start second |
| cropEndS | number | Yes | Crop end second |
| isCropRemove | bool | — | false = keep selection (default) / true = remove selection |

## Request example
```bash
curl -X POST https://api.novapi.ai/api/cqt/generator/suno \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "task":"audioCrop", "clipId":"clip_abc123", "cropStartS":10, "cropEndS":40 }'
# -> { "code":200, "data":"<taskId>" }
```

## OpenAI-style call
This task is also available via `POST /v1/audio/generations` (add `task: "audioCrop"` to the body, write model as suno-v6); poll `GET /v1/audio/generations/{id}`, non-audio results are in `result`.

```bash
curl -X POST https://api.novapi.ai/v1/audio/generations \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "suno",
  "task": "audioCrop",
  "clipId": "clip_abc123",
  "cropStartS": 10,
  "cropEndS": 40
}'
# -> { "id":"audio_<taskId>", "object":"audio.generation", "status":"queued", ... }
# poll: GET https://api.novapi.ai/v1/audio/generations/audio_<taskId>
```
