Model icon
replace-section
Music
Model:
Replace Section API supports music workflows for music creation, audio production, localization, and media automation.
Input

The replacement interval must be at least 10 seconds and cannot exceed half of the source duration.

Output

Result will appear here

Pricing details

Transparent pricing with no hidden fees. Pay as you go.

PoYoreplace-section
Standard generation
PoYo price
$0.050/gen
10 credits
Official price
-
You save
-

* Actual fees are based on the final output.

Introduction

Complete guide to using Replace Section API - AI Music Segment Editor on PoYo

Replace Section API - AI Music Segment Editor on PoYo

Replace and edit specific time segments within existing music tracks using PoYo's Replace Section API. Perform precise music inpainting with seamless transitions, style-consistent replacements, and natural audio blending. Perfect for fixing sections, changing lyrics, or modifying specific musical passages while maintaining overall coherence.

Features

01

Precise Time-Based Editing

Replace exact time segments with 2-decimal precision (infill_start_s, infill_end_s). Specify start and end points down to hundredths of a second for surgical music editing and segment replacement.

02

AI Music Inpainting

Generate new content that seamlessly blends with existing audio. Replace Section API analyzes surrounding context to create natural-sounding transitions and maintain musical coherence across edits.

03

Style-Consistent Replacement

Maintain the original track's musical style, genre, and production quality. Use style tags to ensure replaced sections match the overall aesthetic and sonic characteristics of your music.

04

Lyrics Modification

Update lyrics for specific sections using full_lyrics parameter. Change words, phrases, or entire verses while preserving the musical arrangement and vocal style of the original track.

05

Flexible Style Control

Apply custom style tags to guide the AI's generation within replaced sections. Control genre, mood, instrumentation, and creative direction for the new segment while maintaining overall coherence.

06

Seamless Audio Blending

Advanced algorithms ensure smooth transitions between original and replaced sections. No audible clicks, pops, or jarring changes - just natural-sounding edited music.

Use Cases

01

Music Production & Editing

Fix problematic sections in AI-generated music, replace unwanted segments, or experiment with different musical ideas within a track. Perfect for post-production refinement.

02

Lyric Corrections & Updates

Change specific lyrics without regenerating the entire song. Fix mistakes, update words for different versions, or localize lyrics for different markets while keeping the music intact.

03

Video Soundtrack Customization

Adjust music tracks to fit video timing requirements. Replace sections to match scene changes, extend or shorten passages, or modify musical emphasis for specific visual moments.

04

A/B Testing for Music

Create variations of the same track by replacing specific sections. Test different choruses, bridges, or musical arrangements to find the most effective version for your audience.

05

Content Adaptation

Modify music for different contexts or platforms. Replace sections to create clean versions, adjust for time constraints, or adapt tracks for specific content requirements.

06

Creative Experimentation

Explore musical variations by replacing sections with different styles or moods. Mix genres, test alternative arrangements, or create unique remixes while maintaining the core track structure.

How to Use Replace Section API on PoYo

1. Get Your API Key: Create a free PoYo account and generate your API key from the dashboard. Get API Key →

2. Prepare Source Audio: Upload your base music track using the Upload Audio API or use an existing track ID from previous music generation tasks.

3. Define Replacement Section: Specify the exact time range to replace using infill_start_s and infill_end_s parameters (supports 2 decimal precision). Add style tags and full_lyrics if modifying lyrics. View API Docs →

4. Get Results: Receive a task_id and poll for results, or set up a webhook callback URL to be notified when the section replacement completes. Query Results →

Pricing

Replace Section API: $0.05 per replacement (10 credits) - Edit music sections with AI precision

Features Included: Precise time-based editing (2 decimal precision), lyrics modification, style tag control, seamless blending, webhook callbacks, commercial usage rights

Enterprise: Volume discounts available for high-volume music editing. Priority processing and dedicated support. Contact sales →

Replace Section API FAQ

How precise can I be with section replacement timing?

Replace Section API supports 2 decimal precision for both infill_start_s and infill_end_s parameters. This means you can specify timing down to hundredths of a second (e.g., 15.25s to 23.78s) for extremely precise section editing and replacement.

Can I replace multiple sections in the same track?

Each API call replaces one continuous section defined by your start and end times. To replace multiple non-contiguous sections, you'll need to make separate API calls or chain multiple replacements, using the output of one as input for the next.

How do I ensure the replaced section matches the original style?

Use the 'tags' parameter to specify style characteristics that match your original track's genre, mood, and instrumentation. The AI analyzes surrounding audio context to create seamless transitions and maintain stylistic consistency automatically.

What happens to lyrics when I replace a section?

If you don't provide full_lyrics, the AI generates appropriate vocals that fit the musical context. To change specific lyrics, use the full_lyrics parameter with the complete lyrics (including unchanged portions), and the replaced section will feature your new lyrics while maintaining vocal style.

What are the limitations on section length I can replace?

You can replace sections of any length within your track, from fractions of a second to the majority of the song. However, very long replacement sections (over 60s) may be better suited for using the Generate Music API and manually combining segments.

Why Choose PoYo for Replace Section API

01

Affordable Precision Editing

Replace music sections at just $0.05 per edit. Cost-effective solution for music refinement and post-production without expensive subscriptions or per-minute charges.

02

Powered by Suno

Access Suno's advanced music inpainting technology through PoYo's unified API. Industry-leading AI ensures natural-sounding edits with seamless transitions and style consistency.

03

Surgical Precision

2-decimal time precision lets you target exact moments in your music. Replace sections as small as fractions of a second or as large as entire verses with pinpoint accuracy.

04

Seamless Integration

Replaced sections blend naturally with original audio. Advanced blending algorithms eliminate audible artifacts, ensuring professional-quality edited tracks ready for immediate use.

05

Unified API Access

One API key connects you to Replace Section and 15+ other music APIs plus 500+ AI models. Simplify billing and reduce integration complexity across your entire AI workflow.

06

Developer-Friendly

Clean RESTful API with comprehensive documentation and code examples. Simple integration with any programming language. Webhook support for async operations and workflow automation.