typetext
{
"max_new_tokens": 1200,
"repetition_penalty": 1.1,
"temperature": 0.6,
"text": "Hola, me llamo Javi, encantado de conocerte <giggle>",
"top_p": 0.95,
"voice": "javi"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_9ba**********************************
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 gianpaj/cog-orpheus-3b-0.1-ft using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"gianpaj/cog-orpheus-3b-0.1-ft:666dc0c400952f2c18f0a46233dca2053ebef622754769878cd5497e20714650",
{
input: {
max_new_tokens: 1200,
repetition_penalty: 1.1,
temperature: 0.6,
text: "Hola, me llamo Javi, encantado de conocerte <giggle>",
top_p: 0.95,
voice: "javi"
}
}
);
// 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_9ba**********************************
This is your API token. Keep it to yourself.
import replicate
Run gianpaj/cog-orpheus-3b-0.1-ft using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"gianpaj/cog-orpheus-3b-0.1-ft:666dc0c400952f2c18f0a46233dca2053ebef622754769878cd5497e20714650",
input={
"max_new_tokens": 1200,
"repetition_penalty": 1.1,
"temperature": 0.6,
"text": "Hola, me llamo Javi, encantado de conocerte <giggle>",
"top_p": 0.95,
"voice": "javi"
}
)
# 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_9ba**********************************
This is your API token. Keep it to yourself.
Run gianpaj/cog-orpheus-3b-0.1-ft 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 $'{
"version": "gianpaj/cog-orpheus-3b-0.1-ft:666dc0c400952f2c18f0a46233dca2053ebef622754769878cd5497e20714650",
"input": {
"max_new_tokens": 1200,
"repetition_penalty": 1.1,
"temperature": 0.6,
"text": "Hola, me llamo Javi, encantado de conocerte <giggle>",
"top_p": 0.95,
"voice": "javi"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "ypr5eq58pnrm80cp5ttv01ghwg",
"model": "gianpaj/cog-orpheus-3b-0.1-ft",
"version": "666dc0c400952f2c18f0a46233dca2053ebef622754769878cd5497e20714650",
"input": {
"max_new_tokens": 1200,
"repetition_penalty": 1.1,
"temperature": 0.6,
"text": "Hola, me llamo Javi, encantado de conocerte <giggle>",
"top_p": 0.95,
"voice": "javi"
},
"logs": "Setting `pad_token_id` to `eos_token_id`:128258 for open-end generation.",
"output": "https://replicate.delivery/xezq/P9lQt0WoXUa1NlrgAVKFAhTxbEBMRv1NSSAs9oqr1VmKFlIF/output.wav",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-04-13T10:32:59.317Z",
"started_at": "2025-04-13T10:34:11.42108Z",
"completed_at": "2025-04-13T10:34:18.781848Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/ypr5eq58pnrm80cp5ttv01ghwg/cancel",
"get": "https://api.replicate.com/v1/predictions/ypr5eq58pnrm80cp5ttv01ghwg",
"stream": "https://stream.replicate.com/v1/files/bcwr-z2c7lb3iqgzzjsmyvezx47m6jsth5shwzh7e27djelcvt32zhy6q",
"web": "https://replicate.com/p/ypr5eq58pnrm80cp5ttv01ghwg"
},
"metrics": {
"predict_time": 7.360767536,
"total_time": 79.464848
}
}