default3 fish in a fish tank wearing adorable outfits, best quality, hd
typetext
{
"apply_watermark": true,
"guidance_scale": 2,
"height": 1024,
"negative_prompt": "nsfw, bad quality, bad anatomy, worst quality, low quality, low resolutions, extra fingers, blur, blurry, ugly, wrongs proportions, watermark, image artifacts, lowres, ugly, jpeg artifacts, deformed, noisy image",
"num_inference_steps": 8,
"num_outputs": 1,
"prompt": "The divine tree of knowledge, an interplay between purple and gold, floats in the void of the sea of quanta, the tree is made of crystal, the void is made of nothingness, strong contrast, dim lighting, beautiful and surreal scene. wide shot",
"prompt_strength": 0.8,
"scheduler": "K_EULER_ANCESTRAL",
"width": 1024
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_4K8**********************************
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 datacte/proteus-v0.4-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"datacte/proteus-v0.4-lightning:21464a198e9baa3b583f93d8daaaa9e851b91ae1e32accb96ce5081a18a2d87c",
{
input: {
apply_watermark: true,
guidance_scale: 2,
height: 1024,
negative_prompt: "nsfw, bad quality, bad anatomy, worst quality, low quality, low resolutions, extra fingers, blur, blurry, ugly, wrongs proportions, watermark, image artifacts, lowres, ugly, jpeg artifacts, deformed, noisy image",
num_inference_steps: 8,
num_outputs: 1,
prompt: "The divine tree of knowledge, an interplay between purple and gold, floats in the void of the sea of quanta, the tree is made of crystal, the void is made of nothingness, strong contrast, dim lighting, beautiful and surreal scene. wide shot",
prompt_strength: 0.8,
scheduler: "K_EULER_ANCESTRAL",
width: 1024
}
}
);
// 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_4K8**********************************
This is your API token. Keep it to yourself.
import replicate
Run datacte/proteus-v0.4-lightning using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"datacte/proteus-v0.4-lightning:21464a198e9baa3b583f93d8daaaa9e851b91ae1e32accb96ce5081a18a2d87c",
input={
"apply_watermark": True,
"guidance_scale": 2,
"height": 1024,
"negative_prompt": "nsfw, bad quality, bad anatomy, worst quality, low quality, low resolutions, extra fingers, blur, blurry, ugly, wrongs proportions, watermark, image artifacts, lowres, ugly, jpeg artifacts, deformed, noisy image",
"num_inference_steps": 8,
"num_outputs": 1,
"prompt": "The divine tree of knowledge, an interplay between purple and gold, floats in the void of the sea of quanta, the tree is made of crystal, the void is made of nothingness, strong contrast, dim lighting, beautiful and surreal scene. wide shot",
"prompt_strength": 0.8,
"scheduler": "K_EULER_ANCESTRAL",
"width": 1024
}
)
# 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_4K8**********************************
This is your API token. Keep it to yourself.
Run datacte/proteus-v0.4-lightning 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": "datacte/proteus-v0.4-lightning:21464a198e9baa3b583f93d8daaaa9e851b91ae1e32accb96ce5081a18a2d87c",
"input": {
"apply_watermark": true,
"guidance_scale": 2,
"height": 1024,
"negative_prompt": "nsfw, bad quality, bad anatomy, worst quality, low quality, low resolutions, extra fingers, blur, blurry, ugly, wrongs proportions, watermark, image artifacts, lowres, ugly, jpeg artifacts, deformed, noisy image",
"num_inference_steps": 8,
"num_outputs": 1,
"prompt": "The divine tree of knowledge, an interplay between purple and gold, floats in the void of the sea of quanta, the tree is made of crystal, the void is made of nothingness, strong contrast, dim lighting, beautiful and surreal scene. wide shot",
"prompt_strength": 0.8,
"scheduler": "K_EULER_ANCESTRAL",
"width": 1024
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "zdi34glbwdy5tcc7kg7ns3kehu",
"model": "datacte/proteus-v0.4-lightning",
"version": "21464a198e9baa3b583f93d8daaaa9e851b91ae1e32accb96ce5081a18a2d87c",
"input": {
"apply_watermark": true,
"guidance_scale": 2,
"height": 1024,
"negative_prompt": "nsfw, bad quality, bad anatomy, worst quality, low quality, low resolutions, extra fingers, blur, blurry, ugly, wrongs proportions, watermark, image artifacts, lowres, ugly, jpeg artifacts, deformed, noisy image",
"num_inference_steps": 8,
"num_outputs": 1,
"prompt": "The divine tree of knowledge, an interplay between purple and gold, floats in the void of the sea of quanta, the tree is made of crystal, the void is made of nothingness, strong contrast, dim lighting, beautiful and surreal scene. wide shot",
"prompt_strength": 0.8,
"scheduler": "K_EULER_ANCESTRAL",
"width": 1024
},
"logs": "Using seed: 2005253258\nPrompt: The divine tree of knowledge, an interplay between purple and gold, floats in the void of the sea of quanta, the tree is made of crystal, the void is made of nothingness, strong contrast, dim lighting, beautiful and surreal scene. wide shot\ntxt2img mode\n 0%| | 0/8 [00:00<?, ?it/s]\n 25%|██▌ | 2/8 [00:00<00:00, 6.75it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 5.86it/s]\n 50%|█████ | 4/8 [00:00<00:00, 5.48it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 5.27it/s]\n 75%|███████▌ | 6/8 [00:01<00:00, 5.14it/s]\n 88%|████████▊ | 7/8 [00:01<00:00, 5.07it/s]\n100%|██████████| 8/8 [00:01<00:00, 5.02it/s]\n100%|██████████| 8/8 [00:01<00:00, 5.28it/s]",
"output": [
"https://replicate.delivery/pbxt/gvA3mUJY92bYFhLhb1NoplJly3k8SsudfpxlwJJ5q1stLqMJA/out-0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-02-22T18:35:05.295613Z",
"started_at": "2024-02-22T18:35:05.301751Z",
"completed_at": "2024-02-22T18:35:07.940915Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/zdi34glbwdy5tcc7kg7ns3kehu/cancel",
"get": "https://api.replicate.com/v1/predictions/zdi34glbwdy5tcc7kg7ns3kehu"
},
"metrics": {
"predict_time": 2.639164,
"total_time": 2.645302
}
}