Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run jyoung105/honeybee using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jyoung105/honeybee:813e9d681d9936b2a184c2e3aefbb138688aa3100a708b46a05ad1be8b6fad0e",
{
input: {
image: "https://replicate.delivery/pbxt/KJcspdKRzoJNPWO6PsQcOTTNFjc2RmgCyPJdWen5pC12L7OM/demo-1.jpg",
top_k: 5,
prompt: "What is the title of this book?",
do_sample: true,
max_length: 200,
agree_to_research_only: true
}
}
);
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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run jyoung105/honeybee using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jyoung105/honeybee:813e9d681d9936b2a184c2e3aefbb138688aa3100a708b46a05ad1be8b6fad0e",
input={
"image": "https://replicate.delivery/pbxt/KJcspdKRzoJNPWO6PsQcOTTNFjc2RmgCyPJdWen5pC12L7OM/demo-1.jpg",
"top_k": 5,
"prompt": "What is the title of this book?",
"do_sample": True,
"max_length": 200,
"agree_to_research_only": True
}
)
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=<paste-your-token-here>
Find your API token in your account settings.
Run jyoung105/honeybee 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": "jyoung105/honeybee:813e9d681d9936b2a184c2e3aefbb138688aa3100a708b46a05ad1be8b6fad0e",
"input": {
"image": "https://replicate.delivery/pbxt/KJcspdKRzoJNPWO6PsQcOTTNFjc2RmgCyPJdWen5pC12L7OM/demo-1.jpg",
"top_k": 5,
"prompt": "What is the title of this book?",
"do_sample": true,
"max_length": 200,
"agree_to_research_only": true
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-01-30T09:24:42.191967Z",
"created_at": "2024-01-30T09:15:39.465296Z",
"data_removed": false,
"error": null,
"id": "vslygklbxgm5gig67oenhoms2e",
"input": {
"image": "https://replicate.delivery/pbxt/KJcspdKRzoJNPWO6PsQcOTTNFjc2RmgCyPJdWen5pC12L7OM/demo-1.jpg",
"top_k": 5,
"prompt": "What is the title of this book?",
"do_sample": true,
"max_length": 200,
"agree_to_research_only": true
},
"logs": null,
"metrics": {
"predict_time": 2.748344,
"total_time": 542.726671
},
"output": "The Little Book of Deep Learning",
"started_at": "2024-01-30T09:24:39.443623Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/vslygklbxgm5gig67oenhoms2e",
"cancel": "https://api.replicate.com/v1/predictions/vslygklbxgm5gig67oenhoms2e/cancel"
},
"version": "813e9d681d9936b2a184c2e3aefbb138688aa3100a708b46a05ad1be8b6fad0e"
}