Skip to content

    API documentation

    Export clip audio

    POST/api/v1/suno/clips/{clipId}/export

    Authentication · x-api-key

    Export M4A (1 standard credit), MP3 (2), WAV (3), or separated tracks. WAV delivers the requested original clip. Twelve stems cost 140; Extract costs 56. Customer pricing applies to every operation. When managed storage is available, new ordinary audio has a 14-day retention period, extendable through explicitly enabled paid storage; WAV has fixed 180-day retention. Read retainedUntil and urlExpiresAt on returned resources. Refresh private URLs through task or asset reads; signed URLs last 7 days by default and never outlive retention. Existing permanent delivery rights remain valid for the same customer. Never construct or assume permanent download URLs.

    Scope: task:create

    Billing and effects: Paid operation: credits are authorized when the Task is accepted. Review the quote or preflight and save the receipt.

    Recovery: Save one Idempotency-Key with the exact request body before submission. Reuse both after an uncertain response.

    Follow this operation’s workflow → · All permission rules

    Request

    Path parameters

    clipIdpath · Required
    string

    Suno clip identifier returned by a Generation or clip read.

    Request headers

    Idempotency-Keyheader · Optional
    string

    Unique key for one logical write. Retrying the same body with the same key replays the original result; reusing it with a different body returns 409.

    Maximum characters: 255.

    JSON request body

    Content-Type: application/json · Required body

    Export a managed M4A (1 credit), MP3 (2 credits), WAV file, or managed separated stems from an existing clip.

    Export a managed M4A (1 credit), MP3 (2 credits), WAV file, or managed separated stems from an existing clip.

    These groups describe alternative shapes of the same JSON value, not extra wrapper fields. Field names below are actual JSON paths.

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    Use a complete option below; the value must satisfy at least one option.

    • Request · Option 1 — format = "wav"Option

      object

      Only the listed fields are accepted in this object.

      2 fields
      • Request · formatRequired

        "wav"

        Requested output format discriminator.

      • Request · configOptional

        object

        Standard task configuration: priority, tags, metadata, and webhookUrl.

        4 fields
        • Request · config.metadataOptional

          object

          Free-form caller metadata, echoed back on read. Stored as opaque JSON; the server never mutates it.

          1 field
        • Request · config.priorityOptional

          number

          Task priority 1-10 (higher = sooner). Default 5.

          Minimum: 1. Maximum: 10. Default: 5.

        • Request · config.tagsOptional

          array<string>

          Free-form labels for filtering. Up to 20, 100 chars each.

          Maximum items: 20.

          1 field
          • Request · config.tags[]Each item

            string

            Maximum characters: 100.

        • Request · config.webhookUrlOptional

          string

          URL to receive task.* lifecycle events via the central webhook service.

          Format: uri.

    • Request · Option 2 — format = "m4a"Option

      object

      Only the listed fields are accepted in this object.

      2 fields
      • Request · formatRequired

        "m4a"

        Export an M4A audio file. New managed deliveries have a 14-day retention period and renewable signed URLs; existing permanent delivery rights are preserved. Your account pricing applies to separately requested exports. Automatic audio delivery for a Suno creation task has no additional charge.

      • Request · configOptional

        object

        Standard task configuration: priority, tags, metadata, and webhookUrl.

        4 fields
        • Request · config.metadataOptional

          object

          Free-form caller metadata, echoed back on read. Stored as opaque JSON; the server never mutates it.

          1 field
        • Request · config.priorityOptional

          number

          Task priority 1-10 (higher = sooner). Default 5.

          Minimum: 1. Maximum: 10. Default: 5.

        • Request · config.tagsOptional

          array<string>

          Free-form labels for filtering. Up to 20, 100 chars each.

          Maximum items: 20.

          1 field
          • Request · config.tags[]Each item

            string

            Maximum characters: 100.

        • Request · config.webhookUrlOptional

          string

          URL to receive task.* lifecycle events via the central webhook service.

          Format: uri.

    • Request · Option 3 — format = "mp3"Option

      object

      Only the listed fields are accepted in this object.

      2 fields
      • Request · formatRequired

        "mp3"

        2-standard-credit MP3 export. Use the returned URL; do not construct download URLs. For managed assets, inspect retainedUntil and refresh expiring URLs through asset reads.

      • Request · configOptional

        object

        Standard task configuration: priority, tags, metadata, and webhookUrl.

        4 fields
        • Request · config.metadataOptional

          object

          Free-form caller metadata, echoed back on read. Stored as opaque JSON; the server never mutates it.

          1 field
        • Request · config.priorityOptional

          number

          Task priority 1-10 (higher = sooner). Default 5.

          Minimum: 1. Maximum: 10. Default: 5.

        • Request · config.tagsOptional

          array<string>

          Free-form labels for filtering. Up to 20, 100 chars each.

          Maximum items: 20.

          1 field
          • Request · config.tags[]Each item

            string

            Maximum characters: 100.

        • Request · config.webhookUrlOptional

          string

          URL to receive task.* lifecycle events via the central webhook service.

          Format: uri.

    • Request · Option 4 — format = "stems"Option

      object

      Only the listed fields are accepted in this object.

      4 fields
      • Request · formatRequired

        "stems"

        Separated audio tracks.

      • Request · configOptional

        object

        Standard task configuration: priority, tags, metadata, and webhookUrl.

        4 fields
        • Request · config.metadataOptional

          object

          Free-form caller metadata, echoed back on read. Stored as opaque JSON; the server never mutates it.

          1 field
        • Request · config.priorityOptional

          number

          Task priority 1-10 (higher = sooner). Default 5.

          Minimum: 1. Maximum: 10. Default: 5.

        • Request · config.tagsOptional

          array<string>

          Free-form labels for filtering. Up to 20, 100 chars each.

          Maximum items: 20.

          1 field
          • Request · config.tags[]Each item

            string

            Maximum characters: 100.

        • Request · config.webhookUrlOptional

          string

          URL to receive task.* lifecycle events via the central webhook service.

          Format: uri.

      • Request · stemNameOptional

        "Lead Vocal" | "Drum Kit" | "Kick" | "Snare" | "Risers" | "Bass" | "Backing Vocals" | "Piano" | "Electric Guitar" | "Percussion" | "String Section" | "Synth" | "Acoustic Guitar" | "Sound Effects" | "Synth Pad" | "Synth Bass" | "Guitar" | "Brass Section" | "Organ" | "Electronic Drum Kit" | "Lead Electric Guitar" | "Synth Keys" | "Rhythm Electric Guitar" | "Electric Piano" | "Upright Bass" | "Keyboards" | "Distorted Electric Guitar" | "Synth Strings" | "Synth Lead" | "Woodwinds" | "Rhythm Acoustic Guitar" | "Flute" | "Harp" | "Tambourine" | "Trumpet" | "Arpeggiator" | "Accordion" | "Fiddle" | "Pedal Steel Guitar" | "Synth Voice" | "Violin" | "Digital Piano" | "Synth Brass" | "Mandolin" | "Choir" | "Banjo" | "Bells" | "Clarinet" | "Tenor Saxophone" | "Trombone" | "Shaker" | "French Horn" | "Glockenspiel" | "Electric Bass" | "Cello" | "Timpani" | "Harmonica" | "Marimba" | "Vibraphone" | "Lap Steel Guitar" | "Saxophone" | "Orchestra" | "Horns" | "Cymbals" | "Hand Clap" | "Oboe" | "Celesta" | "Congas" | "Drone" | "Alto Saxophone" | "Double Bass" | "Ukulele" | "Harpsichord" | "Baritone Saxophone" | "Xylophone" | "Tuba" | "Bass Guitar" | "Whistle" | "Lead Guitar" | "Rhodes" | "808" | "Bongos" | "Bassoon" | "Cowbell" | "Viola" | "Sitar" | "Steel Drums" | "Piccolo" | "Theremin" | "Bagpipes" | "Hi-Hat" | "Music Box" | "Melodica" | "Tabla" | "Koto" | "Djembe" | "Taiko" | "Didgeridoo"

        Required for stemsMode=extract. Use one exact canonical value from this enum.

      • Request · stemsModeOptional

        "twelve" | "extract"

        twelve = full split (140 standard credits, default); extract = isolate/remove one named stem (56 standard credits). Suno no longer supports two.

    Responses

    Read the HTTP status and body together. A receipt confirms acceptance; poll the returned Task or product view for terminal execution and media delivery. Example IDs and credit amounts are illustrative, not a price quote.

    HTTP 401 · Request rejected; correct the key before retrying

    Complete JSON example (optional fields may be omitted).

    {
    "success": false,
    "error": {
    "code": "INVALID_API_KEY",
    "message": "Invalid API key"
    }
    }
    200 OK

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    Only the listed fields are accepted in this object.

    • Response 200 · creditsRequiredRequired

      number

      Credits required for this operation. A quote is an estimate; an accepted Task records its authorized charge.

      Minimum: 0.

    • Response 200 · pricingRequired

      object

      Price recorded for this operation. Distinguish the accepted charge from final net settlement and any refunds.

      Only the listed fields are accepted in this object.

      9 fields
    • Response 200 · productRequired

      object

      Product context for this Task. Use the resource identifier and product read to follow delivery separately from Task execution.

      Only the listed fields are accepted in this object.

      7 fields
      • Response 200 · product.featureCodeRequired

        string

        Canonical Suno feature code selected for this operation, such as song generation or derivation.

      • Response 200 · product.modelCodeRequired

        string

        Canonical Suno model code selected for the Task, separate from the provider model display name.

      • Response 200 · product.providerCodeRequired

        string

        Canonical provider code for this Task's product context, normally suno.

      • Response 200 · product.resourceIdRequired

        string | null

        Product resource id when created synchronously

        May be null. Use a complete option below; the value must satisfy at least one option.

        2 options
      • Response 200 · product.typeRequired

        string

        Product resource type associated with the accepted Suno operation; used to choose the matching resource read.

      • Response 200 · product.autoFinalizeOptional

        boolean

        Whether the product should finalize automatically

      • Response 200 · product.deliveryStatusOptional

        string | null

        Product-level delivery status when applicable

        May be null. Use a complete option below; the value must satisfy at least one option.

        2 options
    • Response 200 · requestIdRequired

      string | null

      Request correlation identifier. Keep it with your Task and idempotency key for support; it is not an idempotency key.

      May be null.

    • Response 200 · statusRequired

      "PENDING" | "PROCESSING" | "COMPLETED" | "FAILED" | "CANCELLED"

      State of the object containing this field. Use its listed values; operation acceptance, Task completion and media delivery are separate states.

      Default: "PENDING".

    • Response 200 · taskIdRequired

      string

      Operation Task identifier. Save it before polling; a receipt does not mean the operation has completed.

    • Response 200 · warningCodesRequired

      array<string>

      Nonfatal findings or delivery fallbacks. Inspect each warning; a warning alone does not imply failure or a refund.

      1 field
    • Response 200 · estimatedCompletionTimeOptional

      string | null

      Estimated completion time as an RFC 3339 string.

      May be null. Use a complete option below; the value must satisfy at least one option.

      2 options
    400 Bad Request

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 400 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 400 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 400 · error.messageRequired

        string

        Human readable error message

      • Response 400 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 400 · successRequired

      false

      Always false for error responses

    401 Unauthorized

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 401 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 401 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 401 · error.messageRequired

        string

        Human readable error message

      • Response 401 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 401 · successRequired

      false

      Always false for error responses

    402 Payment Required

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 402 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 402 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 402 · error.messageRequired

        string

        Human readable error message

      • Response 402 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 402 · successRequired

      false

      Always false for error responses

    403 Forbidden

    Forbidden: the API key lacks the required scope or its IP policy rejects this request. Forbidden: API-key scope/IP restrictions or billing hold. A positive balance does not bypass payment review. Check GET /api/v1/account/credits billingStatus before further paid requests.

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 403 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 403 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 403 · error.messageRequired

        string

        Human readable error message

      • Response 403 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 403 · successRequired

      false

      Always false for error responses

    422 Unprocessable Entity

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 422 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 422 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 422 · error.messageRequired

        string

        Human readable error message

      • Response 422 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 422 · successRequired

      false

      Always false for error responses

    429 Too Many Requests

    Request allowance or task admission capacity exceeded. Follow Retry-After when present; otherwise wait for active tasks and use bounded backoff. Limits do not guarantee throughput. For SSE, this is the HTTP connection response, not an event.

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 429 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 429 · error.codeRequired

        string

        RATE_LIMITED for request and task admission rejections.

      • Response 429 · error.messageRequired

        string

        Human-readable explanation. Wording may change; use the machine-readable code for programmatic decisions.

      • Response 429 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        9 fields
        • Response 429 · error.details.currentOptional

          integer

          Current count for the rate-limit window identified by policy and scope.

          Minimum: 0.

        • Response 429 · error.details.inFlightOptional

          integer

          Current accepted tasks counted against the relevant account or API-key admission limit.

          Minimum: 0.

        • Response 429 · error.details.limitOptional

          integer

          Maximum count allowed by this response context. A limit is not a throughput guarantee.

          Minimum: 0.

        • Response 429 · error.details.policyOptional

          "operation" | "query"

          Allowance bucket: query for resource reads, operation for task-producing or operation requests. See the rate-limit response headers.

        • Response 429 · error.details.retryAfterSecOptional

          integer

          Suggested delay in seconds before another request. Honor the Retry-After header when present; use bounded backoff.

          Minimum: 1.

        • Response 429 · error.details.scopeOptional

          "user" | "api-key" | "ip" | "apiKey"

          Entity whose allowance was exceeded, such as the user, API key or IP address.

        • Response 429 · error.details.tierOptional

          "FREE" | "PREMIUM" | "ENTERPRISE"

          Account allowance tier used for this admission or rate-limit decision.

        • Response 429 · error.details.typeOptional

          "rps" | "daily" | "monthly"

          Admission limit that rejected the request: rps (continuously refilled requests-per-second bucket), daily or monthly UTC request budget. Interpret with policy, scope and retryAfterSec.

        • Response 429 · error.details[key]Each value

          any JSON value

          Key pattern: ^(.*)$.

    • Response 429 · successRequired

      false

      Whether this response reports a successful action; false accompanies the structured error object.

      Default: false.

    500 Internal Server Error

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 500 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 500 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 500 · error.messageRequired

        string

        Human readable error message

      • Response 500 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 500 · successRequired

      false

      Always false for error responses

    503 Service Unavailable

    application/json

    Required, optional and null

    Required fields apply within their object and selected option. An optional object may be absent; when present, its required fields must be included. Required and nullable are independent: null is allowed only where listed.

    • Response 503 · errorRequired

      object

      Structured failure information. Branch on code, show message, and interpret details only for that code. The request ID is returned in the X-Request-Id header.

      3 fields
      • Response 503 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 503 · error.messageRequired

        string

        Human readable error message

      • Response 503 · error.detailsOptional

        object

        Optional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.

        1 field
    • Response 503 · successRequired

      false

      Always false for error responses

    Workflow and next steps → · Recover an uncertain request

    Interactive API Explorer → · OpenAPI JSON