Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
datacte /proteus-v0.4-lightning:21464a19
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
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: {
width: 1024,
height: 1024,
prompt: "3 fish in a fish tank wearing adorable outfits, best quality, hd",
scheduler: "K_EULER_ANCESTRAL",
num_outputs: 1,
guidance_scale: 2,
apply_watermark: true,
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",
prompt_strength: 0.8,
num_inference_steps: 8
}
}
);
// 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=<paste-your-token-here>
Find your API token in your account settings.
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={
"width": 1024,
"height": 1024,
"prompt": "3 fish in a fish tank wearing adorable outfits, best quality, hd",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": True,
"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",
"prompt_strength": 0.8,
"num_inference_steps": 8
}
)
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=<paste-your-token-here>
Find your API token in your account settings.
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": {
"width": 1024,
"height": 1024,
"prompt": "3 fish in a fish tank wearing adorable outfits, best quality, hd",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": true,
"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",
"prompt_strength": 0.8,
"num_inference_steps": 8
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-02-22T18:32:49.153410Z",
"created_at": "2024-02-22T18:32:46.491240Z",
"data_removed": false,
"error": null,
"id": "afi6qq3bqr4dbwvugbuluvxd7u",
"input": {
"width": 1024,
"height": 1024,
"prompt": "3 fish in a fish tank wearing adorable outfits, best quality, hd",
"scheduler": "K_EULER_ANCESTRAL",
"num_outputs": 1,
"guidance_scale": 2,
"apply_watermark": true,
"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",
"prompt_strength": 0.8,
"num_inference_steps": 8
},
"logs": "Using seed: 2206289182\nPrompt: 3 fish in a fish tank wearing adorable outfits, best quality, hd\ntxt2img mode\n 0%| | 0/8 [00:00<?, ?it/s]\n 25%|██▌ | 2/8 [00:00<00:00, 6.78it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 5.88it/s]\n 50%|█████ | 4/8 [00:00<00:00, 5.49it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 5.28it/s]\n 75%|███████▌ | 6/8 [00:01<00:00, 5.15it/s]\n 88%|████████▊ | 7/8 [00:01<00:00, 5.08it/s]\n100%|██████████| 8/8 [00:01<00:00, 5.04it/s]\n100%|██████████| 8/8 [00:01<00:00, 5.30it/s]",
"metrics": {
"predict_time": 2.655077,
"total_time": 2.66217
},
"output": [
"https://replicate.delivery/pbxt/tHPY7PlmxU5kABX8HexZ9foFQb9G93DRWUIB6yxfy0ShqoykA/out-0.png"
],
"started_at": "2024-02-22T18:32:46.498333Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/afi6qq3bqr4dbwvugbuluvxd7u",
"cancel": "https://api.replicate.com/v1/predictions/afi6qq3bqr4dbwvugbuluvxd7u/cancel"
},
"version": "21464a198e9baa3b583f93d8daaaa9e851b91ae1e32accb96ce5081a18a2d87c"
}
Using seed: 2206289182
Prompt: 3 fish in a fish tank wearing adorable outfits, best quality, hd
txt2img mode
0%| | 0/8 [00:00<?, ?it/s]
25%|██▌ | 2/8 [00:00<00:00, 6.78it/s]
38%|███▊ | 3/8 [00:00<00:00, 5.88it/s]
50%|█████ | 4/8 [00:00<00:00, 5.49it/s]
62%|██████▎ | 5/8 [00:00<00:00, 5.28it/s]
75%|███████▌ | 6/8 [00:01<00:00, 5.15it/s]
88%|████████▊ | 7/8 [00:01<00:00, 5.08it/s]
100%|██████████| 8/8 [00:01<00:00, 5.04it/s]
100%|██████████| 8/8 [00:01<00:00, 5.30it/s]