lucataco
/
moondream1
(Research only) Moondream1 is a vision language model that performs on par with models twice its size
Prediction
lucataco/moondream1:ecd26482IDjm3krzrbjayuavxmz4cdk2oq5uStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHevlhGyRTzXpnVB7ZiwZRoQIzQHeMrCa18oezabN7Bb5G78/lbdl.jpg", "prompt": "What can you tell me about this book?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHevlhGyRTzXpnVB7ZiwZRoQIzQHeMrCa18oezabN7Bb5G78/lbdl.jpg", prompt: "What can you tell me about this book?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHevlhGyRTzXpnVB7ZiwZRoQIzQHeMrCa18oezabN7Bb5G78/lbdl.jpg", "prompt": "What can you tell me about this book?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHevlhGyRTzXpnVB7ZiwZRoQIzQHeMrCa18oezabN7Bb5G78/lbdl.jpg", "prompt": "What can you tell me about this book?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The book appears to be a white booklet titled "The Little Book of Deep Learning." It is held in a person's hand, and it seems to be a personal possession. The book's content focuses on the basics of deep learning, which is a field of artificial intelligence that uses neural networks to process and analyze data. It is likely that the book provides an introduction to the concepts and techniques involved in deep learning, making it accessible for beginners and helping them understand the fundamentals of this advanced machine learning approach.{ "completed_at": "2024-01-24T20:16:04.215151Z", "created_at": "2024-01-24T20:15:56.654333Z", "data_removed": false, "error": null, "id": "jm3krzrbjayuavxmz4cdk2oq5u", "input": { "image": "https://replicate.delivery/pbxt/KHevlhGyRTzXpnVB7ZiwZRoQIzQHeMrCa18oezabN7Bb5G78/lbdl.jpg", "prompt": "What can you tell me about this book?" }, "logs": null, "metrics": { "predict_time": 7.547891, "total_time": 7.560818 }, "output": [ "T", "h", "e", " ", "b", "o", "o", "k", " ", "a", "p", "p", "e", "a", "r", "s", " ", "t", "o", " ", "b", "e", " ", "a", " ", "w", "h", "i", "t", "e", " ", "b", "o", "o", "k", "l", "e", "t", " ", "t", "i", "t", "l", "e", "d", " ", "\"", "T", "h", "e", " ", "L", "i", "t", "t", "l", "e", " ", "B", "o", "o", "k", " ", "o", "f", " ", "D", "e", "e", "p", " ", "L", "e", "a", "r", "n", "i", "n", "g", ".", "\"", " ", "I", "t", " ", "i", "s", " ", "h", "e", "l", "d", " ", "i", "n", " ", "a", " ", "p", "e", "r", "s", "o", "n", "'", "s", " ", "h", "a", "n", "d", ",", " ", "a", "n", "d", " ", "i", "t", " ", "s", "e", "e", "m", "s", " ", "t", "o", " ", "b", "e", " ", "a", " ", "p", "e", "r", "s", "o", "n", "a", "l", " ", "p", "o", "s", "s", "e", "s", "s", "i", "o", "n", ".", " ", "T", "h", "e", " ", "b", "o", "o", "k", "'", "s", " ", "c", "o", "n", "t", "e", "n", "t", " ", "f", "o", "c", "u", "s", "e", "s", " ", "o", "n", " ", "t", "h", "e", " ", "b", "a", "s", "i", "c", "s", " ", "o", "f", " ", "d", "e", "e", "p", " ", "l", "e", "a", "r", "n", "i", "n", "g", ",", " ", "w", "h", "i", "c", "h", " ", "i", "s", " ", "a", " ", "f", "i", "e", "l", "d", " ", "o", "f", " ", "a", "r", "t", "i", "f", "i", "c", "i", "a", "l", " ", "i", "n", "t", "e", "l", "l", "i", "g", "e", "n", "c", "e", " ", "t", "h", "a", "t", " ", "u", "s", "e", "s", " ", "n", "e", "u", "r", "a", "l", " ", "n", "e", "t", "w", "o", "r", "k", "s", " ", "t", "o", " ", "p", "r", "o", "c", "e", "s", "s", " ", "a", "n", "d", " ", "a", "n", "a", "l", "y", "z", "e", " ", "d", "a", "t", "a", ".", " ", "I", "t", " ", "i", "s", " ", "l", "i", "k", "e", "l", "y", " ", "t", "h", "a", "t", " ", "t", "h", "e", " ", "b", "o", "o", "k", " ", "p", "r", "o", "v", "i", "d", "e", "s", " ", "a", "n", " ", "i", "n", "t", "r", "o", "d", "u", "c", "t", "i", "o", "n", " ", "t", "o", " ", "t", "h", "e", " ", "c", "o", "n", "c", "e", "p", "t", "s", " ", "a", "n", "d", " ", "t", "e", "c", "h", "n", "i", "q", "u", "e", "s", " ", "i", "n", "v", "o", "l", "v", "e", "d", " ", "i", "n", " ", "d", "e", "e", "p", " ", "l", "e", "a", "r", "n", "i", "n", "g", ",", " ", "m", "a", "k", "i", "n", "g", " ", "i", "t", " ", "a", "c", "c", "e", "s", "s", "i", "b", "l", "e", " ", "f", "o", "r", " ", "b", "e", "g", "i", "n", "n", "e", "r", "s", " ", "a", "n", "d", " ", "h", "e", "l", "p", "i", "n", "g", " ", "t", "h", "e", "m", " ", "u", "n", "d", "e", "r", "s", "t", "a", "n", "d", " ", "t", "h", "e", " ", "f", "u", "n", "d", "a", "m", "e", "n", "t", "a", "l", "s", " ", "o", "f", " ", "t", "h", "i", "s", " ", "a", "d", "v", "a", "n", "c", "e", "d", " ", "m", "a", "c", "h", "i", "n", "e", " ", "l", "e", "a", "r", "n", "i", "n", "g", " ", "a", "p", "p", "r", "o", "a", "c", "h", "." ], "started_at": "2024-01-24T20:15:56.667260Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/jm3krzrbjayuavxmz4cdk2oq5u", "get": "https://api.replicate.com/v1/predictions/jm3krzrbjayuavxmz4cdk2oq5u", "cancel": "https://api.replicate.com/v1/predictions/jm3krzrbjayuavxmz4cdk2oq5u/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482IDmpan5ejbp5w747u4khyf6mtte4StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHew0gBviZkTbt5liWMz71ISz8cWRanLqlCOZSufAPqwGxC2/lbdl.jpg", "prompt": "Where is the person standing?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHew0gBviZkTbt5liWMz71ISz8cWRanLqlCOZSufAPqwGxC2/lbdl.jpg", prompt: "Where is the person standing?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHew0gBviZkTbt5liWMz71ISz8cWRanLqlCOZSufAPqwGxC2/lbdl.jpg", "prompt": "Where is the person standing?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHew0gBviZkTbt5liWMz71ISz8cWRanLqlCOZSufAPqwGxC2/lbdl.jpg", "prompt": "Where is the person standing?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The person is standing on a balcony or a deck, which is located outside the house.{ "completed_at": "2024-01-24T20:16:13.311709Z", "created_at": "2024-01-24T20:16:11.464967Z", "data_removed": false, "error": null, "id": "mpan5ejbp5w747u4khyf6mtte4", "input": { "image": "https://replicate.delivery/pbxt/KHew0gBviZkTbt5liWMz71ISz8cWRanLqlCOZSufAPqwGxC2/lbdl.jpg", "prompt": "Where is the person standing?" }, "logs": null, "metrics": { "predict_time": 1.836195, "total_time": 1.846742 }, "output": [ "T", "h", "e", " ", "p", "e", "r", "s", "o", "n", " ", "i", "s", " ", "s", "t", "a", "n", "d", "i", "n", "g", " ", "o", "n", " ", "a", " ", "b", "a", "l", "c", "o", "n", "y", " ", "o", "r", " ", "a", " ", "d", "e", "c", "k", ",", " ", "w", "h", "i", "c", "h", " ", "i", "s", " ", "l", "o", "c", "a", "t", "e", "d", " ", "o", "u", "t", "s", "i", "d", "e", " ", "t", "h", "e", " ", "h", "o", "u", "s", "e", "." ], "started_at": "2024-01-24T20:16:11.475514Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/mpan5ejbp5w747u4khyf6mtte4", "get": "https://api.replicate.com/v1/predictions/mpan5ejbp5w747u4khyf6mtte4", "cancel": "https://api.replicate.com/v1/predictions/mpan5ejbp5w747u4khyf6mtte4/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482ID25yausbbiafqtgfmltdtjninciStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHewL2JJDsEf8eNtFx7m8UZjnG5QhDhIiUitn7B78ycNHGQi/girl-eating.jpeg", "prompt": "What type of food is the girl holding?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHewL2JJDsEf8eNtFx7m8UZjnG5QhDhIiUitn7B78ycNHGQi/girl-eating.jpeg", prompt: "What type of food is the girl holding?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHewL2JJDsEf8eNtFx7m8UZjnG5QhDhIiUitn7B78ycNHGQi/girl-eating.jpeg", "prompt": "What type of food is the girl holding?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHewL2JJDsEf8eNtFx7m8UZjnG5QhDhIiUitn7B78ycNHGQi/girl-eating.jpeg", "prompt": "What type of food is the girl holding?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The girl is holding a large hamburger or burger, which is a type of sandwich made from ground meat, typically consisting of a beef patty, and is usually served between two slices of bread.{ "completed_at": "2024-01-24T20:16:35.871343Z", "created_at": "2024-01-24T20:16:32.614238Z", "data_removed": false, "error": null, "id": "25yausbbiafqtgfmltdtjninci", "input": { "image": "https://replicate.delivery/pbxt/KHewL2JJDsEf8eNtFx7m8UZjnG5QhDhIiUitn7B78ycNHGQi/girl-eating.jpeg", "prompt": "What type of food is the girl holding?" }, "logs": null, "metrics": { "predict_time": 3.244475, "total_time": 3.257105 }, "output": [ "T", "h", "e", " ", "g", "i", "r", "l", " ", "i", "s", " ", "h", "o", "l", "d", "i", "n", "g", " ", "a", " ", "l", "a", "r", "g", "e", " ", "h", "a", "m", "b", "u", "r", "g", "e", "r", " ", "o", "r", " ", "b", "u", "r", "g", "e", "r", ",", " ", "w", "h", "i", "c", "h", " ", "i", "s", " ", "a", " ", "t", "y", "p", "e", " ", "o", "f", " ", "s", "a", "n", "d", "w", "i", "c", "h", " ", "m", "a", "d", "e", " ", "f", "r", "o", "m", " ", "g", "r", "o", "u", "n", "d", " ", "m", "e", "a", "t", ",", " ", "t", "y", "p", "i", "c", "a", "l", "l", "y", " ", "c", "o", "n", "s", "i", "s", "t", "i", "n", "g", " ", "o", "f", " ", "a", " ", "b", "e", "e", "f", " ", "p", "a", "t", "t", "y", ",", " ", "a", "n", "d", " ", "i", "s", " ", "u", "s", "u", "a", "l", "l", "y", " ", "s", "e", "r", "v", "e", "d", " ", "b", "e", "t", "w", "e", "e", "n", " ", "t", "w", "o", " ", "s", "l", "i", "c", "e", "s", " ", "o", "f", " ", "b", "r", "e", "a", "d", "." ], "started_at": "2024-01-24T20:16:32.626868Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/25yausbbiafqtgfmltdtjninci", "get": "https://api.replicate.com/v1/predictions/25yausbbiafqtgfmltdtjninci", "cancel": "https://api.replicate.com/v1/predictions/25yausbbiafqtgfmltdtjninci/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482IDa4euzbzbloxbnr3wkliaqgnfheStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHewxSCcQPNsFJy48aswJ4pTIhgp9C165PmzeaI5flnunSJ8/red-trolley.jpeg", "prompt": "What color is the train?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHewxSCcQPNsFJy48aswJ4pTIhgp9C165PmzeaI5flnunSJ8/red-trolley.jpeg", prompt: "What color is the train?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHewxSCcQPNsFJy48aswJ4pTIhgp9C165PmzeaI5flnunSJ8/red-trolley.jpeg", "prompt": "What color is the train?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHewxSCcQPNsFJy48aswJ4pTIhgp9C165PmzeaI5flnunSJ8/red-trolley.jpeg", "prompt": "What color is the train?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The train is red.{ "completed_at": "2024-01-24T20:17:12.687345Z", "created_at": "2024-01-24T20:17:11.808169Z", "data_removed": false, "error": null, "id": "a4euzbzbloxbnr3wkliaqgnfhe", "input": { "image": "https://replicate.delivery/pbxt/KHewxSCcQPNsFJy48aswJ4pTIhgp9C165PmzeaI5flnunSJ8/red-trolley.jpeg", "prompt": "What color is the train?" }, "logs": null, "metrics": { "predict_time": 0.865693, "total_time": 0.879176 }, "output": [ "T", "h", "e", " ", "t", "r", "a", "i", "n", " ", "i", "s", " ", "r", "e", "d", "." ], "started_at": "2024-01-24T20:17:11.821652Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/a4euzbzbloxbnr3wkliaqgnfhe", "get": "https://api.replicate.com/v1/predictions/a4euzbzbloxbnr3wkliaqgnfhe", "cancel": "https://api.replicate.com/v1/predictions/a4euzbzbloxbnr3wkliaqgnfhe/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482ID3kisdhrbdoxoqdyws5m4k2rdvyStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHexJrtMGdpKngsr894vKNTO63G0fktD68taFQ58m5T6bxdY/red-trolley.jpeg", "prompt": "What kind of public transportation is in the image?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHexJrtMGdpKngsr894vKNTO63G0fktD68taFQ58m5T6bxdY/red-trolley.jpeg", prompt: "What kind of public transportation is in the image?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHexJrtMGdpKngsr894vKNTO63G0fktD68taFQ58m5T6bxdY/red-trolley.jpeg", "prompt": "What kind of public transportation is in the image?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHexJrtMGdpKngsr894vKNTO63G0fktD68taFQ58m5T6bxdY/red-trolley.jpeg", "prompt": "What kind of public transportation is in the image?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The image features a red trolley or commuter train on a city street, which is a form of public transportation.{ "completed_at": "2024-01-24T20:17:36.909424Z", "created_at": "2024-01-24T20:17:34.880086Z", "data_removed": false, "error": null, "id": "3kisdhrbdoxoqdyws5m4k2rdvy", "input": { "image": "https://replicate.delivery/pbxt/KHexJrtMGdpKngsr894vKNTO63G0fktD68taFQ58m5T6bxdY/red-trolley.jpeg", "prompt": "What kind of public transportation is in the image?" }, "logs": null, "metrics": { "predict_time": 2.018683, "total_time": 2.029338 }, "output": [ "T", "h", "e", " ", "i", "m", "a", "g", "e", " ", "f", "e", "a", "t", "u", "r", "e", "s", " ", "a", " ", "r", "e", "d", " ", "t", "r", "o", "l", "l", "e", "y", " ", "o", "r", " ", "c", "o", "m", "m", "u", "t", "e", "r", " ", "t", "r", "a", "i", "n", " ", "o", "n", " ", "a", " ", "c", "i", "t", "y", " ", "s", "t", "r", "e", "e", "t", ",", " ", "w", "h", "i", "c", "h", " ", "i", "s", " ", "a", " ", "f", "o", "r", "m", " ", "o", "f", " ", "p", "u", "b", "l", "i", "c", " ", "t", "r", "a", "n", "s", "p", "o", "r", "t", "a", "t", "i", "o", "n", "." ], "started_at": "2024-01-24T20:17:34.890741Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/3kisdhrbdoxoqdyws5m4k2rdvy", "get": "https://api.replicate.com/v1/predictions/3kisdhrbdoxoqdyws5m4k2rdvy", "cancel": "https://api.replicate.com/v1/predictions/3kisdhrbdoxoqdyws5m4k2rdvy/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482IDpd2j6prb35beedmzlsimgshziiStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", "prompt": "What color is the woman's hair?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", prompt: "What color is the woman's hair?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", "prompt": "What color is the woman's hair?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", "prompt": "What color is the woman\'s hair?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The woman's hair is white.{ "completed_at": "2024-01-24T20:16:46.141455Z", "created_at": "2024-01-24T20:16:45.123620Z", "data_removed": false, "error": null, "id": "pd2j6prb35beedmzlsimgshzii", "input": { "image": "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", "prompt": "What color is the woman's hair?" }, "logs": null, "metrics": { "predict_time": 1.005457, "total_time": 1.017835 }, "output": [ "T", "h", "e", " ", "w", "o", "m", "a", "n", "'", "s", " ", "h", "a", "i", "r", " ", "i", "s", " ", "w", "h", "i", "t", "e", "." ], "started_at": "2024-01-24T20:16:45.135998Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/pd2j6prb35beedmzlsimgshzii", "get": "https://api.replicate.com/v1/predictions/pd2j6prb35beedmzlsimgshzii", "cancel": "https://api.replicate.com/v1/predictions/pd2j6prb35beedmzlsimgshzii/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482ID7fsw55rb5mftl2eqmzjgrvjkruStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", "prompt": "What is the girl doing in the image?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", prompt: "What is the girl doing in the image?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", "prompt": "What is the girl doing in the image?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", "prompt": "What is the girl doing in the image?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The girl in the image is eating a hamburger.{ "completed_at": "2024-01-24T20:16:57.971430Z", "created_at": "2024-01-24T20:16:56.651782Z", "data_removed": false, "error": null, "id": "7fsw55rb5mftl2eqmzjgrvjkru", "input": { "image": "https://replicate.delivery/pbxt/KHewWqV9GMN8ctH90pOt4NZfhgP0EVfRaeHhG1At7HaPFVDJ/girl-eating.jpeg", "prompt": "What is the girl doing in the image?" }, "logs": null, "metrics": { "predict_time": 1.307872, "total_time": 1.319648 }, "output": [ "T", "h", "e", " ", "g", "i", "r", "l", " ", "i", "n", " ", "t", "h", "e", " ", "i", "m", "a", "g", "e", " ", "i", "s", " ", "e", "a", "t", "i", "n", "g", " ", "a", " ", "h", "a", "m", "b", "u", "r", "g", "e", "r", "." ], "started_at": "2024-01-24T20:16:56.663558Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/7fsw55rb5mftl2eqmzjgrvjkru", "get": "https://api.replicate.com/v1/predictions/7fsw55rb5mftl2eqmzjgrvjkru", "cancel": "https://api.replicate.com/v1/predictions/7fsw55rb5mftl2eqmzjgrvjkru/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482IDqgra2uzbszp6qytkw44zn7qj24StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHex7x0pwInfbPRtR1oSJJAuZwngddHgBtR8iAuIc8Tl01s5/red-trolley.jpeg", "prompt": "What is the bus doing in the image?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHex7x0pwInfbPRtR1oSJJAuZwngddHgBtR8iAuIc8Tl01s5/red-trolley.jpeg", prompt: "What is the bus doing in the image?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHex7x0pwInfbPRtR1oSJJAuZwngddHgBtR8iAuIc8Tl01s5/red-trolley.jpeg", "prompt": "What is the bus doing in the image?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHex7x0pwInfbPRtR1oSJJAuZwngddHgBtR8iAuIc8Tl01s5/red-trolley.jpeg", "prompt": "What is the bus doing in the image?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The bus is driving down a city street, passing through an intersection, and traveling on a railroad track.{ "completed_at": "2024-01-24T20:17:24.846823Z", "created_at": "2024-01-24T20:17:23.010982Z", "data_removed": false, "error": null, "id": "qgra2uzbszp6qytkw44zn7qj24", "input": { "image": "https://replicate.delivery/pbxt/KHex7x0pwInfbPRtR1oSJJAuZwngddHgBtR8iAuIc8Tl01s5/red-trolley.jpeg", "prompt": "What is the bus doing in the image?" }, "logs": null, "metrics": { "predict_time": 1.823674, "total_time": 1.835841 }, "output": [ "T", "h", "e", " ", "b", "u", "s", " ", "i", "s", " ", "d", "r", "i", "v", "i", "n", "g", " ", "d", "o", "w", "n", " ", "a", " ", "c", "i", "t", "y", " ", "s", "t", "r", "e", "e", "t", ",", " ", "p", "a", "s", "s", "i", "n", "g", " ", "t", "h", "r", "o", "u", "g", "h", " ", "a", "n", " ", "i", "n", "t", "e", "r", "s", "e", "c", "t", "i", "o", "n", ",", " ", "a", "n", "d", " ", "t", "r", "a", "v", "e", "l", "i", "n", "g", " ", "o", "n", " ", "a", " ", "r", "a", "i", "l", "r", "o", "a", "d", " ", "t", "r", "a", "c", "k", "." ], "started_at": "2024-01-24T20:17:23.023149Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/qgra2uzbszp6qytkw44zn7qj24", "get": "https://api.replicate.com/v1/predictions/qgra2uzbszp6qytkw44zn7qj24", "cancel": "https://api.replicate.com/v1/predictions/qgra2uzbszp6qytkw44zn7qj24/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482IDxhfjq6zbxe7tc3sqnoaqxojeg4StatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg", "prompt": "What is the title of this book?" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg", prompt: "What is the title of this book?" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg", "prompt": "What is the title of this book?" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg", "prompt": "What is the title of this book?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The Little Book of Deep Learning{ "completed_at": "2024-01-24T20:17:57.438698Z", "created_at": "2024-01-24T20:17:56.433883Z", "data_removed": false, "error": null, "id": "xhfjq6zbxe7tc3sqnoaqxojeg4", "input": { "image": "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg", "prompt": "What is the title of this book?" }, "logs": null, "metrics": { "predict_time": 0.991399, "total_time": 1.004815 }, "output": [ "T", "h", "e", " ", "L", "i", "t", "t", "l", "e", " ", "B", "o", "o", "k", " ", "o", "f", " ", "D", "e", "e", "p", " ", "L", "e", "a", "r", "n", "i", "n", "g" ], "started_at": "2024-01-24T20:17:56.447299Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/xhfjq6zbxe7tc3sqnoaqxojeg4", "get": "https://api.replicate.com/v1/predictions/xhfjq6zbxe7tc3sqnoaqxojeg4", "cancel": "https://api.replicate.com/v1/predictions/xhfjq6zbxe7tc3sqnoaqxojeg4/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated inPrediction
lucataco/moondream1:ecd26482IDfccwiizbkjoeohwr43rq3ix32uStatusSucceededSourceWebHardwareT4Total durationCreatedInput
{ "image": "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", { input: { image: "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run lucataco/moondream1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "lucataco/moondream1:ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", input={ "image": "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg" } ) # The lucataco/moondream1 model can stream output as it's running. # The predict method returns an iterator, and you can iterate over that output. for item in output: # https://replicate.com/lucataco/moondream1/api#output-schema print(item, end="")
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run lucataco/moondream1 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": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5", "input": { "image": "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
The person is holding a book titled "The Little Book of Deep Learning".{ "completed_at": "2024-01-24T20:20:07.164122Z", "created_at": "2024-01-24T20:20:05.436742Z", "data_removed": false, "error": null, "id": "fccwiizbkjoeohwr43rq3ix32u", "input": { "image": "https://replicate.delivery/pbxt/KHevN9pbiFQqC5LlI4WBzM8aoAEEMXEVcZoHy0xNAjsEVHKD/lbdl.jpg" }, "logs": null, "metrics": { "predict_time": 1.715105, "total_time": 1.72738 }, "output": [ "T", "h", "e", " ", "p", "e", "r", "s", "o", "n", " ", "i", "s", " ", "h", "o", "l", "d", "i", "n", "g", " ", "a", " ", "b", "o", "o", "k", " ", "t", "i", "t", "l", "e", "d", " ", "\"", "T", "h", "e", " ", "L", "i", "t", "t", "l", "e", " ", "B", "o", "o", "k", " ", "o", "f", " ", "D", "e", "e", "p", " ", "L", "e", "a", "r", "n", "i", "n", "g", "\"", "." ], "started_at": "2024-01-24T20:20:05.449017Z", "status": "succeeded", "urls": { "stream": "https://streaming-api.svc.us-central1.g.replicate.net/v1/predictions/fccwiizbkjoeohwr43rq3ix32u", "get": "https://api.replicate.com/v1/predictions/fccwiizbkjoeohwr43rq3ix32u", "cancel": "https://api.replicate.com/v1/predictions/fccwiizbkjoeohwr43rq3ix32u/cancel" }, "version": "ecd26482e4c9220957e22290cb616200b51217fe807f61653a8459ed7541e9d5" }
Generated in
Want to make some of these yourself?
Run this model