prompt (string, required): Lyrics for the replaced segment. If lyrics is also provided, lyrics takes priority for the replaced segment.
tags (string, required): Music style tags, such as jazz, electronic, etc.
title (string, required): Music title
infillStartS (number, required): Start time point for replacement (seconds), 2 decimal places. Must be less than infillEndS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.
infillEndS (number, required): End time point for replacement (seconds), 2 decimal places. Must be greater than infillStartS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.
fullLyrics (string, required): Complete lyrics of the whole song after modification, combining both modified and unmodified lyrics. Distinct from lyrics/prompt, which apply only to the replaced segment.
The following fields are optional controls available for this endpoint:
lyrics (string): Lyrics for the replaced segment. Optional. V6 series maximum 5000 characters. Takes priority over prompt for the replaced segment. Distinct from fullLyrics, which is the complete song lyrics.
negativeTags (string): Excluded music styles, used to avoid specific style elements in the replacement segment
vocalGender (string): Preferred vocal gender. Allowed values: m (male), f (female)
styleWeight (number): Style adherence weight in range 0–1 (recommended two decimals)
weirdnessConstraint (number): Creativity/novelty constraint in range 0–1 (recommended two decimals)
audioWeight (number): Relative weight of audio consistency in range 0–1 (recommended two decimals)
variety (number): Diversity of generated results. Integer from 0–4, default 1. 0 off, 1 normal (default), 2 high, 3 extra, 4 max.
personaId (string): Persona ID or Suno Voice voiceId. If you use a Voice-generated ID, set personaModel to voice_persona.
personaModel (string): Persona type. Use style_persona for Generate Persona IDs, or voice_persona for Suno Voice IDs. Default style_persona.
callBackUrl (string): Callback URL for task completion notification. For detailed callback format, see Replace Music Section Callbacks.
Replacement segments will be regenerated based on the provided lyrics/prompt and tags. Use lyrics (or prompt) for the replaced segment and fullLyrics for the complete song.
Generated replacement segments will automatically blend with the original music’s preceding and following parts
Generated files will be retained for 14 days
Query task status using the same interface as generating music: Get Music Details
Start time point for replacement (seconds), 2 decimal places. Must be less than infillEndS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.
End time point for replacement (seconds), 2 decimal places. Must be greater than infillStartS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.
Complete lyrics of the whole song after modification, combining both modified and unmodified lyrics. Distinct from lyrics (and prompt), which apply only to the replaced segment. This field is the full lyrics text used for the entire song after the section replacement.
Example:
"[Verse 1]\nOriginal lyrics here\n[Chorus]\nModified lyrics for this section\n[Verse 2]\nMore original lyrics"
Lyrics content. Optional. For V6, V6_MINI, and V6_WILD: maximum 5000 characters. Lyrics for the replaced segment only. Distinct from fullLyrics, which is the complete song lyrics.
Persona model type. Optional. style_persona (default) for Generate Persona IDs; voice_persona when personaId is a Suno Voice voiceId. Default style_persona.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Suno API","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://sunoapi.org/logo.png","dark":"https://sunoapi.org/logo.png"},"favicon":"https://mintcdn.com/sunoapiorg/efdUzIovugj6NDSU/favicon.ico?fit=max\u0026auto=format\u0026n=efdUzIovugj6NDSU\u0026q=85\u0026s=9c808a02b0c40b03132ce976e03ddcef","navbar":{"links":[{"href":"mailto:support@sunoapi.org","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://sunoapi.org/dashboard"}},"footer":{},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Home","icon":"house","href":"https://sunoapi.org/"},{"anchor":"Old Docs","icon":"book-open-cover","href":"https://old-docs.sunoapi.org/"}]},"languages":[{"language":"en","href":""},{"language":"cn","href":"cn"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"sunoapiorg","hasAudioNarration":false,"actualSubdomain":"sunoapiorg","customDomains":["docs.sunoapi.org"],"gitSource":{"type":"gitlab","owner":"development","repo":"docs.sunoapi.org","deployBranch":"main","contentDirectory":"","isPrivate":true,"projectId":311,"hostUrl":"https://gitlab.tattooidea.ai","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad43b561fc77c75a5a1cb55","collectionId":"1e85f3fd-a550-4c99-a520-9a5befb93f83","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad43b561fc77c75a5a1cb55"},"entitlements":{},"buildId":"6ad43b561fc77c75a5a1cb55","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"cn","tag":"Generate Music","count":24},{"language":"en","tag":"Generate Music","count":24},{"language":"cn","tag":"Suno Voice","count":9},{"language":"en","tag":"Suno Voice","count":9},{"language":"cn","tag":"Vocal Removal","count":6},{"language":"en","tag":"Vocal Removal","count":6},{"language":"cn","tag":"文件上传API","count":4},{"language":"en","tag":"File Upload API","count":4},{"language":"cn","tag":"WAV Conversion","count":3},{"language":"cn","tag":"Music Video Generation","count":3},{"language":"cn","tag":"Generate Lyrics","count":3},{"language":"en","tag":"WAV Conversion","count":3},{"language":"en","tag":"Music Video Generation","count":3},{"language":"en","tag":"Generate Lyrics","count":3},{"language":"cn","tag":"Generate Sounds","count":1},{"language":"cn","tag":"Account Management","count":1},{"language":"en","tag":"Generate Sounds","count":1},{"language":"en","tag":"Account Management","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"suno-api/replace-section","slug":"/suno-api/replace-section","pageMetadata":{"title":"Replace Music Section","description":"Replace a specific time segment within existing music.","openapi":"suno-api/suno-api.json POST /api/v1/generate/replace-section","href":"/suno-api/replace-section"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Replace a specific time segment within existing music.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`model-versions`,children:`Model Versions`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Current models`}),`: `,_jsx(_components.code,{children:`V6`}),` (default), `,_jsx(_components.code,{children:`V6_WILD`}),`, `,_jsx(_components.code,{children:`V6_MINI`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Deprecated models`}),`: `,_jsx(_components.code,{children:`V5_5`}),`, `,_jsx(_components.code,{children:`V5`}),`, `,_jsx(_components.code,{children:`V4_5PLUS`}),`, `,_jsx(_components.code,{children:`V4_5ALL`}),`, `,_jsx(_components.code,{children:`V4_5`}),`, `,_jsx(_components.code,{children:`V4`})]}),`\n`,_jsx(_components.li,{children:`Deprecated values remain available only for backward compatibility. New integrations should use a V6-series model.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`parameter-usage-guide`,children:`Parameter Usage Guide`}),`\n`,_jsx(_components.p,{children:`This endpoint supports two modes for specifying the source audio:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Mode 1: Replace section using existing audio`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`taskId`}),` and `,_jsx(_components.code,{children:`audioId`}),` are required`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`uploadUrl`}),` and `,_jsx(_components.code,{children:`model`}),` must NOT be provided`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Mode 2: Replace section using uploaded custom audio`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`uploadUrl`}),` and `,_jsx(_components.code,{children:`model`}),` are required`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`taskId`}),` and `,_jsx(_components.code,{children:`audioId`}),` must NOT be provided`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This endpoint always runs in custom mode.`}),`\n`,_jsx(Heading,{level:`3`,id:`common-required-parameters`,children:`Common Required Parameters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`prompt`}),` (string, required): Lyrics for the replaced segment. If `,_jsx(_components.code,{children:`lyrics`}),` is also provided, `,_jsx(_components.code,{children:`lyrics`}),` takes priority for the replaced segment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`tags`}),` (string, required): Music style tags, such as jazz, electronic, etc.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`title`}),` (string, required): Music title`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`infillStartS`}),` (number, required): Start time point for replacement (seconds), 2 decimal places. Must be less than infillEndS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`infillEndS`}),` (number, required): End time point for replacement (seconds), 2 decimal places. Must be greater than infillStartS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`fullLyrics`}),` (string, required): Complete lyrics of the whole song after modification, combining both modified and unmodified lyrics. Distinct from `,_jsx(_components.code,{children:`lyrics`}),`/`,_jsx(_components.code,{children:`prompt`}),`, which apply only to the replaced segment.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`optional-parameters`,children:`Optional Parameters`}),`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:`The following fields are optional controls available for this endpoint:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`lyrics`}),` (string): Lyrics for the replaced segment. Optional. V6 series maximum 5000 characters. Takes priority over `,_jsx(_components.code,{children:`prompt`}),` for the replaced segment. Distinct from `,_jsx(_components.code,{children:`fullLyrics`}),`, which is the complete song lyrics.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`negativeTags`}),` (string): Excluded music styles, used to avoid specific style elements in the replacement segment`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`vocalGender`}),` (string): Preferred vocal gender. Allowed values: `,_jsx(_components.code,{children:`m`}),` (male), `,_jsx(_components.code,{children:`f`}),` (female)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`styleWeight`}),` (number): Style adherence weight in range 0–1 (recommended two decimals)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`weirdnessConstraint`}),` (number): Creativity/novelty constraint in range 0–1 (recommended two decimals)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`audioWeight`}),` (number): Relative weight of audio consistency in range 0–1 (recommended two decimals)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`variety`}),` (number): Diversity of generated results. Integer from 0–4, default 1. `,_jsx(_components.code,{children:`0`}),` off, `,_jsx(_components.code,{children:`1`}),` normal (default), `,_jsx(_components.code,{children:`2`}),` high, `,_jsx(_components.code,{children:`3`}),` extra, `,_jsx(_components.code,{children:`4`}),` max.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`personaId`}),` (string): Persona ID or Suno Voice `,_jsx(_components.code,{children:`voiceId`}),`. If you use a Voice-generated ID, set `,_jsx(_components.code,{children:`personaModel`}),` to `,_jsx(_components.code,{children:`voice_persona`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`personaModel`}),` (string): Persona type. Use `,_jsx(_components.code,{children:`style_persona`}),` for Generate Persona IDs, or `,_jsx(_components.code,{children:`voice_persona`}),` for Suno Voice IDs. Default `,_jsx(_components.code,{children:`style_persona`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`callBackUrl`}),` (string): Callback URL for task completion notification. For detailed callback format, see `,_jsx(_components.a,{href:`/suno-api/replace-section-callbacks`,children:`Replace Music Section Callbacks`}),`.`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`time-range-instructions`,children:`Time Range Instructions`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`infillStartS`}),` must be less than `,_jsx(_components.code,{children:`infillEndS`})]}),`\n`,_jsxs(_components.li,{children:[`Time values are precise to 2 decimal places, e.g., `,_jsx(_components.code,{children:`10.50`}),` seconds`]}),`\n`,_jsxs(_components.li,{children:[`The replacement time must be at least `,_jsx(_components.strong,{children:`10 seconds`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Replacement duration should not exceed `,_jsx(_components.strong,{children:`50%`}),` of the original music’s total duration`]}),`\n`]}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`developer-notes`,children:`Developer Notes`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Replacement segments will be regenerated based on the provided `,_jsx(_components.code,{children:`lyrics`}),`/`,_jsx(_components.code,{children:`prompt`}),` and `,_jsx(_components.code,{children:`tags`}),`. Use `,_jsx(_components.code,{children:`lyrics`}),` (or `,_jsx(_components.code,{children:`prompt`}),`) for the replaced segment and `,_jsx(_components.code,{children:`fullLyrics`}),` for the complete song.`]}),`\n`,_jsx(_components.li,{children:`Generated replacement segments will automatically blend with the original music’s preceding and following parts`}),`\n`,_jsxs(_components.li,{children:[`Generated files will be retained for `,_jsx(_components.strong,{children:`14 days`})]}),`\n`,_jsxs(_components.li,{children:[`Query task status using the same interface as generating music: `,_jsx(_components.a,{href:`/suno-api/get-music-generation-details`,children:`Get Music Details`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Replace Music Section","description":"Replace a specific time segment within existing music.","openapi":"suno-api/suno-api.json POST /api/v1/generate/replace-section","href":"/suno-api/replace-section"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,RequestExample}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`3`,id:`model-versions`,children:`Model Versions`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Current models`}),`: `,_jsx(_components.code,{children:`V6`}),` (default), `,_jsx(_components.code,{children:`V6_WILD`}),`, `,_jsx(_components.code,{children:`V6_MINI`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Deprecated models`}),`: `,_jsx(_components.code,{children:`V5_5`}),`, `,_jsx(_components.code,{children:`V5`}),`, `,_jsx(_components.code,{children:`V4_5PLUS`}),`, `,_jsx(_components.code,{children:`V4_5ALL`}),`, `,_jsx(_components.code,{children:`V4_5`}),`, `,_jsx(_components.code,{children:`V4`})]}),`\n`,_jsx(_components.li,{children:`Deprecated values remain available only for backward compatibility. New integrations should use a V6-series model.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`parameter-usage-guide`,children:`Parameter Usage Guide`}),`\n`,_jsx(_components.p,{children:`This endpoint supports two modes for specifying the source audio:`}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Mode 1: Replace section using existing audio`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`taskId`}),` and `,_jsx(_components.code,{children:`audioId`}),` are required`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`uploadUrl`}),` and `,_jsx(_components.code,{children:`model`}),` must NOT be provided`]}),`\n`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Mode 2: Replace section using uploaded custom audio`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`uploadUrl`}),` and `,_jsx(_components.code,{children:`model`}),` are required`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`taskId`}),` and `,_jsx(_components.code,{children:`audioId`}),` must NOT be provided`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This endpoint always runs in custom mode.`}),`\n`,_jsx(Heading,{level:`3`,id:`common-required-parameters`,children:`Common Required Parameters`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`prompt`}),` (string, required): Lyrics for the replaced segment. If `,_jsx(_components.code,{children:`lyrics`}),` is also provided, `,_jsx(_components.code,{children:`lyrics`}),` takes priority for the replaced segment.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`tags`}),` (string, required): Music style tags, such as jazz, electronic, etc.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`title`}),` (string, required): Music title`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`infillStartS`}),` (number, required): Start time point for replacement (seconds), 2 decimal places. Must be less than infillEndS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`infillEndS`}),` (number, required): End time point for replacement (seconds), 2 decimal places. Must be greater than infillStartS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`fullLyrics`}),` (string, required): Complete lyrics of the whole song after modification, combining both modified and unmodified lyrics. Distinct from `,_jsx(_components.code,{children:`lyrics`}),`/`,_jsx(_components.code,{children:`prompt`}),`, which apply only to the replaced segment.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`optional-parameters`,children:`Optional Parameters`}),`\n`,_jsxs(Note,{children:[_jsx(_components.p,{children:`The following fields are optional controls available for this endpoint:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`lyrics`}),` (string): Lyrics for the replaced segment. Optional. V6 series maximum 5000 characters. Takes priority over `,_jsx(_components.code,{children:`prompt`}),` for the replaced segment. Distinct from `,_jsx(_components.code,{children:`fullLyrics`}),`, which is the complete song lyrics.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`negativeTags`}),` (string): Excluded music styles, used to avoid specific style elements in the replacement segment`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`vocalGender`}),` (string): Preferred vocal gender. Allowed values: `,_jsx(_components.code,{children:`m`}),` (male), `,_jsx(_components.code,{children:`f`}),` (female)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`styleWeight`}),` (number): Style adherence weight in range 0–1 (recommended two decimals)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`weirdnessConstraint`}),` (number): Creativity/novelty constraint in range 0–1 (recommended two decimals)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`audioWeight`}),` (number): Relative weight of audio consistency in range 0–1 (recommended two decimals)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`variety`}),` (number): Diversity of generated results. Integer from 0–4, default 1. `,_jsx(_components.code,{children:`0`}),` off, `,_jsx(_components.code,{children:`1`}),` normal (default), `,_jsx(_components.code,{children:`2`}),` high, `,_jsx(_components.code,{children:`3`}),` extra, `,_jsx(_components.code,{children:`4`}),` max.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`personaId`}),` (string): Persona ID or Suno Voice `,_jsx(_components.code,{children:`voiceId`}),`. If you use a Voice-generated ID, set `,_jsx(_components.code,{children:`personaModel`}),` to `,_jsx(_components.code,{children:`voice_persona`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`personaModel`}),` (string): Persona type. Use `,_jsx(_components.code,{children:`style_persona`}),` for Generate Persona IDs, or `,_jsx(_components.code,{children:`voice_persona`}),` for Suno Voice IDs. Default `,_jsx(_components.code,{children:`style_persona`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(`b`,{children:`callBackUrl`}),` (string): Callback URL for task completion notification. For detailed callback format, see `,_jsx(_components.a,{href:`/suno-api/replace-section-callbacks`,children:`Replace Music Section Callbacks`}),`.`]}),`\n`]})]}),`\n`,_jsx(Heading,{level:`3`,id:`time-range-instructions`,children:`Time Range Instructions`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`infillStartS`}),` must be less than `,_jsx(_components.code,{children:`infillEndS`})]}),`\n`,_jsxs(_components.li,{children:[`Time values are precise to 2 decimal places, e.g., `,_jsx(_components.code,{children:`10.50`}),` seconds`]}),`\n`,_jsxs(_components.li,{children:[`The replacement time must be at least `,_jsx(_components.strong,{children:`10 seconds`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Replacement duration should not exceed `,_jsx(_components.strong,{children:`50%`}),` of the original music’s total duration`]}),`\n`]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`Replace using existing audio`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"taskId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2fac****9f72\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"audioId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e231****-****-****-****-****8cadc7dc\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A calm and relaxing piano track.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jazz\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Relaxing Piano\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"negativeTags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Rock\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"infillStartS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"infillEndS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20.75`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fullLyrics\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"[Verse 1]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Original lyrics here`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`[Chorus]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Modified lyrics for this section`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`[Verse 2]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`More original lyrics\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callBackUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/callback\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Replace using uploaded audio`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"uploadUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/audio.mp3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"V6\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A calm and relaxing piano track.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"tags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jazz\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Relaxing Piano\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"negativeTags\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Rock\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"infillStartS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"infillEndS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`20.75`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fullLyrics\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"[Verse 1]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Original lyrics here`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`[Chorus]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Modified lyrics for this section`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`[Verse 2]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`More original lyrics\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"callBackUrl\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/callback\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`developer-notes`,children:`Developer Notes`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Replacement segments will be regenerated based on the provided `,_jsx(_components.code,{children:`lyrics`}),`/`,_jsx(_components.code,{children:`prompt`}),` and `,_jsx(_components.code,{children:`tags`}),`. Use `,_jsx(_components.code,{children:`lyrics`}),` (or `,_jsx(_components.code,{children:`prompt`}),`) for the replaced segment and `,_jsx(_components.code,{children:`fullLyrics`}),` for the complete song.`]}),`\n`,_jsx(_components.li,{children:`Generated replacement segments will automatically blend with the original music’s preceding and following parts`}),`\n`,_jsxs(_components.li,{children:[`Generated files will be retained for `,_jsx(_components.strong,{children:`14 days`})]}),`\n`,_jsxs(_components.li,{children:[`Query task status using the same interface as generating music: `,_jsx(_components.a,{href:`/suno-api/get-music-generation-details`,children:`Get Music Details`})]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Replace Music Section","description":"Replace a specific time segment within existing music.","openapi":"suno-api/suno-api.json POST /api/v1/generate/replace-section","href":"/suno-api/replace-section"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Model Versions","slug":"model-versions","depth":3,"children":[]},{"title":"Parameter Usage Guide","slug":"parameter-usage-guide","depth":3,"children":[]},{"title":"Common Required Parameters","slug":"common-required-parameters","depth":3,"children":[]},{"title":"Optional Parameters","slug":"optional-parameters","depth":3,"children":[]},{"title":"Time Range Instructions","slug":"time-range-instructions","depth":3,"children":[]},{"title":"Developer Notes","slug":"developer-notes","depth":3,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"Replace using existing audio","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"taskId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2fac****9f72\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"audioId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"e231****-****-****-****-****8cadc7dc\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A calm and relaxing piano track.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"tags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Jazz\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Relaxing Piano\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"negativeTags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Rock\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"infillStartS\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10.5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"infillEndS\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">20.75\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fullLyrics\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"[Verse 1]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">Original lyrics here\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">[Chorus]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">Modified lyrics for this section\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">[Verse 2]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">More original lyrics\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"callBackUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/callback\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Replace using uploaded audio","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"uploadUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/audio.mp3\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"model\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"V6\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"prompt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"A calm and relaxing piano track.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"tags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Jazz\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Relaxing Piano\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"negativeTags\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Rock\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"infillStartS\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10.5\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"infillEndS\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">20.75\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fullLyrics\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"[Verse 1]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">Original lyrics here\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">[Chorus]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">Modified lyrics for this section\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">[Verse 2]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\n\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">More original lyrics\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"callBackUrl\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/callback\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"replace-section","summary":"Replace Music Section","description":"Replace a specific time segment within existing music.","requestBody":"18e4bc94-b6db-4314-8bf8-bd1ce085cfe9","responses":{"200":"4fc4ee0a-743b-437f-a306-979815097451","500":"2b55caf1-7389-44e4-80d1-3e738d96f15b"},"callbacks":{"audioGenerated":"b14d5488-3d36-4cc0-896c-c8b378d6278e"},"method":"post","type":"path","servers":["70e1645d-2722-4ecd-9381-477ef0fe62c3"],"security":["6d3fe124-63a0-4ab3-9da2-de439119be05"],"path":"/api/v1/generate/replace-section","baseUrlOptions":["https://apibox.erweima.ai"],"title":"Replace Music Section","codeSamples":[],"requiredOnlyExamples":false,"requestExamples":[{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"12","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"taskId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"2fac****9f72\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"audioId\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"e231****-****-****-****-****8cadc7dc\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"prompt\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"A calm and relaxing piano track.\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"tags\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Jazz\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"title\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Relaxing Piano\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"negativeTags\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Rock\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"infillStartS\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"10.5"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"infillEndS\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"20.75"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"fullLyrics\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"[Verse 1]"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"Original lyrics here"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"[Chorus]"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"Modified lyrics for this section"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"[Verse 2]"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"More original lyrics\""}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"callBackUrl\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://example.com/callback\""}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Replace using existing audio"},{"dropdown":false,"language":"json","code":{"type":"pre","key":null,"ref":null,"props":{"className":"shiki shiki-themes github-light-default dark-plus","style":{"backgroundColor":"#ffffff","--shiki-dark-bg":"#0B0C0E","color":"#1f2328","--shiki-dark":"#D4D4D4"},"language":"json","children":{"type":"code","key":null,"ref":null,"props":{"language":"json","numberOfLines":"12","children":[{"type":"span","key":"0","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"{"}}}},"\n",{"type":"span","key":"2","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"uploadUrl\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://example.com/audio.mp3\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"4","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"model\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"V6\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"6","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"prompt\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"A calm and relaxing piano track.\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"8","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"tags\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Jazz\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"10","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"title\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Relaxing Piano\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"12","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"negativeTags\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"Rock\""}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"14","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"infillStartS\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"10.5"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"16","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"infillEndS\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0550AE","--shiki-dark":"#B5CEA8"},"children":"20.75"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"18","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"fullLyrics\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"[Verse 1]"}},{"type":"span","key":"3","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"4","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"Original lyrics here"}},{"type":"span","key":"5","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"6","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"[Chorus]"}},{"type":"span","key":"7","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"8","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"Modified lyrics for this section"}},{"type":"span","key":"9","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"10","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"[Verse 2]"}},{"type":"span","key":"11","ref":null,"props":{"style":{"color":"#CF222E","--shiki-dark":"#D7BA7D"},"children":"\\n"}},{"type":"span","key":"12","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"More original lyrics\""}},{"type":"span","key":"13","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":","}}]}},"\n",{"type":"span","key":"20","ref":null,"props":{"className":"line","children":[{"type":"span","key":"0","ref":null,"props":{"style":{"color":"#116329","--shiki-dark":"#9CDCFE"},"children":" \"callBackUrl\""}},{"type":"span","key":"1","ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":": "}},{"type":"span","key":"2","ref":null,"props":{"style":{"color":"#0A3069","--shiki-dark":"#CE9178"},"children":"\"https://example.com/callback\""}}]}},"\n",{"type":"span","key":"22","ref":null,"props":{"className":"line","children":{"type":"span","key":null,"ref":null,"props":{"style":{"color":"#1F2328","--shiki-dark":"#D4D4D4"},"children":"}"}}}},"\n"]}}}},"filename":"Replace using uploaded audio"}],"requestExampleType":"mdx","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Replace section using existing audio","required":["prompt","tags","title","infillStartS","infillEndS","fullLyrics","taskId","audioId"],"properties":{"taskId":{"type":"string","description":"Original task ID (parent task), used to identify the source music for section replacement.","example":"2fac****9f72","isRequired":true,"uniqueKey":"oneOf.0.taskId","typeLabel":"string"},"audioId":{"type":"string","description":"Unique identifier of the audio track to replace. This ID is returned in the callback data after music generation completes.","example":"e231****-****-****-****-****8cadc7dc","isRequired":true,"uniqueKey":"oneOf.0.audioId","typeLabel":"string"},"prompt":{"type":"string","description":"Lyrics for the replaced segment. Required. If `lyrics` is also provided, `lyrics` takes priority for the replaced segment.","example":"A calm and relaxing piano track.","isRequired":true,"uniqueKey":"oneOf.0.prompt","typeLabel":"string"},"tags":{"type":"string","description":"Music style tags, such as jazz, electronic, etc.","example":"Jazz","isRequired":true,"uniqueKey":"oneOf.0.tags","typeLabel":"string"},"title":{"type":"string","description":"Music title","example":"Relaxing Piano","isRequired":true,"uniqueKey":"oneOf.0.title","typeLabel":"string"},"infillStartS":{"type":"number","description":"Start time point for replacement (seconds), 2 decimal places. Must be less than infillEndS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.","minimum":0,"example":10.5,"isRequired":true,"uniqueKey":"oneOf.0.infillStartS","typeLabel":"number"},"infillEndS":{"type":"number","description":"End time point for replacement (seconds), 2 decimal places. Must be greater than infillStartS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.","minimum":0,"example":20.75,"isRequired":true,"uniqueKey":"oneOf.0.infillEndS","typeLabel":"number"},"fullLyrics":{"type":"string","description":"Complete lyrics of the whole song after modification, combining both modified and unmodified lyrics. Distinct from `lyrics` (and `prompt`), which apply only to the replaced segment. This field is the full lyrics text used for the entire song after the section replacement.","example":"[Verse 1]\nOriginal lyrics here\n[Chorus]\nModified lyrics for this section\n[Verse 2]\nMore original lyrics","isRequired":true,"uniqueKey":"oneOf.0.fullLyrics","typeLabel":"string"},"lyrics":{"type":"string","description":"Lyrics content. Optional. For V6, V6_MINI, and V6_WILD: maximum 5000 characters. Lyrics for the replaced segment only. Distinct from `fullLyrics`, which is the complete song lyrics.","example":"[Verse] Night city lights shining bright","uniqueKey":"oneOf.0.lyrics","typeLabel":"string"},"negativeTags":{"type":"string","description":"Excluded music styles, used to avoid specific style elements in the replacement segment","example":"Rock","uniqueKey":"oneOf.0.negativeTags","typeLabel":"string"},"vocalGender":{"type":"string","description":"Preferred vocal gender. Optional. Allowed values: `m` (male), `f` (female).","enum":["m","f"],"example":"m","uniqueKey":"oneOf.0.vocalGender","typeLabel":"enum\u003cstring>"},"styleWeight":{"type":"number","description":"Style adherence weight. Optional. Range 0–1, up to 2 decimal places.","minimum":0,"maximum":1,"multipleOf":0.01,"example":0.65,"uniqueKey":"oneOf.0.styleWeight","typeLabel":"number"},"weirdnessConstraint":{"type":"number","description":"Creativity/novelty constraint. Optional. Range 0–1, up to 2 decimal places.","minimum":0,"maximum":1,"multipleOf":0.01,"example":0.65,"uniqueKey":"oneOf.0.weirdnessConstraint","typeLabel":"number"},"audioWeight":{"type":"number","description":"Relative weight of audio consistency versus other controls. Optional. Range 0–1, up to 2 decimal places.","minimum":0,"maximum":1,"multipleOf":0.01,"example":0.65,"uniqueKey":"oneOf.0.audioWeight","typeLabel":"number"},"variety":{"type":"number","description":"Controls the diversity and stylistic variation of generated results. Optional. Integer from 0–4, default 1.\n\n- **`0`**: off (exact style) — fully off, strictly the same style\n- **`1`**: normal (balanced variety) — default, balances stability and diversity\n- **`2`**: high (distinct styles) — produces results with clearly different styles\n- **`3`**: extra (bold exploration) — higher variation, encourages bold exploration of different styles\n- **`4`**: max (unreasonably varied) — maximum diversity; results may differ in style very significantly","minimum":0,"maximum":4,"multipleOf":1,"default":1,"example":1,"uniqueKey":"oneOf.0.variety","typeLabel":"number"},"personaId":{"type":"string","description":"Persona ID or Voice ID to apply to the generated music. Optional. When using a Voice-generated ID, set `personaModel` to `voice_persona`.","example":"persona_123","uniqueKey":"oneOf.0.personaId","typeLabel":"string"},"personaModel":{"type":"string","description":"Persona model type. Optional. `style_persona` (default) for Generate Persona IDs; `voice_persona` when `personaId` is a Suno Voice `voiceId`. Default `style_persona`.","enum":["style_persona","voice_persona"],"default":"style_persona","example":"style_persona","uniqueKey":"oneOf.0.personaModel","typeLabel":"enum\u003cstring>"},"callBackUrl":{"type":"string","format":"uri","description":"Callback URL for task completion. The system will send a POST request to this URL when replacement is complete, containing task status and results.\n\n- Your callback endpoint should be able to accept POST requests containing JSON payloads with replacement results\n- For detailed callback format and implementation guide, see [Replace Music Section Callbacks](/suno-api/replace-section-callbacks)\n- Alternatively, you can use the get music details interface to poll task status","example":"https://example.com/callback","uniqueKey":"oneOf.0.callBackUrl","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.0","typeLabel":"Replace section using existing audio · object"},{"type":"object","title":"Replace section using uploaded custom audio","required":["prompt","tags","title","infillStartS","infillEndS","fullLyrics","uploadUrl","model"],"properties":{"uploadUrl":{"type":"string","format":"uri","description":"URL of the custom audio uploaded by the user.","example":"https://example.com/audio.mp3","isRequired":true,"uniqueKey":"oneOf.1.uploadUrl","typeLabel":"string\u003curi>"},"model":{"type":"string","description":"AI model version. Default: `V6`.\n- **`V6`**: Current standard model and recommended default.\n- **`V6_WILD`**: Current model for more experimental and creative results.\n- **`V6_MINI`**: Current lightweight model.\n- **Deprecated**: `V5_5`, `V5`, `V4_5PLUS`, `V4_5ALL`, `V4_5`, and `V4`. These values remain listed only for backward compatibility; use a V6-series model for new integrations.","enum":["V6","V6_WILD","V6_MINI","V5_5","V5","V4_5PLUS","V4_5ALL","V4_5","V4"],"example":"V6","default":"V6","isRequired":true,"uniqueKey":"oneOf.1.model","typeLabel":"enum\u003cstring>"},"prompt":{"type":"string","description":"Lyrics for the replaced segment. Required. If `lyrics` is also provided, `lyrics` takes priority for the replaced segment.","example":"A calm and relaxing piano track.","isRequired":true,"uniqueKey":"oneOf.1.prompt","typeLabel":"string"},"tags":{"type":"string","description":"Music style tags, such as jazz, electronic, etc.","example":"Jazz","isRequired":true,"uniqueKey":"oneOf.1.tags","typeLabel":"string"},"title":{"type":"string","description":"Music title","example":"Relaxing Piano","isRequired":true,"uniqueKey":"oneOf.1.title","typeLabel":"string"},"infillStartS":{"type":"number","description":"Start time point for replacement (seconds), 2 decimal places. Must be less than infillEndS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.","minimum":0,"example":10.5,"isRequired":true,"uniqueKey":"oneOf.1.infillStartS","typeLabel":"number"},"infillEndS":{"type":"number","description":"End time point for replacement (seconds), 2 decimal places. Must be greater than infillStartS. The time interval (infillEndS - infillStartS) must be at least 10 seconds.","minimum":0,"example":20.75,"isRequired":true,"uniqueKey":"oneOf.1.infillEndS","typeLabel":"number"},"fullLyrics":{"type":"string","description":"Complete lyrics of the whole song after modification, combining both modified and unmodified lyrics. Distinct from `lyrics` (and `prompt`), which apply only to the replaced segment. This field is the full lyrics text used for the entire song after the section replacement.","example":"[Verse 1]\nOriginal lyrics here\n[Chorus]\nModified lyrics for this section\n[Verse 2]\nMore original lyrics","isRequired":true,"uniqueKey":"oneOf.1.fullLyrics","typeLabel":"string"},"lyrics":{"type":"string","description":"Lyrics content. Optional. For V6, V6_MINI, and V6_WILD: maximum 5000 characters. Lyrics for the replaced segment only. Distinct from `fullLyrics`, which is the complete song lyrics.","example":"[Verse] Night city lights shining bright","uniqueKey":"oneOf.1.lyrics","typeLabel":"string"},"negativeTags":{"type":"string","description":"Excluded music styles, used to avoid specific style elements in the replacement segment","example":"Rock","uniqueKey":"oneOf.1.negativeTags","typeLabel":"string"},"vocalGender":{"type":"string","description":"Preferred vocal gender. Optional. Allowed values: `m` (male), `f` (female).","enum":["m","f"],"example":"m","uniqueKey":"oneOf.1.vocalGender","typeLabel":"enum\u003cstring>"},"styleWeight":{"type":"number","description":"Style adherence weight. Optional. Range 0–1, up to 2 decimal places.","minimum":0,"maximum":1,"multipleOf":0.01,"example":0.65,"uniqueKey":"oneOf.1.styleWeight","typeLabel":"number"},"weirdnessConstraint":{"type":"number","description":"Creativity/novelty constraint. Optional. Range 0–1, up to 2 decimal places.","minimum":0,"maximum":1,"multipleOf":0.01,"example":0.65,"uniqueKey":"oneOf.1.weirdnessConstraint","typeLabel":"number"},"audioWeight":{"type":"number","description":"Relative weight of audio consistency versus other controls. Optional. Range 0–1, up to 2 decimal places.","minimum":0,"maximum":1,"multipleOf":0.01,"example":0.65,"uniqueKey":"oneOf.1.audioWeight","typeLabel":"number"},"variety":{"type":"number","description":"Controls the diversity and stylistic variation of generated results. Optional. Integer from 0–4, default 1.\n\n- **`0`**: off (exact style) — fully off, strictly the same style\n- **`1`**: normal (balanced variety) — default, balances stability and diversity\n- **`2`**: high (distinct styles) — produces results with clearly different styles\n- **`3`**: extra (bold exploration) — higher variation, encourages bold exploration of different styles\n- **`4`**: max (unreasonably varied) — maximum diversity; results may differ in style very significantly","minimum":0,"maximum":4,"multipleOf":1,"default":1,"example":1,"uniqueKey":"oneOf.1.variety","typeLabel":"number"},"personaId":{"type":"string","description":"Persona ID or Voice ID to apply to the generated music. Optional. When using a Voice-generated ID, set `personaModel` to `voice_persona`.","example":"persona_123","uniqueKey":"oneOf.1.personaId","typeLabel":"string"},"personaModel":{"type":"string","description":"Persona model type. Optional. `style_persona` (default) for Generate Persona IDs; `voice_persona` when `personaId` is a Suno Voice `voiceId`. Default `style_persona`.","enum":["style_persona","voice_persona"],"default":"style_persona","example":"style_persona","uniqueKey":"oneOf.1.personaModel","typeLabel":"enum\u003cstring>"},"callBackUrl":{"type":"string","format":"uri","description":"Callback URL for task completion. The system will send a POST request to this URL when replacement is complete, containing task status and results.\n\n- Your callback endpoint should be able to accept POST requests containing JSON payloads with replacement results\n- For detailed callback format and implementation guide, see [Replace Music Section Callbacks](/suno-api/replace-section-callbacks)\n- Alternatively, you can use the get music details interface to poll task status","example":"https://example.com/callback","uniqueKey":"oneOf.1.callBackUrl","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.1","typeLabel":"Replace section using uploaded custom audio · object"}],"uniqueKey":"","typeLabel":"Replace section using existing audio · object | Replace section using uploaded custom audio · object"},"example":{"taskId":"2fac****9f72","audioId":"e231****-****-****-****-****8cadc7dc","prompt":"A calm and relaxing piano track.","tags":"Jazz","title":"Relaxing Piano","negativeTags":"Rock","infillStartS":10.5,"infillEndS":20.75,"fullLyrics":"[Verse 1]\nOriginal lyrics here\n[Chorus]\nModified lyrics for this section\n[Verse 2]\nMore original lyrics","callBackUrl":"https://example.com/callback"},"examples":{"Example":{"title":"Example","value":{"taskId":"2fac****9f72","audioId":"e231****-****-****-****-****8cadc7dc","prompt":"A calm and relaxing piano track.","tags":"Jazz","title":"Relaxing Piano","negativeTags":"Rock","infillStartS":10.5,"infillEndS":20.75,"fullLyrics":"[Verse 1]\nOriginal lyrics here\n[Chorus]\nModified lyrics for this section\n[Verse 2]\nMore original lyrics","callBackUrl":"https://example.com/callback"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"4fc4ee0a-743b-437f-a306-979815097451":{"description":"Request successful","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","enum":[200,401,402,404,409,422,429,451,455,500],"description":"Response status code\n\n- **200**: Success - Request processed successfully\n- **401**: Unauthorized - Authentication credentials missing or invalid\n- **402**: Insufficient credits - Account does not have enough credits to perform this operation\n- **404**: Not found - Requested resource or endpoint does not exist\n- **409**: Conflict - WAV record already exists\n- **422**: Validation error - Request parameters failed validation checks\n- **429**: Rate limit exceeded - Exceeded request limit for this resource\n- **451**: Unauthorized - Failed to retrieve image. Please verify any access restrictions set by you or your service provider.\n- **455**: Service unavailable - System is currently undergoing maintenance\n- **500**: Server error - Unexpected error occurred while processing request","uniqueKey":"code","typeLabel":"enum\u003cinteger>"},"msg":{"type":"string","description":"Error message when code != 200","example":"success","uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","properties":{"taskId":{"type":"string","description":"Task ID for tracking task status. You can use this ID to query task details and results through the \"Get Music Details\" interface.","example":"5c79****be8e","uniqueKey":"data.taskId","typeLabel":"string"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"taskId":"5c79****be8e"}}}},"exampleType":"generated"}},"exampleType":"generated"},"2b55caf1-7389-44e4-80d1-3e738d96f15b":{"description":"Server error","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"callbacks":[{"callbackName":"audioGenerated","expression":"{request.body#/callBackUrl}","method":"post","resolved":{"operation":{"description":"When audio generation is complete, the system will call this callback to notify the result.\n\n### Callback Example\n```json\n{\n \"code\": 200,\n \"msg\": \"All generated successfully.\",\n \"data\": {\n \"callbackType\": \"complete\",\n \"task_id\": \"2fac****9f72\",\n \"data\": [\n {\n \"id\": \"e231****-****-****-****-****8cadc7dc\",\n \"audio_url\": \"https://example.cn/****.mp3\",\n \"stream_audio_url\": \"https://example.cn/****\",\n \"image_url\": \"https://example.cn/****.jpeg\",\n \"prompt\": \"A calm and relaxing piano track.\",\n \"model_name\": \"chirp-v3-5\",\n \"title\": \"Relaxing Piano\",\n \"tags\": \"Jazz\",\n \"createTime\": \"2025-01-01 00:00:00\",\n \"duration\": 198.44\n }\n ]\n }\n}\n```","requestBody":"bc87c56a-6229-4be8-bdee-9d1fdebf1268","responses":{"200":"3e1bb254-55ae-40c4-925c-1804efe6d71a"},"method":"post","type":"path"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Status code","example":200,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","description":"Return message","example":"All generated successfully","uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","properties":{"callbackType":{"type":"string","description":"Callback type: text (text generation complete), first (first song complete), complete (all complete)","enum":["text","first","complete"],"uniqueKey":"data.callbackType","typeLabel":"enum\u003cstring>"},"task_id":{"type":"string","description":"Task ID","uniqueKey":"data.task_id","typeLabel":"string"},"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Audio unique identifier (audioId)","uniqueKey":"data.data.items.[INDEX].id","typeLabel":"string"},"audio_url":{"type":"string","description":"Audio file URL","uniqueKey":"data.data.items.[INDEX].audio_url","typeLabel":"string"},"stream_audio_url":{"type":"string","description":"Streaming audio URL","uniqueKey":"data.data.items.[INDEX].stream_audio_url","typeLabel":"string"},"image_url":{"type":"string","description":"Cover image URL","uniqueKey":"data.data.items.[INDEX].image_url","typeLabel":"string"},"prompt":{"type":"string","description":"Generation prompt/lyrics","uniqueKey":"data.data.items.[INDEX].prompt","typeLabel":"string"},"model_name":{"type":"string","description":"Model name used","uniqueKey":"data.data.items.[INDEX].model_name","typeLabel":"string"},"title":{"type":"string","description":"Music title","uniqueKey":"data.data.items.[INDEX].title","typeLabel":"string"},"tags":{"type":"string","description":"Music tags","uniqueKey":"data.data.items.[INDEX].tags","typeLabel":"string"},"createTime":{"type":"string","description":"Creation time","format":"date-time","uniqueKey":"data.data.items.[INDEX].createTime","typeLabel":"string\u003cdate-time>"},"duration":{"type":"number","description":"Audio duration (seconds)","uniqueKey":"data.data.items.[INDEX].duration","typeLabel":"number"}},"uniqueKey":"data.data.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.data","typeLabel":"object[]"}},"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"All generated successfully","data":{"task_id":"\u003cstring>","data":[{"id":"\u003cstring>","audio_url":"\u003cstring>","stream_audio_url":"\u003cstring>","image_url":"\u003cstring>","prompt":"\u003cstring>","model_name":"\u003cstring>","title":"\u003cstring>","tags":"\u003cstring>","createTime":"2023-11-07T05:31:56Z","duration":123}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"3e1bb254-55ae-40c4-925c-1804efe6d71a":{"description":"Callback received successfully","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","enum":[200,400,408,413,500,501,531],"description":"Response status code\n\n- **200**: Success - Request processed successfully\n- **400**: Validation error - Lyrics contain copyrighted content.\n- **408**: Rate limit exceeded - Timeout.\n- **413**: Conflict - Uploaded audio matches existing artwork.\n- **500**: Server error - Unexpected error occurred while processing request\n- **501**: Audio generation failed.\n- **531**: Server error - Sorry, generation failed due to issues. Your credits have been refunded. Please try again.","uniqueKey":"code","typeLabel":"enum\u003cinteger>"},"msg":{"type":"string","description":"Error message when code != 200","example":"success","uniqueKey":"msg","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"code":200,"msg":"success"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{}}}}],"security":{"6d3fe124-63a0-4ab3-9da2-de439119be05":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"# 🔑 API Authentication\n\nAll endpoints require authentication using Bearer Token.\n\n## Get API Key\n\n1. Visit the [API Key Management Page](https://api.box/api-key) to obtain your API Key\n\n## Usage\n\nAdd to request headers:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\n> **⚠️ Note:**\n> - Keep your API Key secure and do not share it with others\n> - If you suspect your API Key has been compromised, reset it immediately from the management page","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"70e1645d-2722-4ecd-9381-477ef0fe62c3":{"url":"https://apibox.erweima.ai","description":"API Server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","description":"# 🔑 API Authentication\n\nAll endpoints require authentication using Bearer Token.\n\n## Get API Key\n\n1. Visit the [API Key Management Page](https://api.box/api-key) to obtain your API Key\n\n## Usage\n\nAdd to request headers:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\n> **⚠️ Note:**\n> - Keep your API Key secure and do not share it with others\n> - If you suspect your API Key has been compromised, reset it immediately from the management page","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"# 🔑 API Authentication\n\nAll endpoints require authentication using Bearer Token.\n\n## Get API Key\n\n1. Visit the [API Key Management Page](https://api.box/api-key) to obtain your API Key\n\n## Usage\n\nAdd to request headers:\n\n```\nAuthorization: Bearer YOUR_API_KEY\n```\n\n> **⚠️ Note:**\n> - Keep your API Key secure and do not share it with others\n> - If you suspect your API Key has been compromised, reset it immediately from the management page","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"suno-api/suno-api.json"},"subdomain":"sunoapiorg","siteName":"Suno API","title":"Replace Music Section - Suno API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/suno-api/replace-section","matchLevel":0},"cn":{"href":"/cn/suno-api/replace-section","matchLevel":1}}},"lastModified":"2026-09-22T10:35:25.579Z","originalFileLocation":"suno-api/replace-section.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Replace a specific time segment within existing music.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Suno API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Replace Music Section - Suno API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Replace a specific time segment within existing music.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Suno API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.sunoapi.org/suno-api/replace-section\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://sunoapiorg.mintlify.app/_mintlify/api/og/v2?division=Generate+Music\u0026amp;title=Replace+Music+Section\u0026amp;description=Replace+a+specific+time+segment+within+existing+music.\u0026amp;theme=7214e24e72b6f445c84b99ff\u0026amp;signature=43ff678b3663f61ca3a31213ae32e6d45f0d6b063841ac4cd8e6f0a99f25dcc7\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Replace Music Section - Suno API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Replace a specific time segment within existing music.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://sunoapiorg.mintlify.app/_mintlify/api/og/v2?division=Generate+Music\u0026amp;title=Replace+Music+Section\u0026amp;description=Replace+a+specific+time+segment+within+existing+music.\u0026amp;theme=7214e24e72b6f445c84b99ff\u0026amp;signature=43ff678b3663f61ca3a31213ae32e6d45f0d6b063841ac4cd8e6f0a99f25dcc7\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/sunoapiorg/7RhG6CqzEntbwSqF/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Suno API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.sunoapi.org/suno-api/replace-section\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/suno-api/replace-section.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.sunoapi.org/suno-api/replace-section\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.sunoapi.org/cn/suno-api/replace-section\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.sunoapi.org/suno-api/replace-section\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.sunoapi.org/#organization\",\"name\":\"Suno API\",\"url\":\"https://docs.sunoapi.org\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://sunoapi.org/logo.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.sunoapi.org#website\",\"name\":\"Suno API\",\"url\":\"https://docs.sunoapi.org\",\"publisher\":{\"@id\":\"https://docs.sunoapi.org/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.sunoapi.org/suno-api/replace-section#webpage\",\"url\":\"https://docs.sunoapi.org/suno-api/replace-section\",\"name\":\"Replace Music Section\",\"description\":\"Replace a specific time segment within existing music.\",\"dateModified\":\"2026-09-22T10:35:25.579Z\",\"isPartOf\":{\"@id\":\"https://docs.sunoapi.org#website\"},\"breadcrumb\":{\"@id\":\"https://docs.sunoapi.org/suno-api/replace-section#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.sunoapi.org/suno-api/replace-section#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Generate Music\",\"item\":\"https://docs.sunoapi.org/suno-api/generate-music\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Replace Music Section\",\"item\":\"https://docs.sunoapi.org/suno-api/replace-section\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.sunoapi.org/suno-api/replace-section#apireference\",\"headline\":\"Replace Music Section\",\"name\":\"Replace Music Section\",\"description\":\"Replace a specific time segment within existing music.\",\"url\":\"https://docs.sunoapi.org/suno-api/replace-section\",\"mainEntityOfPage\":{\"@id\":\"https://docs.sunoapi.org/suno-api/replace-section#webpage\"},\"dateModified\":\"2026-09-22T10:35:25.579Z\",\"publisher\":{\"@id\":\"https://docs.sunoapi.org/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.sunoapi.org#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Suno API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Suno API","nav":{"global":{"anchors":[{"anchor":"Home","icon":"house","href":"https://sunoapi.org/"},{"anchor":"Old Docs","icon":"book-open-cover","href":"https://old-docs.sunoapi.org/"}]},"languages":[{"language":"en","pages":[{"title":"Suno API Documentation","icon":"music","href":""},{"title":"Suno API Quick Start","icon":"rocket","href":"/suno-api/quickstart"},{"group":"Generate Music","pages":[{"title":"Generate Music","openapi":"suno-api/suno-api.json POST /api/v1/generate","href":"/suno-api/generate-music"},{"title":"Music Generation Callbacks","href":"/suno-api/generate-music-callbacks"},{"title":"Extend Music","openapi":"suno-api/suno-api.json POST /api/v1/generate/extend","href":"/suno-api/extend-music"},{"title":"Music Extension Callbacks","href":"/suno-api/extend-music-callbacks"},{"title":"Upload And Cover Audio","openapi":"suno-api/suno-api.json POST /api/v1/generate/upload-cover","href":"/suno-api/upload-and-cover-audio"},{"title":"Upload and Cover Audio Callbacks","href":"/suno-api/upload-and-cover-audio-callbacks"},{"title":"Upload And Extend Audio","openapi":"suno-api/suno-api.json POST /api/v1/generate/upload-extend","href":"/suno-api/upload-and-extend-audio"},{"title":"Upload and Extend Audio Callbacks","href":"/suno-api/upload-and-extend-audio-callbacks"},{"title":"Add Instrumental","openapi":"suno-api/suno-api.json POST /api/v1/generate/add-instrumental","href":"/suno-api/add-instrumental"},{"title":"Add Instrumental Callbacks","href":"/suno-api/add-instrumental-callbacks"},{"title":"Add Vocals","openapi":"suno-api/suno-api.json POST /api/v1/generate/add-vocals","href":"/suno-api/add-vocals"},{"title":"Add Vocals Callbacks","href":"/suno-api/add-vocals-callbacks"},{"title":"Get Music Generation Details","openapi":"suno-api/suno-api.json GET /api/v1/generate/record-info","href":"/suno-api/get-music-generation-details"},{"title":"Recovery Audio","openapi":"suno-api/suno-api.json POST /api/v1/suno/recovery","href":"/suno-api/recovery-audio"},{"title":"Get Recovery Audio Details","openapi":"suno-api/suno-api.json GET /api/v1/suno/recovery/record-info","href":"/suno-api/get-recovery-audio-details"},{"title":"Get Timestamped Lyrics","openapi":"suno-api/suno-api.json POST /api/v1/generate/get-timestamped-lyrics","href":"/suno-api/get-timestamped-lyrics"},{"title":"Boost Music Style","openapi":"suno-api/suno-api.json POST /api/v1/style/generate","href":"/suno-api/boost-music-style"},{"title":"Generate Music Cover","openapi":"suno-api/suno-api.json POST /api/v1/suno/cover/generate","href":"/suno-api/cover-suno"},{"title":"Music Cover Generation Callbacks","description":"When music cover generation is complete, the system will call this callback to notify results.","href":"/suno-api/cover-suno-callbacks"},{"title":"Replace Music Section","openapi":"suno-api/suno-api.json POST /api/v1/generate/replace-section","href":"/suno-api/replace-section"},{"title":"Replace Music Section Callbacks","description":"Understand the callback mechanism for replace music section tasks","href":"/suno-api/replace-section-callbacks"},{"title":"Get Music Cover Details","openapi":"suno-api/suno-api.json GET /api/v1/suno/cover/record-info","href":"/suno-api/get-cover-suno-details"},{"title":"Generate Persona","openapi":"suno-api/suno-api.json POST /api/v1/generate/generate-persona","href":"/suno-api/generate-persona"},{"title":"Generate Mashup","openapi":"suno-api/suno-api.json POST /api/v1/generate/mashup","href":"/suno-api/generate-mashup"}]},{"group":"Suno Voice","pages":[{"title":"Suno Voice Generate Verification Phrase","openapi":"suno-api/suno-voice-api.json POST /api/v1/voice/validate","href":"/suno-api/suno-voice-validate"},{"title":"Suno Voice Validation Phrase Callbacks","href":"/suno-api/suno-voice-validate-callbacks"},{"title":"Suno Voice Get Verification Phrase","openapi":"suno-api/suno-voice-api.json GET /api/v1/voice/validate-info","href":"/suno-api/suno-voice-validate-info"},{"title":"Suno Voice Create Custom Voice","openapi":"suno-api/suno-voice-api.json POST /api/v1/voice/generate","href":"/suno-api/suno-voice-generate"},{"title":"Suno Voice Generation Callbacks","href":"/suno-api/suno-voice-generate-callbacks"},{"title":"Suno Voice Get Custom Voice Record","openapi":"suno-api/suno-voice-api.json GET /api/v1/voice/record-info","href":"/suno-api/suno-voice-record-info"},{"title":"Suno Voice Regenerate Verification Phrase","openapi":"suno-api/suno-voice-api.json POST /api/v1/voice/regenerate","href":"/suno-api/suno-voice-regenerate"},{"title":"Suno Voice Regenerate Phrase Callbacks","href":"/suno-api/suno-voice-regenerate-callbacks"},{"title":"Suno Voice Check Availability","openapi":"suno-api/suno-voice-api.json POST /api/v1/voice/check-voice","href":"/suno-api/suno-voice-check-voice"}]},{"group":"Generate Lyrics","pages":[{"title":"Generate Lyrics","openapi":"suno-api/suno-api.json POST /api/v1/lyrics","href":"/suno-api/generate-lyrics"},{"title":"Lyrics Generation Callbacks","href":"/suno-api/generate-lyrics-callbacks"},{"title":"Get Lyrics Generation Details","openapi":"suno-api/suno-api.json GET /api/v1/lyrics/record-info","href":"/suno-api/get-lyrics-generation-details"}]},{"group":"Generate Sounds","pages":[{"title":"Generate Sounds","openapi":"suno-api/suno-api.json POST /api/v1/generate/sounds","href":"/suno-api/generate-sounds"}]},{"group":"WAV Conversion","pages":[{"title":"Convert to WAV Format","openapi":"suno-api/suno-api.json POST /api/v1/wav/generate","href":"/suno-api/convert-to-wav-format"},{"title":"WAV Format Conversion Callbacks","href":"/suno-api/convert-to-wav-format-callbacks"},{"title":"Get WAV Conversion Details","openapi":"suno-api/suno-api.json GET /api/v1/wav/record-info","href":"/suno-api/get-wav-conversion-details"}]},{"group":"Vocal Removal","pages":[{"title":"Vocal \u0026 Instrument Stem Separation","openapi":"suno-api/suno-api.json POST /api/v1/vocal-removal/generate","href":"/suno-api/separate-vocals-from-music"},{"title":"Audio Separation Callbacks","href":"/suno-api/separate-vocals-from-music-callbacks"},{"title":"Get Audio Separation Details","openapi":"suno-api/suno-api.json GET /api/v1/vocal-removal/record-info","href":"/suno-api/get-vocal-separation-details"},{"title":"Generate MIDI from Audio","openapi":"suno-api/suno-api.json POST /api/v1/midi/generate","href":"/suno-api/generate-midi"},{"title":"MIDI Generation Callbacks","href":"/suno-api/generate-midi-callbacks"},{"title":"Get MIDI Generation Details","openapi":"suno-api/suno-api.json GET /api/v1/midi/record-info","href":"/suno-api/get-midi-details"}]},{"group":"Music Video Generation","pages":[{"title":"Create Music Video","openapi":"suno-api/suno-api.json POST /api/v1/mp4/generate","href":"/suno-api/create-music-video"},{"title":"Music Video Generation Callbacks","href":"/suno-api/create-music-video-callbacks"},{"title":"Get Music Video Details","openapi":"suno-api/suno-api.json GET /api/v1/mp4/record-info","href":"/suno-api/get-music-video-details"}]},{"group":"Account Management","pages":[{"title":"Get Remaining Credits","openapi":"suno-api/suno-api.json GET /api/v1/generate/credit","href":"/suno-api/get-remaining-credits"}]},{"group":"File Upload API","pages":[{"title":"File Upload API Quickstart","icon":"rocket","href":"/file-upload-api/quickstart"},{"title":"Base64 File Upload","openapi":"file-upload-api/file-upload-api.json POST /api/file-base64-upload","href":"/file-upload-api/upload-file-base-64"},{"openapi":"file-upload-api/file-upload-api.json POST /api/file-stream-upload","title":"File Stream Upload","href":"/file-upload-api/upload-file-stream"},{"openapi":"file-upload-api/file-upload-api.json POST /api/file-url-upload","title":"URL File Upload","href":"/file-upload-api/upload-file-url"}]}]},{"language":"cn","pages":[{"title":"cn","href":"/cn/suno-api/replace-section"}]}]},"basePath":"","title":"Replace Music Section - Suno API","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}