A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM.
suno-v5.5/api/v1/suno/text_to_music
运行信息
模型
suno-v5.5
提供方
Suno
服务
Suno
Endpoint
Text To Music
1. claude mcp add runapi -s user -- npx -y @runapi.ai/mcp
2. 重启 Claude Code
3. 粘贴这个 prompt:生成音乐:"A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM."
1. codex plugin install runapi-mcp@agents
2. 重启 Codex
3. 粘贴这个 prompt:生成音乐:"A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM."
1. npx @runapi.ai/mcp init cursor
2. 重启 Cursor
3. 粘贴这个 prompt:生成音乐:"A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM."
1. npx @runapi.ai/mcp init windsurf
2. 重启 Windsurf
3. 粘贴这个 prompt:生成音乐:"A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM."
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-v5.5",
"prompt": "A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM."
}
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-v5.5",
"prompt": "A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM."
});
console.log(result.id);
require "runapi/suno"
client = RunApi::Suno::Client.new
result = client.text_to_music.run(
model: "suno-v5.5",
prompt: "A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM."
)
puts result.id
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"strings"
)
func main() {
body := strings.NewReader("{\"model\":\"suno-v5.5\",\"prompt\":\"A warm lo-fi hip hop beat perfect for late-night studying. Dusty vinyl crackle throughout. A mellow Rhodes electric piano plays a repeating four-chord jazz progression in a minor key. Boom-bap drums with a lazy swing feel, heavy on the snare with low-passed hi-hats. A subtle upright bass plucks root notes on the downbeats. Occasional tape wow and flutter effects. Tempo around 75 BPM. The overall mood is cozy, introspective, and slightly melancholic, like rain on a window at 2 AM.\"}")
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)
}