Convert audio file to different format

Initiate a file conversion task using either an audio URL or file upload with optional format parameters and webhook callback.

post/v1/file_convert

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/audio.mp3",
  "target_format": "wav",
  "target_sr": 44100,
  "target_bit_depth": 24,
  "webhook_url": "https://your-webhook-url.com/callback"
}

Response

Successfully initiated file conversion

successboolean
task_idstring
conversion_idstring
output_pathstring
credit_estimatenumber float

Example response

{
  "success": true,
  "task_id": "convert789",
  "conversion_id": "conv456",
  "output_path": "https://storage.example.com/converted/audio.wav",
  "credit_estimate": 100.1
}

Changes

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