typetext
{
"prompt": "what do i "
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_1UQ**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run naklecha/search-autocomplete using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"naklecha/search-autocomplete:727be041581f8fa1c05ef6b1772f5956a86f9adb31fcad489375c0091c951826",
{
input: {
prompt: "what do i "
}
}
);
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_1UQ**********************************
This is your API token. Keep it to yourself.
import replicate
Run naklecha/search-autocomplete using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"naklecha/search-autocomplete:727be041581f8fa1c05ef6b1772f5956a86f9adb31fcad489375c0091c951826",
input={
"prompt": "what do i "
}
)
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_1UQ**********************************
This is your API token. Keep it to yourself.
Run naklecha/search-autocomplete 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": "naklecha/search-autocomplete:727be041581f8fa1c05ef6b1772f5956a86f9adb31fcad489375c0091c951826",
"input": {
"prompt": "what do i "
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
what do i want for christmaswhat do i need to get a passportwhat do i want to eatwhat do i need to renew my licensewhat do i need on my finalwhat do i want for dinnerwhat do i need to open a bank accountwhat do i want for my birthdaywhat do i need for a passportwhat do i need to renew my passportwhat do i want for christmas 2023what do i need for a real idwhat do i do with my lifewhat do i do if i have covidwhat do i want for christmas quiz
{
"id": "dyopaojbf3vhlner6xqqtmq2pq",
"model": "naklecha/search-autocomplete",
"version": "727be041581f8fa1c05ef6b1772f5956a86f9adb31fcad489375c0091c951826",
"input": {
"prompt": "what do i "
},
"logs": "",
"output": [
"what do i want for christmas",
"what do i need to get a passport",
"what do i want to eat",
"what do i need to renew my license",
"what do i need on my final",
"what do i want for dinner",
"what do i need to open a bank account",
"what do i want for my birthday",
"what do i need for a passport",
"what do i need to renew my passport",
"what do i want for christmas 2023",
"what do i need for a real id",
"what do i do with my life",
"what do i do if i have covid",
"what do i want for christmas quiz"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-12-15T09:57:32.798157Z",
"started_at": "2023-12-15T09:57:32.813686Z",
"completed_at": "2023-12-15T09:57:32.970115Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/dyopaojbf3vhlner6xqqtmq2pq/cancel",
"get": "https://api.replicate.com/v1/predictions/dyopaojbf3vhlner6xqqtmq2pq"
},
"metrics": {
"predict_time": 0.156429,
"total_time": 0.171958
}
}