typefile
{
"image": "https://replicate.delivery/pbxt/LqOVyfLR6YnP8vGpniZBI6TmKta65h3Rr3pdLkciYGv1VX1Y/noble-black-warrior-elven-hero-handsome-illustration-image-ai-generated-art_853163-8783%20%281%29.jpg"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_Oky**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run pandas9/joytag using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"pandas9/joytag:74185273854701d220e6dadbe4f4034e8a9d53e4f07c7d446282ce2042407f6b",
{
input: {
image: "https://replicate.delivery/pbxt/LqOVyfLR6YnP8vGpniZBI6TmKta65h3Rr3pdLkciYGv1VX1Y/noble-black-warrior-elven-hero-handsome-illustration-image-ai-generated-art_853163-8783%20%281%29.jpg"
}
}
);
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_Oky**********************************
This is your API token. Keep it to yourself.
import replicate
Run pandas9/joytag using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pandas9/joytag:74185273854701d220e6dadbe4f4034e8a9d53e4f07c7d446282ce2042407f6b",
input={
"image": "https://replicate.delivery/pbxt/LqOVyfLR6YnP8vGpniZBI6TmKta65h3Rr3pdLkciYGv1VX1Y/noble-black-warrior-elven-hero-handsome-illustration-image-ai-generated-art_853163-8783%20%281%29.jpg"
}
)
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_Oky**********************************
This is your API token. Keep it to yourself.
Run pandas9/joytag 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": "pandas9/joytag:74185273854701d220e6dadbe4f4034e8a9d53e4f07c7d446282ce2042407f6b",
"input": {
"image": "https://replicate.delivery/pbxt/LqOVyfLR6YnP8vGpniZBI6TmKta65h3Rr3pdLkciYGv1VX1Y/noble-black-warrior-elven-hero-handsome-illustration-image-ai-generated-art_853163-8783%20%281%29.jpg"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
1girl, solo, long_hair, looking_at_viewer, blonde_hair, brown_hair, photoshop_(medium), original, brown_eyes, closed_mouth, upper_body, armor, blurry, lips, depth_of_field, scar, blurry_background, shoulder_armor, pauldrons, realistic, nose, breastplate
{
"id": "svns26h5znrgp0cjq2b94awn2m",
"model": "pandas9/joytag",
"version": "74185273854701d220e6dadbe4f4034e8a9d53e4f07c7d446282ce2042407f6b",
"input": {
"image": "https://replicate.delivery/pbxt/LqOVyfLR6YnP8vGpniZBI6TmKta65h3Rr3pdLkciYGv1VX1Y/noble-black-warrior-elven-hero-handsome-illustration-image-ai-generated-art_853163-8783%20%281%29.jpg"
},
"logs": "*******************\n/tmp/tmpub_7tnj9noble-black-warrior-elven-hero-handsome-illustration-image-ai-generated-art_853163-8783 (1).jpg\n*******************",
"output": "1girl, solo, long_hair, looking_at_viewer, blonde_hair, brown_hair, photoshop_(medium), original, brown_eyes, closed_mouth, upper_body, armor, blurry, lips, depth_of_field, scar, blurry_background, shoulder_armor, pauldrons, realistic, nose, breastplate",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-10-23T08:55:00.861Z",
"started_at": "2024-10-23T08:55:59.834407Z",
"completed_at": "2024-10-23T08:56:00.644619Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/svns26h5znrgp0cjq2b94awn2m/cancel",
"get": "https://api.replicate.com/v1/predictions/svns26h5znrgp0cjq2b94awn2m",
"web": "https://replicate.com/p/svns26h5znrgp0cjq2b94awn2m"
},
"metrics": {
"predict_time": 0.810212113,
"total_time": 59.783619
}
}