I'm integrating the Soundpiece audio API. Before writing any code:
1. Read the Soundpiece docs: use the Soundpiece skill or docs MCP server if you have
them, otherwise fetch https://docs.soundpiece.co/llms.txt and the pages it links to.
2. Use the reference client from https://docs.soundpiece.co/client.md. Copy the file
for my language (soundpiece.py or soundpiece.mjs) into the project unchanged, and
call run() and download() rather than writing your own HTTP calls.
3. Follow the production checklist at https://docs.soundpiece.co/best-practices.md.
In particular: read the API key from the SOUNDPIECE_API_KEY environment variable;
create one idempotency key per job, store it before the first request, and pass it
to run() on every attempt; branch on error.code, never error.message; download
results promptly instead of storing their URLs.
4. Take request fields, limits and credit costs from the API Reference, not from memory.
What I want to build: