Cut an audio file between specified timestamps

Trims an audio file using the specified start and end times.

post/v1/audio_cutter

Request

  • Base URL
    https://api.musicgpt.com/api/public
  • Auth
    API key in header Authorization

Request body multipart/form-data

OR

Example request

{
  "audio_url": "https://example.com/input_audio.mp3",
  "start_time": 10500,
  "end_time": 45000,
  "output_extension": "mp3",
  "webhook_url": "http://your-webhook-url.com/callback"
}

Response

Successfully initiated audio cut

successboolean
conversion_idstring
credit_estimatenumber float
conversion_pathstring
messagestring

Example response

{
  "success": true,
  "conversion_id": "conv789",
  "credit_estimate": 25,
  "conversion_path": "https://example.com/trimmed_audio.mp3",
  "message": "Audio trim task queued successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.