typetext
{
"target_lang": "fr",
"text": "This is a simple model that can return the given text in a language of your choice"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_en0**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run intelligent-utilities/simple-translate using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
target_lang: "fr",
text: "This is a simple model that can return the given text in a language of your choice"
};
const output = await replicate.run("intelligent-utilities/simple-translate", { input });
console.log(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_en0**********************************
This is your API token. Keep it to yourself.
import replicate
Run intelligent-utilities/simple-translate using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"intelligent-utilities/simple-translate",
input={
"target_lang": "fr",
"text": "This is a simple model that can return the given text in a language of your choice"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_en0**********************************
This is your API token. Keep it to yourself.
Run intelligent-utilities/simple-translate 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": {
"target_lang": "fr",
"text": "This is a simple model that can return the given text in a language of your choice"
}
}' \
https://api.replicate.com/v1/models/intelligent-utilities/simple-translate/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Ceci est un modèle simple qui peut renvoyer le texte donné dans la langue de votre choix.
{
"id": "8tapdt1gj1rme0crn6xa7rkh58",
"model": "intelligent-utilities/simple-translate",
"version": "hidden",
"input": {
"target_lang": "fr",
"text": "This is a simple model that can return the given text in a language of your choice"
},
"logs": "",
"output": "Ceci est un modèle simple qui peut renvoyer le texte donné dans la langue de votre choix.",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-14T17:56:48.4Z",
"started_at": "2025-08-14T17:56:48.735443Z",
"completed_at": "2025-08-14T17:56:50.983563Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/8tapdt1gj1rme0crn6xa7rkh58/cancel",
"children": "https://api.replicate.com/v1/predictions/8tapdt1gj1rme0crn6xa7rkh58/children",
"get": "https://api.replicate.com/v1/predictions/8tapdt1gj1rme0crn6xa7rkh58",
"root": "https://api.replicate.com/v1/predictions/8tapdt1gj1rme0crn6xa7rkh58",
"web": "https://replicate.com/p/8tapdt1gj1rme0crn6xa7rkh58"
},
"metrics": {
"predict_time": 2.248120361,
"total_time": 2.583563
}
}