@api-emulator/suno
v0.2.2
Published
SunoAPI-compatible APIs provide credits, asynchronous music generation tasks, record polling, and lyrics generation workflows.
Readme
@api-emulator/suno
SunoAPI-compatible APIs provide credits, asynchronous music generation tasks, record polling, and lyrics generation workflows.
Use this emulator for local tests, CI, and offline agent runs. It keeps your tests separate from the production API.
Start the emulator
- Install the package.
npm install @api-emulator/suno- From this registry, start the emulator.
npx -p api-emulator api --plugin ./providers/@suno/api-emulator.mjs --service sunoThe emulator uses the local URL that api-emulator prints. Set your client base URL to this local URL.
Supported API
GET /api/v1/generate/creditPOST /api/v1/generateGET /api/v1/generate/record-infoPOST /api/v1/generate/extendPOST /api/v1/wav/generatePOST /api/v1/mp4/generatePOST /api/v1/lyricsGET /api/v1/lyrics/record-infoGET /suno/inspect/state
Coverage
- Level:
smoke-only - Meaning: A smoke test starts the emulator and checks its main behavior.
- Evidence: a direct smoke test exists, but a conformance manifest does not exist.
Credentials
Use a fixed bearer token or API key in each test. The emulator does not send these credentials to the provider.
Test data
Add repeatable test data to the provider configuration.
suno:
# Add provider-specific seed state here.