0.0
The project is in a healthy, maintained state
Use runapi-producer for FUZZ music generation in Ruby applications and workers.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

~> 0.3.0
 Project Readme

RunAPI

Producer FUZZ music generation SDKs for JavaScript, Python, Ruby, Go, Java, and PHP on RunAPI.

npm PyPI RubyGems Go Reference Maven Central License


The Producer SDK provides typed clients for generating FUZZ music with exact lyrics or an instrumental production brief. The public producer-sdk repository groups the non-PHP language packages, examples, CI, and language release tags. The PHP package is released from a split Composer repository.

Install

npm install @runapi.ai/producer
pip install runapi-producer
gem install runapi-producer
go get github.com/runapi-ai/producer-sdk/go@latest

Gradle:

dependencies {
  implementation("ai.runapi:runapi-producer:0.2.0")
}

The PHP package is published from the split Composer repository as runapi-ai/producer; see https://github.com/runapi-ai/producer-php for PHP install and examples.

JavaScript quick start

import { ProducerClient } from '@runapi.ai/producer';

const client = new ProducerClient();
const result = await client.textToMusic.run({
  model: 'fuzz-2.0',
  vocal_mode: 'exact_lyrics',
  prompt: 'Warm acoustic pop with clear vocals',
  lyrics: '[Verse]\nMorning light across the room',
  title: 'Morning Light',
});

console.log(result.audios[0].audio_url);

Use vocal_mode exact_lyrics with lyrics, or instrumental without lyrics. Use create, get, and run to submit, inspect, or create-and-poll a task.

Supported models: fuzz-2.0, fuzz-2.0-pro, fuzz-2.0-raw, fuzz-1.1-pro, fuzz-1.0-pro, fuzz-1.0, fuzz-1.1, and fuzz-0.8.

Repository layout

  • js/ publishes @runapi.ai/producer.
  • python/ publishes runapi-producer.
  • ruby/ publishes runapi-producer.
  • go/ publishes github.com/runapi-ai/producer-sdk/go.
  • java/ publishes ai.runapi:runapi-producer.

Generated media URLs are temporary. Download and store results in your own durable storage.

Links

License

Licensed under the Apache License, Version 2.0.