typetext
{
"max_length": 50,
"n": 1,
"prompt": "Hi there!",
"repetition_penalty": 1,
"temperature": 0.75,
"top_p": 1
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_RYu**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run petertill/cordia-a6 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"petertill/cordia-a6:b7d856c32b9f18e9b57c2e4ba7abb804f74285bb094a1c8ed299248c7a7951da",
{
input: {
max_length: 50,
n: 1,
prompt: "Hi there!",
repetition_penalty: 1,
temperature: 0.75,
top_p: 1
}
}
);
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_RYu**********************************
This is your API token. Keep it to yourself.
import replicate
Run petertill/cordia-a6 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"petertill/cordia-a6:b7d856c32b9f18e9b57c2e4ba7abb804f74285bb094a1c8ed299248c7a7951da",
input={
"max_length": 50,
"n": 1,
"prompt": "Hi there!",
"repetition_penalty": 1,
"temperature": 0.75,
"top_p": 1
}
)
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_RYu**********************************
This is your API token. Keep it to yourself.
Run petertill/cordia-a6 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": "petertill/cordia-a6:b7d856c32b9f18e9b57c2e4ba7abb804f74285bb094a1c8ed299248c7a7951da",
"input": {
"max_length": 50,
"n": 1,
"prompt": "Hi there!",
"repetition_penalty": 1,
"temperature": 0.75,
"top_p": 1
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Hi there! Let's talk about some cool things that happen when you combine Photoshop and some specific features within the AI tools you've been experimenting with. Let's dive into a detailed discussion about the tricks and techniques that emerge
{
"id": "danv615ttdrma0cq0vdbmhpkcr",
"model": "petertill/cordia-a6",
"version": "b7d856c32b9f18e9b57c2e4ba7abb804f74285bb094a1c8ed299248c7a7951da",
"input": {
"max_length": 50,
"n": 1,
"prompt": "Hi there!",
"repetition_penalty": 1,
"temperature": 0.75,
"top_p": 1
},
"logs": "",
"output": [
"Hi there! Let's talk about some cool things that happen when you combine Photoshop and some specific features within the AI tools you've been experimenting with. Let's dive into a detailed discussion about the tricks and techniques that emerge"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-25T09:51:27.443Z",
"started_at": "2025-05-25T09:53:07.814584Z",
"completed_at": "2025-05-25T09:53:14.658902Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/danv615ttdrma0cq0vdbmhpkcr/cancel",
"get": "https://api.replicate.com/v1/predictions/danv615ttdrma0cq0vdbmhpkcr",
"web": "https://replicate.com/p/danv615ttdrma0cq0vdbmhpkcr"
},
"metrics": {
"predict_time": 6.844317906,
"total_time": 107.215902
}
}