Suno AI API Go SDK for RunAPI
The suno ai api Go SDK is the language-specific package for Suno on RunAPI. Use this suno ai api package for song generation, lyrics, vocal, extension, and audio transformation flows when your application needs JSON request bodies, task status lookup, and consistent RunAPI errors in Go.
This suno ai api README is the Go package guide inside the public suno-sdk repository. For the repository overview, start at ../README.md; for model details, use https://runapi.ai/models/suno; for API reference, use https://runapi.ai/docs#suno; for SDK docs, use https://runapi.ai/docs#sdk-suno.
Install
go get github.com/runapi-ai/suno-sdk/go@latest
Quick start
import (
"context"
"github.com/runapi-ai/suno-sdk/go/suno"
)
client, err := suno.NewClient()
task, err := client.Generations.Create(context.Background(), suno.GenerationParams{
// Pass the Suno JSON request body from https://runapi.ai/docs#suno.
})
status, err := client.Generations.Get(context.Background(), task.ID)
Use create when you want to submit a task and return quickly, get when you need the latest task state, and run when a script should create and poll until completion. In web request handlers, prefer create plus webhook or later get polling so a worker is not held open.
Language notes
Use the public Go module with github.com/runapi-ai/core-sdk/go options when building music services, CLIs, or workers. The available resources include generations, extensions, upload and extensions, covers, upload and covers, instrumentals, vocals, vocal removals, midi, wav conversions, music videos, lyrics, timestamped lyrics, section replacements, mashups, sounds, personas, and styles. Keep RUNAPI_API_KEY in the environment or your secret manager; never commit API keys or callback secrets.
Links
License
Licensed under the Apache License, Version 2.0.