apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Music Series

POSTRelink Audio URLsPOSTUpsample Style TagsGETGet Style Inspiration SuggestionsPOSTGet MIDIPOSTGet Lyrics TimingPOSTSubmit a Lyrics Generation TaskPOSTGet Lossless WAV AudioPOSTGet MP4 VideoPOSTCrop an Audio ClipPOSTAdd Fade In/OutPOSTAdjust Audio SpeedPOSTRemaster or UpsamplePOSTGet Downbeat AnalysisPOSTReverse Audio PlaybackPOSTGet Waveform Aggregates

Image Series

Video series

Task Management

Error Code ReferenceQuery Task StatusGET

Account Management

Query Quota UsageGET

Docs / Music Series / Suno / Utilities

UtilitiesPOSTSunoFADEclipsuno_fade

Add Fade In/Out

Add fade-in and fade-out effects to a generated clip.

POSThttps://api.apimax.ai/v1/music/fade
Try it
Bearer API KeyJSONServer-side call

Purpose#

Submit a Fade In/Out (FADE) task to add fade-in and fade-out effects to a clip already generated by this service. The API is asynchronous: once validation passes, the service immediately returns a public task_id and does not wait for the task to finish. Poll the task status and results afterwards with GET /v1/tasks/:id.

Provide at least one of fade_in_time and fade_out_time. Both values are in seconds and must be >= 0.

Request Fields#

FieldTypeRequiredDefaultDescription
clip_idstringYes—UUID of the target clip; must come from a previously completed task on this service
fade_in_timenumberConditionally required—Fade-in duration in seconds. Provide at least one of this field and fade_out_time
fade_out_timenumberConditionally required—Fade-out duration in seconds. Provide at least one of this field and fade_in_time
callback_urlstringNo—Callback URL notified when the task reaches a terminal state

clip_id is required; if it is missing, the API returns 400 clip_id_empty. At least one of fade_in_time and fade_out_time must be provided; if both are missing, the API returns 400 fade_time_empty.

callback_url must be a publicly accessible HTTPS address no longer than 2048 characters. Local, internal-network, loopback, and link-local addresses are not allowed, nor are domain names that resolve to such addresses.

When the task completes or fails, the service sends a POST JSON request to this address. The callback receiver must return any 2xx status code within 10 seconds; timeouts, network errors, and non-2xx responses are all treated as failures.

After a failure, retries occur after 1, 2, and 4 seconds respectively, for at most 4 requests in total including the first attempt. The receiver should handle callbacks idempotently by task ID to avoid duplicate processing.

An invalid callback_url does not fail the submission, but the task receives no callback.

Request Example#

cURL
curl --request POST \
  --url https://api.apimax.ai/v1/music/fade \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "clip_id": "1f78f8de-4ca6-4375-ae79-46c33a2c97f7",
    "fade_in_time": 2.0,
    "fade_out_time": 3.0
  }'

Success Response#

200
{
  "created_at": 1795404726,
  "id": "task_mWztg4gtWHPoZpHolDmeb30CWiuwz5Qc",
  "model": "suno_fade",
  "status": "queued",
  "task_id": "task_mWztg4gtWHPoZpHolDmeb30CWiuwz5Qc"
}

Response Fields#

FieldTypeDescription
task_idstringPublic task ID, used for subsequent queries and callbacks
idstringSame value as task_id
statusstringAlways queued right after submission
modelstringModel name, always suno_fade
created_atintegerTask creation time (Unix seconds)

Use task_id for all subsequent queries.

Error Response#

Errors use the structure below, where error.code is the error code and error.message is the specific reason:

400
{
  "error": {
    "code": "plugin_request_invalid",
    "message": "clip_id_empty",
    "type": "max_api_error"
  }
}
HTTPerror.codeerror.messageScenario
400plugin_request_invalidclip_id_emptyclip_id is empty
400plugin_request_invalidfade_time_emptyNeither fade_in_time nor fade_out_time is provided
400plugin_request_invalidfade_time_invalidA fade duration is negative
400invalid_requestThe parse errorThe request body is not a valid JSON object
400upstream_errorclip_id not produced by this poolclip_id is not a clip generated by this service; rejected at submission
503model_not_foundNo available channel (includes group and model name)No channel is currently available

Query Task Results#

After a successful submission, poll using the returned task_id:

  • Single query: GET /v1/tasks/:id

status Enum#

ValueDescription
queuedTask created, waiting to be processed
in_progressTask is being processed
completedTask finished; data is available
failedTask failed; error is available

completed and failed are terminal states; keep polling for any other status.

Response Fields#

FieldTypeDescription
idstringPublic task ID
objectstringAlways task
modelstringModel name, always suno_fade
platform / typestringAlways suno
statusstringTask status; see the enum above
progressintegerProgress percentage, 0–100
created_atintegerSubmission time (Unix seconds)
started_atintegerProcessing start time (Unix seconds); omitted until the task starts
finished_atintegerFinish time (Unix seconds); omitted until the task finishes
data—Task result; returned only when completed, structure described below
errorobjectFailure details; returned only when failed, with code and message

When a task fails, status is failed and the reason is in error.message (for example task_timeout when the upstream times out); the charge is refunded.

Result Fields (data)#

The data field in the query result contains the new clip with fade in/out applied, including its audio URL and other information. The example below shows selected metadata fields only.

json
{
  "created_at": 1795404726,
  "data": [
    {
      "audio_url": "https://cdn2.suno.show/media/export/8f762f27-2c47-4908-b37c-417615c7f36c.mp3",
      "created_at": "2026-11-23T03:32:14.462Z",
      "id": "8f762f27-2c47-4908-b37c-417615c7f36c",
      "image_url": "https://cdn2.suno.ai/image_8f762f27-2c47-4908-b37c-417615c7f36c.jpeg",
      "status": "complete",
      "title": "你在身旁",
      "metadata": {
        "duration": 163.2,
        "edited_clip_id": "a1cfafb6-687a-472d-8493-35d0d621667f",
        "type": "edit_fade"
      }
    }
  ],
  "finished_at": 1795404800,
  "id": "task_mWztg4gtWHPoZpHolDmeb30CWiuwz5Qc",
  "model": "suno_fade",
  "object": "task",
  "platform": "suno",
  "progress": 100,
  "started_at": 1795404726,
  "status": "completed",
  "type": "suno"
}

data[] is an array of the new clips generated by this processing: audio_url / image_url are the resulting audio and cover art URLs, metadata.type is edit_fade, metadata.edited_clip_id points to the source clip, and duration is the length of the new clip in seconds. Field names and structure are subject to the actual response.

Next steps

All docs
Upsample Style TagsPolish and expand style tags and lyrics into a fuller style description.Get Style Inspiration SuggestionsGet random style or inspiration suggestions from the Suno upstream.Method 1: Create a Voice from an Existing SongCreate a vocal voice directly from a song clip already generated in this pool.Upload AudioImport user audio as a Suno-owned clip; returns an async upload task ID. With copyright=true the request switches to the copyright pipeline.Get MIDIRetrieve a MIDI file for a clip generated by this service.Get Lyrics TimingGet the lyric alignment timing of a generated clip.
On this page
OverviewPurposeRequest FieldsRequest ExampleSuccess ResponseResponse FieldsError ResponseQuery Task Resultsstatus EnumResponse FieldsResult Fields (data)Next steps
API

POST /v1/music/fade