API reference

Each operation is a REST route, an MCP tool and a CLI command, with the same inputs and outputs everywhere.

Make your first call

Every request goes to https://api.mozartai.com/v1 with your key as a bearer token. Requests and responses are JSON.

Request
curl https://api.mozartai.com/v1/me \
  -H "Authorization: Bearer $MOZART_API_KEY"
Base URL
https://api.mozartai.com/v1. Every path below is relative to it.
Authentication
Authorization: Bearer mzk_..., with a key from the Developer page. Each endpoint lists the scopes it needs.Get started
Jobs
Work that takes time answers 202 with job.id at once. Poll GET /v1/jobs/{job_id}, wait with POST /v1/jobs/wait, or register a webhook.
Idempotency
Writes take an idempotency-key header. Retrying with the same key returns the first answer and spends nothing twice.
Pagination
Lists take limit and cursor. Pass the next_cursor of one page to get the next.
Errors and limits
Every error has the same JSON envelope. Rate-limit headers come back on every answer.Errors

Songs

Audio tools

Lyrics and cover art

Jobs

Uploads

Account

Webhooks

The details below are generated from the definitions the server runs, in English.