Create original music, instrumentals, rap, and samples from text descriptions using AudioPod AI’s advanced music generation pipeline.
Authorization: Bearer your_api_key
Authorization: Bearer your_jwt_token
prompt
(required): Text description of the desired music style and characteristicslyrics
(optional): Song lyrics with structure tags like [Verse], [Chorus], [Bridge]duration
(optional): Duration in seconds (-1 for auto, 1-600 seconds). Default: 120.0
audio_duration
for backward compatibilityformat
(optional): Output format (wav
, mp3
, flac
). Default: wav
genre_preset
(optional): Genre preset (Modern Pop
, Rock
, Hip Hop
, Jazz
, Classical
, Electronic
, Country
, Folk
, Blues
, Reggae
, Latin
, R&B
, Metal
, Custom
)display_name
(optional): Custom name for the generated trackthumbnail_url
(optional): URL for track thumbnail imageinfer_step
(optional): Number of inference steps (1-200). Default: 60guidance_scale
(optional): Classifier-free guidance scale (1.0-30.0). Default: 15.0scheduler_type
(optional): Scheduler type (euler
, etc.). Default: euler
cfg_type
(optional): CFG type (apg
, etc.). Default: apg
omega_scale
(optional): Omega scale (1-20). Default: 10guidance_interval
(optional): Guidance interval (0.0-1.0). Default: 0.5guidance_interval_decay
(optional): Guidance decay (0.0-1.0). Default: 0.0min_guidance_scale
(optional): Minimum guidance scale (1.0-10.0). Default: 3.0guidance_scale_text
(optional): Text guidance scale (0.0-10.0). Default: 0.0guidance_scale_lyric
(optional): Lyric guidance scale (0.0-10.0). Default: 0.0use_erg_tag
(optional): Use ERG for tags. Default: trueuse_erg_lyric
(optional): Use ERG for lyrics. Default: trueuse_erg_diffusion
(optional): Use ERG for diffusion. Default: truemanual_seeds
(optional): Array of manual seeds for reproducibilitysample_type
: Type of sample (loop
, one-shot
, etc.)tempo
: Target tempo in BPM (60-200)audio_duration
: Sample duration (-1 for auto, 1.0-120.0 seconds). Default: 8.0ref_audio_strength
: How much the reference audio influences the output (0.0-1.0)audio_duration
: Duration of the output audio (1-600 seconds)source_job_id
(required): ID of the original music generation jobleft_extend_length
(optional): Seconds to add at beginning (0.0-60.0)right_extend_length
(optional): Seconds to add at end (0.0-60.0, default: 30.0)prompt
(required): Style description for extensionlyrics
(optional): Additional lyrics for extensionextend_seeds
(optional): Seeds for reproducibilityoriginal_job_id
(required): ID of the original music generation jobretake_variance
(optional): Variation strength (0.0-1.0, default: 0.5)retake_seeds
(optional): Seeds for reproducible variationsdisplay_name
(optional): Custom name for the variationsource_job_id
(optional): Source music generation job IDrepaint_start
(required): Start time in seconds to begin repaintingrepaint_end
(required): End time in seconds to stop repaintingprompt
(required): New style description for the sectionlyrics
(optional): New lyrics for the sectionsource_job_id
(required): Source music generation job IDedit_target_prompt
(required): New style descriptionedit_target_lyrics
(optional): New lyrics for the trackedit_type
(optional): Edit type - “remix” or “only_lyrics” (default: “remix”)edit_n_min
(optional): Edit strength minimum (0.0-1.0, default: 0.0)edit_n_max
(optional): Edit strength maximum (0.0-1.0, default: 1.0)edit_n_avg
(optional): Edit averaging (1-5, default: 1)skip
(optional): Number of jobs to skip for pagination. Default: 0limit
(optional): Maximum number of jobs to return. Default: 50task
(optional): Filter by specific task type (text2music
, text2rap
, prompt2instrumental
, etc.)status
(optional): Filter by job status (pending
, processing
, completed
, failed
)song_type
(optional): Filter by category:
song
: Full songs (text2music, lyric2vocals)rap
: Rap tracks (text2rap)instrumental
: Instrumental tracks (prompt2instrumental, text2samples)samples
: Audio samples (text2samples)liked
(optional): Filter by user’s liked status (true
for liked only, false
for non-liked)display_name
(optional): New display name for the trackthumbnail_url
(optional): New thumbnail URL for the trackformat
(optional): Desired format (wav
, mp3
, flac
). Default: wav
content
(required): Comment text contentauthor_name
(required for anonymous): Display name for anonymous commentsskip
(optional): Number of comments to skip. Default: 0limit
(optional): Maximum comments to return. Default: 50prompt
parameter):
Preset | Description | Generated Prompt |
---|---|---|
Modern Pop | Contemporary pop music | pop, synth, drums, guitar, 120 bpm, upbeat, catchy, vibrant, female vocals, polished vocals |
Rock | Rock and alternative | rock, electric guitar, drums, bass, 130 bpm, energetic, rebellious, gritty, male vocals, raw vocals |
Hip Hop | Hip-hop and rap | hip hop, 808 bass, hi-hats, synth, 90 bpm, bold, urban, intense, male vocals, rhythmic vocals |
Country | Country and folk | country, acoustic guitar, steel guitar, fiddle, 100 bpm, heartfelt, rustic, warm, male vocals, twangy vocals |
EDM | Electronic dance music | edm, synth, bass, kick drum, 128 bpm, euphoric, pulsating, energetic, instrumental |
Reggae | Reggae and ska | reggae, guitar, bass, drums, 80 bpm, chill, soulful, positive, male vocals, smooth vocals |
Classical | Orchestral and chamber | classical, orchestral, strings, piano, 60 bpm, elegant, emotive, timeless, instrumental |
Jazz | Jazz and fusion | jazz, saxophone, piano, double bass, 110 bpm, smooth, improvisational, soulful, male vocals, crooning vocals |
Metal | Heavy metal | metal, electric guitar, double kick drum, bass, 160 bpm, aggressive, intense, heavy, male vocals, screamed vocals |
R&B | R&B and soul | r&b, synth, bass, drums, 85 bpm, sultry, groovy, romantic, female vocals, silky vocals |
Folk | Acoustic folk | folk, acoustic guitar, harmonica, 90 bpm, organic, traditional, storytelling |
Blues | Blues and R&B | blues, guitar, harmonica, 80 bpm, emotional, soulful, traditional |
Latin | Latin and world music | latin, guitar, percussion, 110 bpm, rhythmic, festive, cultural |
Custom | No preset applied | Use your own custom prompt |
wav
: Uncompressed, highest quality (default)mp3
: Compressed, smaller file sizeflac
: Lossless compression, good quality/size balance400 Bad Request - Invalid Parameters
413 Payload Too Large
422 Processing Error - Generation Failed
402 Payment Required - Insufficient Credits
Service | Cost | Description |
---|---|---|
Text-to-Music | 1320 credits/minute | Complete songs with lyrics |
Instrumental | 1320 credits/minute | Instrumental tracks |
Text-to-Rap | 1320 credits/minute | Rap music with beats |
Text-to-Samples | 176 credits/8 seconds | Audio loops and samples (1320/60*8) |
Audio-to-Audio | 1320 credits/minute | Audio transformation |
Duration | Service | Credits | USD Cost |
---|---|---|---|
2 minutes | Text-to-Music | 2640 | $0.35 |
1 minute | Instrumental | 1320 | $0.18 |
8 seconds | Sample Loop | 176 | $0.02 |
90 seconds | Audio-to-Audio | 1980 | $0.26 |