defaulta cute minimalistic simple capybara side profile, in the style of Jon Klassen, desaturated light and airy pastel color palette, nursery art, white background
typetext
{
"guidance_scale": 20,
"negative_prompt": "3d, cgi, render, bad quality, normal quality",
"num_inference_steps": 50,
"num_outputs": 1,
"prompt": "a photo of a colorful lemon mocktail can with mint leaves with an abstract background"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_GCC**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run dhanushreddy291/amused-text-to-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"dhanushreddy291/amused-text-to-image:6f67e16d8ad72712b34058e1206329d10e9e18b9fbf5686f9485cfa0bd2be8f6",
{
input: {
guidance_scale: 20,
negative_prompt: "3d, cgi, render, bad quality, normal quality",
num_inference_steps: 50,
num_outputs: 1,
prompt: "a photo of a colorful lemon mocktail can with mint leaves with an abstract background"
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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_GCC**********************************
This is your API token. Keep it to yourself.
import replicate
Run dhanushreddy291/amused-text-to-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"dhanushreddy291/amused-text-to-image:6f67e16d8ad72712b34058e1206329d10e9e18b9fbf5686f9485cfa0bd2be8f6",
input={
"guidance_scale": 20,
"negative_prompt": "3d, cgi, render, bad quality, normal quality",
"num_inference_steps": 50,
"num_outputs": 1,
"prompt": "a photo of a colorful lemon mocktail can with mint leaves with an abstract background"
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_GCC**********************************
This is your API token. Keep it to yourself.
Run dhanushreddy291/amused-text-to-image 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": "dhanushreddy291/amused-text-to-image:6f67e16d8ad72712b34058e1206329d10e9e18b9fbf5686f9485cfa0bd2be8f6",
"input": {
"guidance_scale": 20,
"negative_prompt": "3d, cgi, render, bad quality, normal quality",
"num_inference_steps": 50,
"num_outputs": 1,
"prompt": "a photo of a colorful lemon mocktail can with mint leaves with an abstract background"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "v563bc3bwzbft5egvh6qvte52i",
"model": "dhanushreddy291/amused-text-to-image",
"version": "6f67e16d8ad72712b34058e1206329d10e9e18b9fbf5686f9485cfa0bd2be8f6",
"input": {
"guidance_scale": 20,
"negative_prompt": "3d, cgi, render, bad quality, normal quality",
"num_inference_steps": 50,
"num_outputs": 1,
"prompt": "a photo of a colorful lemon mocktail can with mint leaves with an abstract background"
},
"logs": "Using seed: 1386652\n 0%| | 0/50 [00:00<?, ?it/s]\n 6%|▌ | 3/50 [00:00<00:01, 26.23it/s]\n 12%|█▏ | 6/50 [00:00<00:01, 27.20it/s]\n 18%|█▊ | 9/50 [00:00<00:01, 27.67it/s]\n 24%|██▍ | 12/50 [00:00<00:01, 27.99it/s]\n 30%|███ | 15/50 [00:00<00:01, 28.26it/s]\n 36%|███▌ | 18/50 [00:00<00:01, 28.43it/s]\n 42%|████▏ | 21/50 [00:00<00:01, 27.70it/s]\n 48%|████▊ | 24/50 [00:00<00:00, 27.39it/s]\n 54%|█████▍ | 27/50 [00:00<00:00, 26.45it/s]\n 60%|██████ | 30/50 [00:01<00:00, 25.59it/s]\n 66%|██████▌ | 33/50 [00:01<00:00, 25.87it/s]\n 72%|███████▏ | 36/50 [00:01<00:00, 26.26it/s]\n 78%|███████▊ | 39/50 [00:01<00:00, 26.88it/s]\n 84%|████████▍ | 42/50 [00:01<00:00, 27.38it/s]\n 90%|█████████ | 45/50 [00:01<00:00, 27.60it/s]\n 96%|█████████▌| 48/50 [00:01<00:00, 26.99it/s]\n100%|██████████| 50/50 [00:01<00:00, 27.03it/s]",
"output": [
"https://replicate.delivery/pbxt/qeggT9SUk1Vqb68IOOcqeqMu4asrfYRreZ7jCcUnv89AUeYRC/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-01-10T16:35:10.383038Z",
"started_at": "2024-01-10T16:35:10.417122Z",
"completed_at": "2024-01-10T16:35:13.508688Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/v563bc3bwzbft5egvh6qvte52i/cancel",
"get": "https://api.replicate.com/v1/predictions/v563bc3bwzbft5egvh6qvte52i"
},
"metrics": {
"predict_time": 3.091566,
"total_time": 3.12565
}
}