typetext
{
"repetition_penalty": 1.2,
"temperature": 0.8,
"text": "Thank god I tokenmaxxed in my 20s so now I can finally retire in Mill Valley",
"top_p": 0.95,
"voice": "Ivan"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_bnL**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run resemble-ai/chatterbox-turbo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
repetition_penalty: 1.2,
temperature: 0.8,
text: "Thank god I tokenmaxxed in my 20s so now I can finally retire in Mill Valley",
top_p: 0.95,
voice: "Ivan"
};
const output = await replicate.run("resemble-ai/chatterbox-turbo", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_bnL**********************************
This is your API token. Keep it to yourself.
import replicate
Run resemble-ai/chatterbox-turbo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"resemble-ai/chatterbox-turbo",
input={
"repetition_penalty": 1.2,
"temperature": 0.8,
"text": "Thank god I tokenmaxxed in my 20s so now I can finally retire in Mill Valley",
"top_p": 0.95,
"voice": "Ivan"
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_bnL**********************************
This is your API token. Keep it to yourself.
Run resemble-ai/chatterbox-turbo using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"repetition_penalty": 1.2,
"temperature": 0.8,
"text": "Thank god I tokenmaxxed in my 20s so now I can finally retire in Mill Valley",
"top_p": 0.95,
"voice": "Ivan"
}
}' \
https://api.replicate.com/v1/models/resemble-ai/chatterbox-turbo/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "3y6n9kj9ydrmw0cxhykr5qtj58",
"model": "resemble-ai/chatterbox-turbo",
"version": "hidden",
"input": {
"repetition_penalty": 1.2,
"temperature": 0.8,
"text": "Thank god I tokenmaxxed in my 20s so now I can finally retire in Mill Valley",
"top_p": 0.95,
"voice": "Ivan"
},
"logs": "Using random seed: 50155\nGenerating audio for text: 'Thank god I tokenmaxxed in my 20s so now I can fin...'\nUsing pre-made voice: Ivan\n 0%| | 0/1000 [00:00<?, ?it/s]\n 2%|▏ | 17/1000 [00:00<00:05, 164.57it/s]\n 4%|▎ | 35/1000 [00:00<00:05, 172.16it/s]\n 5%|▌ | 54/1000 [00:00<00:05, 177.19it/s]\n 7%|▋ | 73/1000 [00:00<00:05, 179.55it/s]\n 9%|▉ | 91/1000 [00:00<00:05, 178.76it/s]\n 11%|█ | 109/1000 [00:00<00:04, 179.06it/s]\n12%|█▎ | 125/1000 [00:00<00:04, 176.95it/s]\nS3 Token -> Mel Inference...\n 0%| | 0/2 [00:00<?, ?it/s]\n100%|██████████| 2/2 [00:00<00:00, 49.68it/s]\nAudio generation complete.",
"output": "https://replicate.delivery/xezq/o3Kwqc9kUtrfIallEDb4RGci01WgRADnEGqxd2wamW8XtmNLA/output.wav",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2026-04-15T05:39:58.579Z",
"started_at": "2026-04-15T05:39:58.605768Z",
"completed_at": "2026-04-15T05:39:59.753224Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/3y6n9kj9ydrmw0cxhykr5qtj58/cancel",
"get": "https://api.replicate.com/v1/predictions/3y6n9kj9ydrmw0cxhykr5qtj58",
"stream": "https://stream.replicate.com/v1/files/jbxs-ftabp53xv2lkd3belrzefxgtm4e4vcftyirjkq7m24yd72turfla",
"web": "https://replicate.com/p/3y6n9kj9ydrmw0cxhykr5qtj58"
},
"metrics": {
"character_input_count": 76,
"predict_time": 1.147455692,
"total_time": 1.174224676
}
}