Generate an instrumental music track

Requires images:generate. Generates a 10-30 second instrumental MP3 (default 15 seconds) from a prompt of up to 2000 characters, stores it in the creator media bucket, and returns its URL. Returns 503 music_provider_unavailable when the music provider is not configured.

post/generate/music

Request

  • Base URL: https://api.bamf.ai/v1
  • URL: https://api.bamf.ai/v1/generate/music
  • Auth: HTTP bearer

Request body

promptstring required
duration_secondsinteger
creator_idstring uuid
author_idstring uuid

Response

Generated track: url, storage_path, duration_seconds, license

Changes

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