Generation

Create a music generation task

Renders synchronously: the response usually already has status: "success" and the track in taskUrls. Costs max(60, ceil(duration_seconds)) credits (default 60 s).

post/api/v1/music

Request

  • Base URL: https://viewmax.studio
  • URL: https://viewmax.studio/api/v1/music
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Optional. 1–200 visible ASCII characters, no spaces (otherwise 400). A repeated key for the same account, on any create endpoint, returns the task the first request created with its original costCredits and charges nothing; the body is not compared. Without it, every request creates and charges a new task.

Request body

promptstring required

Track description. When options.style or options.title is set, the prompt is treated as lyrics.

Response

Task created, or the existing task for a repeated Idempotency-Key.

code0 required
message'ok' required

Changes

No recorded changes to this operation across all 1 revision of this API.