API docs

Base URL https://emberaudio.net/v1 · auth via Authorization: Bearer sk_live_…

Generate a song

Reserves 1 credit and queues a job. Poll /v1/result/{job_id} for the audio.

POST /v1/generate { "prompt": "heavy metal, instrumental, distorted guitar, double-bass drums", "duration": 120, // seconds, up to 240 "seed": 123, // optional, for reproducibility "format": "mp3" // mp3 | wav | both (wav delivered as lossless FLAC) } -> { "job_id": "abc...", "status": "queued", "credits_charged": 1 } GET /v1/result/abc... -> { "status": "completed", "output": { "audio_b64": "...", "format": "mp3", "out_duration": 120 } }

Extend a clip

Continue an existing clip into a longer track.

POST /v1/extend { "src_audio_b64": "...", "duration": 180 }

Follow a style

Generate a new track in the vibe of a reference.

POST /v1/style { "ref_audio_b64": "...", "ref_strength": 0.6 }

Account

GET /v1/balance -> { "credits": 55, "plan": "forge" } GET /v1/usage -> recent ledger

Errors: 401 bad key · 402 out of credits (buy a pack / upgrade) · 502 generation failed (credit auto-refunded).

Get your API key