Skip to content

runapi-ai/producer-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

RunAPI Producer SDK for FUZZ exact-lyrics and instrumental music generation in JavaScript, Python, Ruby, Go, Java, and PHP

Topics

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages