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
17
use super::SunoClient;
use super::types::{Clip, ConcatRequest};
use crate::errors::CliError;

impl SunoClient {
    pub async fn concat(&self, clip_id: &str) -> Result<Clip, CliError> {
        let resp = self
            .post("/api/generate/concat/v2/")
            .json(&ConcatRequest {
                clip_id: clip_id.to_string(),
            })
            .send()
            .await?;
        let resp = self.check_response(resp).await?;
        Ok(resp.json().await?)
    }
}