A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background.
suno-v4/api/v1/suno/text_to_music
运行信息
模型
suno-v4
提供方
Suno
服务
Suno
Endpoint
Text To Music
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成音乐:"A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background."
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成音乐:"A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background."
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成音乐:"A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background."
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成音乐:"A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background."
curl -X POST https://runapi.ai/api/v1/suno/text_to_music \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'JSON'
{
"model": "suno-v4",
"prompt": "A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background."
}
JSON
import { SunoClient } from "@runapi.ai/suno";
const client = new SunoClient({
apiKey: process.env.RUNAPI_API_KEY,
});
const result = await client.textToMusic.run({
"model": "suno-v4",
"prompt": "A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background."
});
console.log(result.id);
require "runapi/suno"
client = RunApi::Suno::Client.new
result = client.text_to_music.run(
model: "suno-v4",
prompt: "A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background."
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"suno-v4\",\"prompt\":\"A smooth bossa nova instrumental perfect for a upscale café atmosphere. Nylon-string classical guitar plays the characteristic syncopated bossa nova rhythm pattern. A brushed snare drum and light kick provide a gentle samba-inflected groove. Walking acoustic bass outlines extended jazz chords — major 7ths, 9ths, and 13ths. A breathy alto flute carries the melody, occasionally improvising around the main theme. Tempo 130 BPM. The mix should feel spacious and warm, as if recorded live in a small intimate club with audience ambience barely audible in the background.\"}")
req, err := http.NewRequestWithContext(context.Background(), http.MethodPost, "https://runapi.ai/api/v1/suno/text_to_music", body)
if err != nil {
log.Fatal(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("RUNAPI_API_KEY"))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer resp.Body.Close()
fmt.Println(resp.Status)
}