Base44 Apps Can Now Generate Music Through the AI Gateway
Base44 apps can now generate music through the AI Gateway, alongside images and video. Backend functions call a new music endpoint with a style, mood and optional lyrics, and get back a link to a finished MP3 in app storage. Google's Lyria 3.5 is the default model, and the AI chat can set it up on request.
Key Takeaways
- Base44 apps can now generate music through the AI Gateway, joining the existing image and video generation options.
- A backend function calls the new POST /audio/music endpoint with a style, a mood and optional lyrics to produce a song or an instrumental.
- Requests are synchronous, and the response returns a link to the finished MP3 in app storage, so apps do not need to poll for a job.
- Google's Lyria 3.5 is the default model behind the music endpoint.
- A dry_run option estimates the credit cost before music generation is exposed to app users.
- The AI chat can set up music generation on request, and Base44 added a dedicated guide plus a Music section in the AI Gateway reference.
Music Joins Images and Video in the AI Gateway
Base44 added music generation to its AI Gateway, the built-in layer that lets apps call generative models without managing separate provider accounts. Apps could already produce images and video through the gateway. Music is now the third media type, so an app can create a soundtrack, a jingle or a full song as part of its own features. The AI chat can also wire this up when a user asks for it, so no manual integration work is needed.
How Generation Works
The developer changelog describes a new endpoint, POST /audio/music. A backend function sends a prompt that describes the style and mood of the track and can add lyrics for a song with vocals. The same call can produce an instrumental track when no lyrics are given.
Requests are synchronous. The response includes a link to the finished MP3 stored in the app's own storage. Apps do not have to start a job and poll for completion, which keeps the code short and the flow predictable.
Default Model and Cost Control
Google's Lyria 3.5 is the default model behind the endpoint. Music generation spends credits, so Base44 added a dry_run option. A developer can use it to estimate the credit cost of a request before exposing music generation to the app's users. This helps avoid surprise spend in apps that let end users trigger generation.
Documentation
Base44 published a guide titled "Generate music with the AI Gateway". It covers request options, prompts and lyrics, duration, limits and errors. The AI Gateway interface reference also gained a new Music section.
Why It Matters
Audio features usually mean extra vendor accounts, keys and storage handling. With this release, an app on Base44 can add generated music with a single backend call, and the result lands in storage the app already uses. The dry-run estimate makes it practical to ship the feature to real users.