FreestyleDevelopers Open the app

Freestyle developer platform

Freestyle is a music-creation studio: a browser app on top of the Mozart DAW engine. The developer platform lets your app, your own DAW user interface or an AI assistant do what a person does in the Studio: create projects, import audio, edit clips, mix, automate, listen and export. It acts with the user's permission and nothing more.

Studio API or MCP: which one to use

Both interfaces reach the same projects through the same OAuth server, scopes, project roles and service code. They are built for different callers.

Studio API v1MCP server
Built forSoftware you write: web and mobile apps, other DAW user interfaces, backends, scripts, integrations.AI agents and assistants: ChatGPT, Claude, Claude Code and other MCP clients, where a model chooses which tool to call.
ShapeREST over HTTPS at https://freestyle.audio/api/v1, described by an OpenAPI 3.1 document.JSON-RPC 2.0 over Streamable HTTP at https://freestyle.audio/api/mcp, with tools/list and tools/call.
ContractsResources and HTTP methods, one error envelope with HTTP statuses, Idempotency-Key, ETags with If-Match / 412, cursor pagination, request ids.Tools with model-readable descriptions, nextStep hints and results trimmed to fit a model's context.
RealtimeInteractive-session WebSocket tickets and WebRTC monitoring as REST endpoints.The same session and monitoring flow as tools.
Rate budgetIts own interactive budget per user and per (app, user); only model-invoking endpoints count as Mozart AI.Per-user MCP budgets; generative tools count as Mozart AI.
  • Use the Studio API when your code decides what happens: a button in your interface, a timeline drag, a sync job. It is the primary integration path.
  • Use MCP when an AI model decides what happens: connect Freestyle to an assistant and let it call tools on the user's behalf.
  • Use both when your app embeds an assistant: the app's own controls call the Studio API, and the assistant calls MCP with the same user token. The MCP tools reference links each tool to its Studio API equivalent.

The surfaces

Studio API v1

A versioned REST API at https://freestyle.audio/api/v1: 406 operations in 31 resource groups that cover projects, lanes, clips, waveforms, time-range and sample edits, region effects, media, transport, mixer, buses, plugins, automation, tempo and meter maps, patterns, exports, listening, realtime sessions and Mozart AI. It is what the Freestyle Studio itself and other DAW user interfaces build on. See Studio API v1.

MCP connector

Freestyle exposes a Model Context Protocol server at POST https://freestyle.audio/api/mcp (Streamable HTTP, JSON-RPC 2.0). Any MCP client — Claude.ai custom connectors, Claude Code and Claude Desktop, ChatGPT developer-mode connectors, MCP Inspector, editors — signs the user in through OAuth 2.1 and then calls tools on that user's behalf. Every tool names exactly one scope, and project access follows the app's own collaboration roles: owner, editor (invited or admitted by a share link) and viewer. See Connect an AI assistant.

OAuth 2.1

A standards-based authorization server with RFC 8414 / RFC 9728 discovery, RFC 7591 dynamic client registration, authorization code + PKCE (S256), rotating refresh tokens, RFC 8707 resource binding and revocation. Public clients register themselves; enterprise partner apps are confidential clients created in the organization console or with the create_partner_app tool. The same user access token works on the Studio API and on MCP.

Enterprise organizations and the partner API

An organization is a tenant with an admin, members and partner applications. A partner backend exchanges its client credentials for a partner token and calls /api/enterprise/v1/* to list members, mint signed launch links, read usage and — only with each member's consent — read or create that member's projects. To edit a member's projects, the partner app acts for that member with a user token on the Studio API.

"Open in Freestyle" embed

A single anchor plus a script tag. A visitor who taps it signs in or creates an account, agrees to join your organization, and lands in a new project they own. A signed launch link minted by your backend can also carry a file to import and the URL to return to.

Base URL and environments

Every path in these docs is relative to the origin you are reading them on: https://freestyle.audio. The Studio API is always https://freestyle.audio/api/v1, the MCP URL https://freestyle.audio/api/mcp, OAuth discovery lives under https://freestyle.audio/.well-known/ and the partner API under https://freestyle.audio/api/enterprise/v1. Tokens, client ids and launch links are bound to the environment that issued them and never work on another one.

Each surface is switched on per environment by Freestyle. While a surface is off, its discovery documents and endpoints answer 404 (the partner API with the code enterprise_unavailable).

What you need

To…You need
Call the Studio APIA Freestyle account with Pro access (403 pro_mode_required otherwise) and an OAuth access token with the operation's scope: from your own OAuth client (dynamic registration or a partner app) through the authorization-code flow.
Connect an AI assistantA Freestyle account with Pro access (the consent screen and every /api/mcp call check it: 403 pro_mode_required) and an MCP client that supports OAuth 2.1 with dynamic client registration — or a token you obtained yourself.
Call the partner APIAn enterprise organization, a partner app created by its admin (client id + secret) and a partner token from POST /api/oauth/token with grant_type=client_credentials.
Embed the buttonA partner app whose allowed origins include the site that hosts the button.

Conventions

  • Requests and responses are JSON (application/json); the token endpoint takes application/x-www-form-urlencoded. Every authenticated response is Cache-Control: no-store.
  • Identifiers are opaque. Always use ids returned by the API; never construct or guess one.
  • Every MCP tool result that touches a project carries a projectUrl / studioUrl deep link the user can open in the app.
  • Reads are safe to retry. On the Studio API every mutation accepts an Idempotency-Key; on MCP, writes that start background work (export_mix, launch links) accept an idempotency key.
  • The Studio API's own conventions (error envelope, revisions, pagination, confirmation) are on the Studio API page.

Token and id prefixes

PrefixWhat it is
fst_dcr_Client id of a dynamically registered MCP client.
fst_org_Client id of an enterprise partner app (public; safe to put in an embed).
fst_sec_Client secret of a confidential client. Shown once, stored only as a SHA-256 hash.
fst_ac_Authorization code (single use, 10 minutes).
fst_at_User access token (1 hour).
fst_rt_Refresh token (rotates on every use, up to 90 days).
fst_pat_Partner (organization) token from client_credentials (8 hours).
fst_launch_Signed "Open in Freestyle" launch token (single use, 15 minutes).
fst_inv_Organization invite token (7 days).

Placeholders in these docs such as fst_org_EXAMPLE0000000000000000000000 are not real credentials.

Live editing over MCP

The MCP form of the live editing contracts (monitoring, waveforms, time-range and sample edits, region effects, tempo and meter maps, automation and the interactive session channel) moved to MCP live editing. A DAW user interface should use the Studio API for the same operations.

Freestyle developer documentation. Base URL https://freestyle.audio. Generated from the server's own registry and configuration.