Idempotency-Keyheader · OptionalUnique 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./api/v1/suno/lyricsAuthentication · x-api-key
Create lyrics without changing the established request contract. candidates=2 succeeds only after both ordered A/B candidates complete. Each completed text resource may include metadata.stylePrompt and compatibility metadata.tags: [stylePrompt]; style expansion is best-effort and never turns completed lyrics into a failed Task. The optional lyricsModel currently accepts only default. Returns a task id — poll GET /api/v1/tasks/{taskId} for the result. Idempotency-Key is optional but recommended for safe client retries. For a synchronous lyrics call, use POST /api/v1/lyrics/generate.
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 rulesIdempotency-Keyheader · OptionalUnique 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.Content-Type: application/json · Required body
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.
promptRequiredPrimary creative or operation instruction.
Maximum characters: 3000.
candidatesOptional1 = single lyrics (default), 2 = paired candidates (LYRICS_PAIR).
configOptionalStandard task configuration: priority, tags, metadata, and webhookUrl.
config.metadataOptionalFree-form caller metadata, echoed back on read. Stored as opaque JSON; the server never mutates it.
config.metadata[key]Each valueKey pattern: ^(.*)$.
config.priorityOptionalTask priority 1-10 (higher = sooner). Default 5.
Minimum: 1. Maximum: 10. Default: 5.
config.webhookUrlOptionalURL to receive task.* lifecycle events via the central webhook service.
Format: uri.
lyricsModelOptionalOnly the stable "default" lyrics model is supported for candidates=2.
Maximum characters: 100.
sourceOptionalOptional caller label retained in Task audit input for candidates=2.
Maximum characters: 100.
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.
Complete JSON example (optional fields may be omitted).
{ "success": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API key" }}application/json
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.
creditsRequiredRequiredCredits required for this operation. A quote is an estimate; an accepted Task records its authorized charge.
Minimum: 0.
linksRequiredRead URLs associated with the accepted operation. Resolve relative paths against the API server.
Only the listed fields are accepted in this object.
links.finalRequiredFinal downloadable output URL when available; null while no final output URL is exposed.
May be null.
links.resourceRequiredURL of the product resource read. Use it to observe media delivery separately from Task execution.
May be null.
links.taskRequiredRelative authenticated Task read URL for following this accepted operation.
pricingRequiredPrice recorded for this operation. Distinguish the accepted charge from final net settlement and any refunds.
Only the listed fields are accepted in this object.
pricing.adjustmentCreditsRequiredchargedCredits - baseCredits
pricing.baseCreditsRequiredStandard quoted credits before customer pricing adjustment
pricing.chargedCreditsRequiredCredits charged for this create request
Minimum: 0.
pricing.quoteVersionRequiredPricing quote version stored with the task
pricing.sourceRequiredPublic pricing source category
pricing.billingIncrementCreditsOptionalSmallest customer charge increment
Minimum: 0.0001.
pricing.calculatedCreditsOptionalPrecise whole-order subtotal before settlement rounding
pricing.settlementPolicyVersionOptionalVersioned customer settlement policy
pricing.settlementRoundingCreditsOptionalWhole-order rounding adjustment added at settlement
Minimum: 0.
productRequiredProduct 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.
product.featureCodeRequiredCanonical Suno feature code selected for this operation, such as song generation or derivation.
product.modelCodeRequiredCanonical Suno model code selected for the Task, separate from the provider model display name.
product.providerCodeRequiredCanonical provider code for this Task's product context, normally suno.
product.resourceIdRequiredProduct resource id when created synchronously
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — stringOptionProduct resource id when created synchronously
Option 2 — nullOptionproduct.typeRequiredProduct resource type associated with the accepted Suno operation; used to choose the matching resource read.
product.autoFinalizeOptionalWhether the product should finalize automatically
product.deliveryStatusOptionalProduct-level delivery status when applicable
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — stringOptionProduct-level delivery status when applicable
Option 2 — nullOptionrequestIdRequiredRequest correlation identifier. Keep it with your Task and idempotency key for support; it is not an idempotency key.
May be null.
statusRequiredState of the object containing this field. Use its listed values; operation acceptance, Task completion and media delivery are separate states.
Default: "PENDING".
taskIdRequiredOperation Task identifier. Save it before polling; a receipt does not mean the operation has completed.
warningCodesRequiredNonfatal findings or delivery fallbacks. Inspect each warning; a warning alone does not imply failure or a refund.
warningCodes[]Each itemestimatedCompletionTimeOptionalEstimated completion time as an RFC 3339 string.
May be null. Use a complete option below; the value must satisfy at least one option.
Option 1 — stringOptionEstimated completion time as an RFC 3339 string.
Format: date-time.
Option 2 — nullOptionapplication/json
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.
errorRequiredStructured 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.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
application/json
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.
errorRequiredStructured 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.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
application/json
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.
errorRequiredStructured 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.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
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 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.
errorRequiredStructured 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.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
application/json
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.
errorRequiredStructured 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.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
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 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.
errorRequiredStructured 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.
error.codeRequiredRATE_LIMITED for request and task admission rejections.
error.messageRequiredHuman-readable explanation. Wording may change; use the machine-readable code for programmatic decisions.
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details.currentOptionalCurrent count for the rate-limit window identified by policy and scope.
Minimum: 0.
error.details.inFlightOptionalCurrent accepted tasks counted against the relevant account or API-key admission limit.
Minimum: 0.
error.details.limitOptionalMaximum count allowed by this response context. A limit is not a throughput guarantee.
Minimum: 0.
error.details.policyOptionalAllowance bucket: query for resource reads, operation for task-producing or operation requests. See the rate-limit response headers.
error.details.retryAfterSecOptionalSuggested delay in seconds before another request. Honor the Retry-After header when present; use bounded backoff.
Minimum: 1.
error.details.scopeOptionalEntity whose allowance was exceeded, such as the user, API key or IP address.
error.details.tierOptionalAccount allowance tier used for this admission or rate-limit decision.
error.details.typeOptionalAdmission limit that rejected the request: rps (continuously refilled requests-per-second bucket), daily or monthly UTC request budget. Interpret with policy, scope and retryAfterSec.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredWhether this response reports a successful action; false accompanies the structured error object.
Default: false.
application/json
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.
errorRequiredStructured 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.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses
application/json
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.
errorRequiredStructured 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.
error.codeRequiredApplication-specific error code (see error catalog)
error.messageRequiredHuman readable error message
error.detailsOptionalOptional error-specific context. Read code first; details keys depend on that code. Unknown keys must not break error handling. See /resources/errors/.
error.details[key]Each valueKey pattern: ^(.*)$.
successRequiredAlways false for error responses