typetext
{
"prompt": "echo"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_ARY**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run pipeline-examples/upcase using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
prompt: "echo"
};
const output = await replicate.run("pipeline-examples/upcase", { 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_ARY**********************************
This is your API token. Keep it to yourself.
import replicate
Run pipeline-examples/upcase using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pipeline-examples/upcase",
input={
"prompt": "echo"
}
)
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_ARY**********************************
This is your API token. Keep it to yourself.
Run pipeline-examples/upcase 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": {
"prompt": "echo"
}
}' \
https://api.replicate.com/v1/models/pipeline-examples/upcase/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
ECHO
{
"id": "kdfy8gfd79rma0cqzantm47vt0",
"model": "pipeline-examples/upcase",
"version": "hidden",
"input": {
"prompt": "echo"
},
"logs": "",
"output": "ECHO",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-11T18:07:40.858Z",
"started_at": "2025-07-11T18:07:40.865447Z",
"completed_at": "2025-07-11T18:07:40.953789Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/kdfy8gfd79rma0cqzantm47vt0/cancel",
"children": "https://api.replicate.com/v1/predictions/kdfy8gfd79rma0cqzantm47vt0/children",
"get": "https://api.replicate.com/v1/predictions/kdfy8gfd79rma0cqzantm47vt0",
"parent": "https://api.replicate.com/v1/predictions/0sdhdpzcjsrm80cqzanvqzff2g",
"root": "https://api.replicate.com/v1/predictions/0sdhdpzcjsrm80cqzanvqzff2g",
"web": "https://replicate.com/p/kdfy8gfd79rma0cqzantm47vt0"
},
"metrics": {
"predict_time": 0.088341971,
"total_time": 0.095789
}
}