andreasjansson/cantable-diffuguesion
Run andreasjansson/cantable-diffuguesion with an API
Use one of our client libraries to get started quickly.
Set the REPLICATE_API_TOKEN
environment variable
export REPLICATE_API_TOKEN=<paste-your-token-here>
Learn more about authentication
Install Replicate’s Node.js client library
npm install replicate
Run andreasjansson/cantable-diffuguesion using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
tempo: "90",
duration: "128"
};
const output = await replicate.run("andreasjansson/cantable-diffuguesion:24f3dfb8e9316bf80a541f02db99c12e0d66c1126b8af382ec5471f939093670", { input });
console.log(output)
//=> {"mp3":"https://replicate.delivery/pbxt/JmOv5LPdpKZwKtqAX...