Skip to content

    API documentation

    Get a Suno generation

    GET/api/v1/suno/generations/{generationId}

    Authentication · x-api-key

    Canonical product view for one Suno generation. It exposes every candidate's submitted/queued/streaming/complete/error lifecycle independently. Use GET /api/v1/tasks/{taskId} for execution and billing diagnostics.

    Scope: task:read

    Billing and effects: Free resource read; no generation purchase.

    Recovery: Read the current resource before retrying a mutation; do not assume this operation supports Idempotency-Key.

    Follow this operation’s workflow → · All permission rules

    Request

    Path parameters

    generationIdpath · Required
    string

    Suno Generation identifier returned by song creation.

    Minimum characters: 1.

    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 · autoFinalizeRequired

      boolean

      Whether this workflow assembles its final output automatically after generation; do not buy a separate finalize while automatic delivery is pending.

    • Response 200 · billingRequired

      object

      Original generation Task credit requirement, net charge and settlement state; null pricing means no readable pricing snapshot was recorded.

      Only the listed fields are accepted in this object.

      5 fields
    • Response 200 · clipsRequired

      array<object>

      Visible generation candidates and any auto-finalized clip; internal preview clips are excluded.

      1 field
      • Response 200 · clips[]Each item

        object

        Only the listed fields are accepted in this object.

        23 fields
        • Response 200 · clips[].accessLevelRequired

          "owned" | "shared" | "external"

          Read projection only. owned returns the full public Clip contract; shared is public or remixable; external is merely readable by clipId. This value does not grant derive or export permission.

        • Response 200 · clips[].audioUrlRequired

          string | null

          Completed/stable audio URL when available; null can coexist with live playback via playback.url. Use playable and playback for listening readiness.

          May be null.

        • Response 200 · clips[].clipIdRequired

          string

          Suno clip identifier (mid); do not substitute an OmnAPI resource identifier.

        • Response 200 · clips[].createdAtRequired

          string | null

          Creation timestamp in the format shown below; JSON date-time values include their timezone.

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

          2 options
        • Response 200 · clips[].deliveryStatusRequired

          "submitted" | "queued" | "streaming" | "complete" | "error"

          Media delivery state, independent of Task execution and quality review. Consume media only when delivery is ready.

        • Response 200 · clips[].durationRequired

          number | null

          Clip duration in seconds. Missing eventually-consistent metadata is repaired on later reads.

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

          2 options
          • Response 200 · Option 1 — numberOption

            number

            Clip duration in seconds. Missing eventually-consistent metadata is repaired on later reads.

            Minimum: 0.

          • Response 200 · Option 2 — nullOption

            null
        • Response 200 · clips[].errorCodeRequired

          string | null

          Machine-readable failure code. Use this for recovery decisions instead of parsing the message.

          May be null.

        • Response 200 · clips[].errorMessageRequired

          string | null

          Human-readable failure explanation. Do not use message wording as a stable programmatic discriminator.

          May be null.

        • Response 200 · clips[].imageUrlRequired

          string | null

          Access URL for this image when available; null means no image is currently exposed.

          May be null.

        • Response 200 · clips[].indexRequired

          number

          Clip's resource index within the generation; index 100 denotes an auto-finalized clip in owned generation results.

          Minimum: 0.

        • Response 200 · clips[].instrumentalRequired

          boolean | null

          Whether instrumental generation was recorded/requested; null when neither metadata nor the originating request establishes it.

          May be null.

        • Response 200 · clips[].majorModelVersionRequired

          string | null

          Exact Suno major_model_version value reported for this clip, for example v4.5-all.

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

          2 options
        • Response 200 · clips[].modelRequired

          string | null

          Compatibility model label. Prefer modelCode, providerModelName and majorModelVersion for unambiguous integrations.

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

          2 options
          • Response 200 · Option 1 — stringOption

            string

            Compatibility model label. Prefer modelCode, providerModelName and majorModelVersion for unambiguous integrations.

          • Response 200 · Option 2 — nullOption

            null
        • Response 200 · clips[].modelCodeRequired

          string | null

          Canonical OmnAPI model code selected for an owned generation. Null when a clip is read directly from Suno without a local task.

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

          2 options
          • Response 200 · Option 1 — stringOption

            string

            Canonical OmnAPI model code selected for an owned generation. Null when a clip is read directly from Suno without a local task.

          • Response 200 · Option 2 — nullOption

            null
        • Response 200 · clips[].playableRequired

          boolean

          Whether this clip currently exposes playable audio. Use playback.url and its delivery state, not audioUrl alone.

        • Response 200 · clips[].playbackRequired

          object

          Current playback instructions. If playable is true, use playback.url directly; it can be available before a permanent audioUrl.

          Only the listed fields are accepted in this object.

          8 fields
          • Response 200 · clips[].playback.deliveryRequired

            "none" | "chunked" | "progressive"

            progressive for completed seekable audio, chunked for live MP3 streaming, none when no audio is ready.

          • Response 200 · clips[].playback.expiresAtRequired

            string | null

            Expiry of this particular resource or receipt, in the format shown below. Do not reuse an expired purchase receipt.

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

            2 options
          • Response 200 · clips[].playback.mimeTypeRequired

            "audio/mpeg" | "audio/mp4" | null

            MIME type of the exposed playback audio (audio/mpeg or audio/mp4), or null before availability/on error.

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

            2 options
          • Response 200 · clips[].playback.retryAfterMsRequired

            number | null

            Suggested delay in milliseconds before checking this playback state again.

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

            2 options
          • Response 200 · clips[].playback.seekableRequired

            boolean

            Whether the currently exposed audio supports seeking. Live audio can be playable without supporting seek.

          • Response 200 · clips[].playback.sessionCreateUrlRequired

            string | null

            Deprecated compatibility field. New integrations should use playback.url directly; no separate playback-session request is needed.

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

            2 options
            • Response 200 · Option 1 — stringOption

              string

              Deprecated compatibility field. New integrations should use playback.url directly; no separate playback-session request is needed.

              Deprecated; omit in new integrations.

            • Response 200 · Option 2 — nullOption

              null
          • Response 200 · clips[].playback.stateRequired

            "preparing" | "live" | "final" | "error" | "unavailable"

            final when completed audio is exposed, live during streaming, preparing before audio is ready, or error on clip failure.

          • Response 200 · clips[].playback.urlRequired

            string | null

            Current playback URL. Live Generation reads provide a temporary URL; final reads provide the completed audio URL. Resolve relative URLs against the API base URL and open them without an API key. A null value means to wait and query the Generation again. Treat the complete URL as private and do not construct or modify it.

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

            2 options
            • Response 200 · Option 1 — stringOption

              string

              Current playback URL. Live Generation reads provide a temporary URL; final reads provide the completed audio URL. Resolve relative URLs against the API base URL and open them without an API key. A null value means to wait and query the Generation again. Treat the complete URL as private and do not construct or modify it.

            • Response 200 · Option 2 — nullOption

              null
        • Response 200 · clips[].promptRequired

          string | null

          Generation prompt for owned clips only. Shared and external clips always return null.

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

          2 options
          • Response 200 · Option 1 — stringOption

            string

            Generation prompt for owned clips only. Shared and external clips always return null.

          • Response 200 · Option 2 — nullOption

            null
        • Response 200 · clips[].providerModelNameRequired

          string | null

          Exact Suno model_name value reported for this clip, for example chirp-hawk.

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

          2 options
        • Response 200 · clips[].roleRequired

          "candidate" | "final"

          candidate for generated alternatives; final for the auto-finalized full-song clip. A normal candidate can itself be a completed playable song.

        • Response 200 · clips[].tagsRequired

          string | null

          Public style tags for owned and shared clips. Null for external clips or before metadata propagation completes.

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

          2 options
          • Response 200 · Option 1 — stringOption

            string

            Public style tags for owned and shared clips. Null for external clips or before metadata propagation completes.

          • Response 200 · Option 2 — nullOption

            null
        • Response 200 · clips[].titleRequired

          string | null

          Song/clip title from stored or provider metadata, or null when unavailable.

          May be null.

        • Response 200 · clips[].updatedAtRequired

          string | null

          Most recent update timestamp in the format shown below.

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

          2 options
        • Response 200 · clips[].videoUrlRequired

          string | null

          Access URL for this video when ready. Null does not itself indicate failure; check delivery and asset status.

          May be null.

    • Response 200 · createdAtRequired

      string

      Creation timestamp in the format shown below; JSON date-time values include their timezone.

      Format: date-time.

    • Response 200 · deliveryStatusRequired

      "submitted" | "queued" | "streaming" | "complete" | "error" | null

      Media delivery state, independent of Task execution and quality review. Consume media only when delivery is ready.

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

      2 options
    • Response 200 · failureReasonRequired

      string | null

      Structured failure information. Use the code for recovery logic and the message for human explanation.

      May be null.

    • Response 200 · finalClipIdRequired

      string | null

      ID of a complete clip with role=final, or null. A normal generation of completed candidate songs need not have a final clip.

      May be null.

    • Response 200 · finalUrlRequired

      string | null

      Final media URL when available; null means no final URL is currently exposed. Follow the resource read for delivery readiness.

      May be null.

    • Response 200 · generationIdRequired

      string

      Canonical OmnAPI Suno product ID. It equals the originating taskId.

    • Response 200 · partialFailureRequired

      boolean

      True when the generation completed with at least one successful clip and at least one failed clip.

    • Response 200 · phaseRequired

      "accepted" | "generating" | "finalizing" | "completed" | "failed"

      accepted before clips exist, generating while producing clips, finalizing while auto-finalization is pending, completed on Task completion, failed for failure/cancellation.

    • Response 200 · progressRequired

      number

      Reported progress from 0 to 100. It is an observation, not an ETA or confirmation that delivery is ready.

      Minimum: 0. Maximum: 100.

    • Response 200 · refundableRequired

      boolean

      Whether the recorded operation is eligible for a refund; this does not confirm that a refund has been settled.

    • Response 200 · retryableRequired

      boolean

      Whether a retry is permitted for the reported failure. Recover an uncertain accepted request with its original key and body first.

    • 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 · updatedAtRequired

      string

      Most recent update timestamp in the format shown below.

      Format: date-time.

    • Response 200 · versionRequired

      number

      Current resource revision. Use it as expectedVersion when updating that resource to detect concurrent edits.

      Minimum: 0.

    • 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
    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

    403 Forbidden

    Forbidden: the API key lacks the required scope or its IP policy rejects this 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 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

    404 Not Found

    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 404 · 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 404 · error.codeRequired

        string

        Application-specific error code (see error catalog)

      • Response 404 · error.messageRequired

        string

        Human readable error message

      • Response 404 · 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 404 · 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

    Workflow and next steps → · Recover an uncertain request

    Interactive API Explorer → · OpenAPI JSON