methexis-inc
/
img2prompt
Get an approximate text prompt, with style, matching an image. (Optimized for stable-diffusion (clip ViT-L/14))
Prediction
methexis-inc/img2prompt:50adaf2dIDxtjjjd6mkzgxjbeqmomvqvyv54StatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run methexis-inc/img2prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", { input: { image: "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run methexis-inc/img2prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", input={ "image": "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run methexis-inc/img2prompt 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": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", "input": { "image": "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5 \ -i 'image="https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
a cat wearing a suit and tie with green eyes, a stock photo by Hanns Katz, pexels, furry art, stockphoto, creative commons attribution, quantum wavetracing{ "completed_at": "2022-08-24T09:37:25.636676Z", "created_at": "2022-08-24T09:37:04.461325Z", "data_removed": false, "error": null, "id": "xtjjjd6mkzgxjbeqmomvqvyv54", "input": { "image": "https://replicate.delivery/mgxm/8b4d747d-feca-477d-8069-ee4d5f89ad8e/a_high_detail_shot_of_a_cat_wearing_a_suit_realism_8k_-n_9_.png" }, "logs": "Interrogating with ViT-L/14...", "metrics": { "predict_time": 21.018027, "total_time": 21.175351 }, "output": "\n\na cat wearing a suit and tie with green eyes, a stock photo by Hanns Katz, pexels, furry art, stockphoto, creative commons attribution, quantum wavetracing", "started_at": "2022-08-24T09:37:04.618649Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/xtjjjd6mkzgxjbeqmomvqvyv54", "cancel": "https://api.replicate.com/v1/predictions/xtjjjd6mkzgxjbeqmomvqvyv54/cancel" }, "version": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5" }
Generated inInterrogating with ViT-L/14...
Prediction
methexis-inc/img2prompt:50adaf2dIDpsfnq7uzdbenbmzzxskuymvmuuStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/0b69ea1a-0c47-4753-9b51-807121f0eb66/humankind_transcendence_into_collaborative_intelligence_con.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run methexis-inc/img2prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", { input: { image: "https://replicate.delivery/mgxm/0b69ea1a-0c47-4753-9b51-807121f0eb66/humankind_transcendence_into_collaborative_intelligence_con.png" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run methexis-inc/img2prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", input={ "image": "https://replicate.delivery/mgxm/0b69ea1a-0c47-4753-9b51-807121f0eb66/humankind_transcendence_into_collaborative_intelligence_con.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run methexis-inc/img2prompt 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": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", "input": { "image": "https://replicate.delivery/mgxm/0b69ea1a-0c47-4753-9b51-807121f0eb66/humankind_transcendence_into_collaborative_intelligence_con.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5 \ -i 'image="https://replicate.delivery/mgxm/0b69ea1a-0c47-4753-9b51-807121f0eb66/humankind_transcendence_into_collaborative_intelligence_con.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/0b69ea1a-0c47-4753-9b51-807121f0eb66/humankind_transcendence_into_collaborative_intelligence_con.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
a painting of a woman's head with multiple circles around her, a hologram by Alex Grey, cg society, psychedelic art, fractalism, psychedelic, global illumination{ "completed_at": "2022-08-24T09:42:05.487360Z", "created_at": "2022-08-24T09:41:44.207527Z", "data_removed": false, "error": null, "id": "psfnq7uzdbenbmzzxskuymvmuu", "input": { "image": "https://replicate.delivery/mgxm/0b69ea1a-0c47-4753-9b51-807121f0eb66/humankind_transcendence_into_collaborative_intelligence_con.png" }, "logs": "Interrogating with ViT-L/14...", "metrics": { "predict_time": 21.118545, "total_time": 21.279833 }, "output": "\n\na painting of a woman's head with multiple circles around her, a hologram by Alex Grey, cg society, psychedelic art, fractalism, psychedelic, global illumination", "started_at": "2022-08-24T09:41:44.368815Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/psfnq7uzdbenbmzzxskuymvmuu", "cancel": "https://api.replicate.com/v1/predictions/psfnq7uzdbenbmzzxskuymvmuu/cancel" }, "version": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5" }
Generated inInterrogating with ViT-L/14...
Prediction
methexis-inc/img2prompt:50adaf2dIDnbxaunnsdffv3ianycxjlvci6yStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/7ca843f2-c560-47f8-a0d4-a2fe034e890a/american_astronaut_in_an_indian_forest_riding_a_beautiful_w.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run methexis-inc/img2prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", { input: { image: "https://replicate.delivery/mgxm/7ca843f2-c560-47f8-a0d4-a2fe034e890a/american_astronaut_in_an_indian_forest_riding_a_beautiful_w.png" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run methexis-inc/img2prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", input={ "image": "https://replicate.delivery/mgxm/7ca843f2-c560-47f8-a0d4-a2fe034e890a/american_astronaut_in_an_indian_forest_riding_a_beautiful_w.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run methexis-inc/img2prompt 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": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", "input": { "image": "https://replicate.delivery/mgxm/7ca843f2-c560-47f8-a0d4-a2fe034e890a/american_astronaut_in_an_indian_forest_riding_a_beautiful_w.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5 \ -i 'image="https://replicate.delivery/mgxm/7ca843f2-c560-47f8-a0d4-a2fe034e890a/american_astronaut_in_an_indian_forest_riding_a_beautiful_w.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/7ca843f2-c560-47f8-a0d4-a2fe034e890a/american_astronaut_in_an_indian_forest_riding_a_beautiful_w.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
a man riding on the back of a white horse through a forest, a detailed matte painting by Jeremy Geddes, cgsociety, space art, matte painting, redshift, concept art{ "completed_at": "2022-08-24T09:47:33.114975Z", "created_at": "2022-08-24T09:47:11.883468Z", "data_removed": false, "error": null, "id": "nbxaunnsdffv3ianycxjlvci6y", "input": { "image": "https://replicate.delivery/mgxm/7ca843f2-c560-47f8-a0d4-a2fe034e890a/american_astronaut_in_an_indian_forest_riding_a_beautiful_w.png" }, "logs": "Interrogating with ViT-L/14...", "metrics": { "predict_time": 21.091548, "total_time": 21.231507 }, "output": "\n\na man riding on the back of a white horse through a forest, a detailed matte painting by Jeremy Geddes, cgsociety, space art, matte painting, redshift, concept art", "started_at": "2022-08-24T09:47:12.023427Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/nbxaunnsdffv3ianycxjlvci6y", "cancel": "https://api.replicate.com/v1/predictions/nbxaunnsdffv3ianycxjlvci6y/cancel" }, "version": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5" }
Generated inInterrogating with ViT-L/14...
Prediction
methexis-inc/img2prompt:50adaf2dIDcq7qunqws5fbzjx3crvr2cel5aStatusSucceededSourceWebHardware–Total durationCreatedInput
{ "image": "https://replicate.delivery/mgxm/a3daf048-9f89-472e-af91-302733090760/out-3.png" }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run methexis-inc/img2prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", { input: { image: "https://replicate.delivery/mgxm/a3daf048-9f89-472e-af91-302733090760/out-3.png" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run methexis-inc/img2prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "methexis-inc/img2prompt:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", input={ "image": "https://replicate.delivery/mgxm/a3daf048-9f89-472e-af91-302733090760/out-3.png" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run methexis-inc/img2prompt 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": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5", "input": { "image": "https://replicate.delivery/mgxm/a3daf048-9f89-472e-af91-302733090760/out-3.png" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5 \ -i 'image="https://replicate.delivery/mgxm/a3daf048-9f89-472e-af91-302733090760/out-3.png"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/methexis-inc/img2prompt@sha256:50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/mgxm/a3daf048-9f89-472e-af91-302733090760/out-3.png" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
a painting of a mountain landscape with a river running through it, a matte painting by Asher Brown Durand, cgsociety, hudson river school, matte painting, oil on canvas, terragen{ "completed_at": "2022-08-25T00:28:07.690797Z", "created_at": "2022-08-25T00:27:39.201750Z", "data_removed": false, "error": null, "id": "cq7qunqws5fbzjx3crvr2cel5a", "input": { "image": "https://replicate.delivery/mgxm/a3daf048-9f89-472e-af91-302733090760/out-3.png" }, "logs": "Interrogating with ViT-L/14...", "metrics": { "predict_time": 28.300395, "total_time": 28.489047 }, "output": "\n\na painting of a mountain landscape with a river running through it, a matte painting by Asher Brown Durand, cgsociety, hudson river school, matte painting, oil on canvas, terragen", "started_at": "2022-08-25T00:27:39.390402Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cq7qunqws5fbzjx3crvr2cel5a", "cancel": "https://api.replicate.com/v1/predictions/cq7qunqws5fbzjx3crvr2cel5a/cancel" }, "version": "50adaf2d3ad20a6f911a8a9e3ccf777b263b8596fbd2c8fc26e8888f8a0edbb5" }
Generated inInterrogating with ViT-L/14...
Want to make some of these yourself?
Run this model