Muziek maken met AI Music API
The Music API from Muziek maken met AI — 2 operation(s) for music.
The Music API from Muziek maken met AI — 2 operation(s) for music.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/muziekmakenmetai-nl:muziekmakenmetai-nl-music-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MuziekMakenMetAI Developer Music API
version: 1.0.0
description: Asynchrone API voor originele muziekgeneratie met eigen opgeslagen resultaten.
servers:
- url: https://muziekmakenmetai.nl/api/v1
security:
- bearerAuth: []
tags:
- name: Music
paths:
/music/generations/:
post:
summary: Start een muziekgeneratie
parameters:
- name: Idempotency-Key
in: header
required: true
schema:
type: string
maxLength: 128
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/GenerationInput'
responses:
'202':
description: Generatie gestart
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
'200':
description: Bestaande generatie voor dezelfde Idempotency-Key en requestbody
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
4XX:
description: Requestfout
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
tags:
- Music
operationId: postMusicGenerations
x-operation-id-source: derived
/music/generations/{id}/:
get:
summary: Lees de status en eigen assets
parameters:
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Actuele generatie
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
tags:
- Music
operationId: getMusicGenerationsById
x-operation-id-source: derived
webhooks:
generationStatus:
post:
summary: Terminaal generatie-event
description: Bereken de hex HMAC-SHA256 van `.` met het signing secret. De signatureheader bevat `sha256=`. Gebruik de event-UUID voor deduplicatie; de eventnaam staat in het JSON-veld `type`.
parameters:
- name: X-MMMAI-Event
in: header
required: true
description: Unieke event-UUID voor deduplicatie.
schema:
type: string
format: uuid
- name: X-MMMAI-Timestamp
in: header
required: true
schema:
type: string
- name: X-MMMAI-Signature
in: header
required: true
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WebhookEvent'
responses:
'200':
description: Ontvangen
tags:
- Music
components:
schemas:
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
required:
- code
- message
required:
- error
Generation:
type: object
properties:
id:
type: string
format: uuid
object:
const: music_generation
status:
enum:
- queued
- processing
- succeeded
- failed
model:
enum:
- music-v1
- music-v1-pro
- music-v2
- music-v2-mini
- music-v2-wild
created_at:
type: string
format: date-time
completed_at:
type:
- string
- 'null'
format: date-time
tracks:
type: array
items:
type: object
properties:
id:
type: string
title:
type: string
duration_seconds:
type:
- number
- 'null'
audio_url:
type: string
format: uri
image_url:
type:
- string
- 'null'
format: uri
required:
- id
- title
- duration_seconds
- audio_url
- image_url
required:
- id
- object
- status
- model
- created_at
- completed_at
- tracks
GenerationInput:
type: object
additionalProperties: false
properties:
model:
type: string
enum:
- music-v1
- music-v1-pro
- music-v2
- music-v2-mini
- music-v2-wild
default: music-v1
description: 'music-v2 is ons nieuwste model en de aanrader: natuurlijkere zang, rijkere details en eigen stemmen. music-v2-mini is sneller, music-v2-wild is gewaagder. music-v1 en music-v1-pro zijn de vorige generatie en blijven werken. Alle modellen kosten één credit per generatie.'
prompt:
type: string
maxLength: 5000
description: Maximaal 500 tekens in de standaardmodus en 5.000 tekens in custom_mode.
custom_mode:
type: boolean
default: false
description: 'False: prompt is een muziekbeschrijving. True: prompt is de volledige songtekst en style is verplicht.'
instrumental:
type: boolean
default: false
description: Vraag een track zonder zang.
style:
type: string
maxLength: 1000
description: Verplicht in custom_mode; beschrijf genre, instrumenten, tempo en sfeer.
title:
type: string
maxLength: 80
language:
type: string
maxLength: 40
default: Nederlands
examples:
- Nederlands
- Engels
- Duits
- Frans
- Spaans
description: Volledige taalnaam. Andere talen zijn toegestaan; de kwaliteit kan per taal verschillen.
vocal_gender:
type: string
enum:
- male
- female
description: Alleen in custom_mode en alleen relevant voor tracks met zang.
style_weight:
type: number
minimum: 0
maximum: 1
description: Alleen in custom_mode. Hogere waarden volgen style sterker.
creativity:
type: number
minimum: 0
maximum: 1
description: Alleen in custom_mode. Hogere waarden geven meer variatie.
audio_weight:
type: number
minimum: 0
maximum: 1
description: Alleen in custom_mode. Gewicht van gekoppelde persona-audio.
duration_seconds:
type: integer
minimum: 10
maximum: 360
description: Alleen beschikbaar met music-v1-pro of een music-v2-model en custom_mode=true.
variety:
type: integer
minimum: 0
maximum: 4
default: 1
description: Alleen in custom_mode en alleen met music-v2-modellen. 0 = strikt volgens prompt en style, 1 = standaard balans, 2 = wat meer variatie, 3 = duidelijk losser met de input, 4 = maximaal verrassend.
negative_tags:
type: array
items:
type: string
description: Alleen in custom_mode; alle waarden samen maximaal 300 tekens.
persona_id:
type: string
description: Eigen persona van dit account; alleen in custom_mode.
persona_type:
type: string
enum:
- style
- voice
description: Vereist persona_id. Zonder persona_type gebruikt de API style. Type voice werkt alleen met music-v2-modellen.
required:
- prompt
allOf:
- if:
properties:
custom_mode:
const: true
required:
- custom_mode
then:
properties:
prompt:
maxLength: 5000
else:
properties:
prompt:
maxLength: 500
WebhookEvent:
type: object
properties:
id:
type: string
format: uuid
type:
enum:
- music.generation.succeeded
- music.generation.failed
data:
$ref: '#/components/schemas/Generation'
required:
- id
- type
- data
securitySchemes:
bearerAuth:
type: http
scheme: bearer