suno-cli 0.5.0

Generate AI music from your terminal — Suno v5.5 with tags, exclude, vocal control, and all generation features
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::SunoClient;
use super::types::Clip;
use crate::errors::CliError;

impl SunoClient {
    /// Extract stems (vocals + instruments) from a clip.
    /// Uses /api/edit/stems/{song_id} per gcui-art/paean-ai evidence.
    pub async fn stems(&self, clip_id: &str) -> Result<Clip, CliError> {
        let resp = self
            .post(&format!("/api/edit/stems/{clip_id}"))
            .send()
            .await?;
        let resp = self.check_response(resp).await?;
        Ok(resp.json().await?)
    }
}