- Step1: Create a SongAPI account; every account includes a free sandbox key with no card required.
- Step2: Copy the sandbox or live API key from the dashboard after signup.
- Step3: Review the documentation for generation, lyrics, extension, cover, add-vocals endpoints, webhooks, errors, and rate limits.
- Step4: Send a POST request to /v1/generate with the API key as a bearer token and a text prompt.
- Step5: Include options such as instrumental mode, lyrics, genre, mood, or structure prompts as needed.
- Step6: Receive the finished song, typically in about 30 seconds, or use webhooks for completion handling.
- Step7: Switch to a live key and buy pay-as-you-go credits when moving from testing to production.