You're looking at a specific version of this model. Jump to the model overview.
dhanushreddy291 /sdvn10-anime:ce2ca6fd
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run dhanushreddy291/sdvn10-anime using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"dhanushreddy291/sdvn10-anime:ce2ca6fd0837ffbd171a127f04ff7b8fe8cdf0f7ddc6739dd44409a758ded951",
{
input: {
seed: 0,
steps: 34,
width: 512,
height: 768,
prompt: "lady, sombre, (girl portrait:1.2), ((aodai:1.2)) , (masterpiece, best quality:1.6), , Snowing, Field of flowers, light, Eclectic,",
guidance: 7,
scheduler: "EulerA",
num_outputs: 1,
negative_prompt: "watermark,text, logo,contact, error, blurry, cropped, username, artist name, (worst quality, low quality,nsfw)"
}
}
);
// 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 dhanushreddy291/sdvn10-anime using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"dhanushreddy291/sdvn10-anime:ce2ca6fd0837ffbd171a127f04ff7b8fe8cdf0f7ddc6739dd44409a758ded951",
input={
"seed": 0,
"steps": 34,
"width": 512,
"height": 768,
"prompt": "lady, sombre, (girl portrait:1.2), ((aodai:1.2)) , (masterpiece, best quality:1.6), , Snowing, Field of flowers, light, Eclectic,",
"guidance": 7,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "watermark,text, logo,contact, error, blurry, cropped, username, artist name, (worst quality, low quality,nsfw)"
}
)
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 dhanushreddy291/sdvn10-anime 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": "ce2ca6fd0837ffbd171a127f04ff7b8fe8cdf0f7ddc6739dd44409a758ded951",
"input": {
"seed": 0,
"steps": 34,
"width": 512,
"height": 768,
"prompt": "lady, sombre, (girl portrait:1.2), ((aodai:1.2)) , (masterpiece, best quality:1.6), , Snowing, Field of flowers, light, Eclectic,",
"guidance": 7,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "watermark,text, logo,contact, error, blurry, cropped, username, artist name, (worst quality, low quality,nsfw)"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
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/dhanushreddy291/sdvn10-anime@sha256:ce2ca6fd0837ffbd171a127f04ff7b8fe8cdf0f7ddc6739dd44409a758ded951 \
-i 'seed=0' \
-i 'steps=34' \
-i 'width=512' \
-i 'height=768' \
-i 'prompt="lady, sombre, (girl portrait:1.2), ((aodai:1.2)) , (masterpiece, best quality:1.6), , Snowing, Field of flowers, light, Eclectic,"' \
-i 'guidance=7' \
-i 'scheduler="EulerA"' \
-i 'num_outputs=1' \
-i 'negative_prompt="watermark,text, logo,contact, error, blurry, cropped, username, artist name, (worst quality, low quality,nsfw)"'
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/dhanushreddy291/sdvn10-anime@sha256:ce2ca6fd0837ffbd171a127f04ff7b8fe8cdf0f7ddc6739dd44409a758ded951
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "seed": 0, "steps": 34, "width": 512, "height": 768, "prompt": "lady, sombre, (girl portrait:1.2), ((aodai:1.2)) , (masterpiece, best quality:1.6), , Snowing, Field of flowers, light, Eclectic,", "guidance": 7, "scheduler": "EulerA", "num_outputs": 1, "negative_prompt": "watermark,text, logo,contact, error, blurry, cropped, username, artist name, (worst quality, low quality,nsfw)" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.0061. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-01-15T08:02:30.690776Z",
"created_at": "2024-01-15T08:02:27.374223Z",
"data_removed": false,
"error": null,
"id": "eew66odb7cervouc2lnmn6msoi",
"input": {
"seed": 0,
"steps": 34,
"width": 512,
"height": 768,
"prompt": "lady, sombre, (girl portrait:1.2), ((aodai:1.2)) , (masterpiece, best quality:1.6), , Snowing, Field of flowers, light, Eclectic,",
"guidance": 7,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "watermark,text, logo,contact, error, blurry, cropped, username, artist name, (worst quality, low quality,nsfw)"
},
"logs": "0%| | 0/34 [00:00<?, ?it/s]\n 9%|▉ | 3/34 [00:00<00:01, 23.53it/s]\n 18%|█▊ | 6/34 [00:00<00:01, 19.37it/s]\n 24%|██▎ | 8/34 [00:00<00:01, 18.60it/s]\n 29%|██▉ | 10/34 [00:00<00:01, 18.17it/s]\n 35%|███▌ | 12/34 [00:00<00:01, 17.89it/s]\n 41%|████ | 14/34 [00:00<00:01, 17.70it/s]\n 47%|████▋ | 16/34 [00:00<00:01, 17.57it/s]\n 53%|█████▎ | 18/34 [00:00<00:00, 17.36it/s]\n 59%|█████▉ | 20/34 [00:01<00:00, 17.32it/s]\n 65%|██████▍ | 22/34 [00:01<00:00, 16.99it/s]\n 71%|███████ | 24/34 [00:01<00:00, 17.09it/s]\n 76%|███████▋ | 26/34 [00:01<00:00, 17.13it/s]\n 82%|████████▏ | 28/34 [00:01<00:00, 17.18it/s]\n 88%|████████▊ | 30/34 [00:01<00:00, 17.22it/s]\n 94%|█████████▍| 32/34 [00:01<00:00, 17.23it/s]\n100%|██████████| 34/34 [00:01<00:00, 17.21it/s]\n100%|██████████| 34/34 [00:01<00:00, 17.61it/s]",
"metrics": {
"predict_time": 3.272913,
"total_time": 3.316553
},
"output": [
"https://replicate.delivery/pbxt/8Ikd9vohm2pBCN3lNccd0x53Stan4vKN4bo2uXh3WTUlYKjE/out-0.png"
],
"started_at": "2024-01-15T08:02:27.417863Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/eew66odb7cervouc2lnmn6msoi",
"cancel": "https://api.replicate.com/v1/predictions/eew66odb7cervouc2lnmn6msoi/cancel"
},
"version": "ce2ca6fd0837ffbd171a127f04ff7b8fe8cdf0f7ddc6739dd44409a758ded951"
}
0%| | 0/34 [00:00<?, ?it/s]
9%|▉ | 3/34 [00:00<00:01, 23.53it/s]
18%|█▊ | 6/34 [00:00<00:01, 19.37it/s]
24%|██▎ | 8/34 [00:00<00:01, 18.60it/s]
29%|██▉ | 10/34 [00:00<00:01, 18.17it/s]
35%|███▌ | 12/34 [00:00<00:01, 17.89it/s]
41%|████ | 14/34 [00:00<00:01, 17.70it/s]
47%|████▋ | 16/34 [00:00<00:01, 17.57it/s]
53%|█████▎ | 18/34 [00:00<00:00, 17.36it/s]
59%|█████▉ | 20/34 [00:01<00:00, 17.32it/s]
65%|██████▍ | 22/34 [00:01<00:00, 16.99it/s]
71%|███████ | 24/34 [00:01<00:00, 17.09it/s]
76%|███████▋ | 26/34 [00:01<00:00, 17.13it/s]
82%|████████▏ | 28/34 [00:01<00:00, 17.18it/s]
88%|████████▊ | 30/34 [00:01<00:00, 17.22it/s]
94%|█████████▍| 32/34 [00:01<00:00, 17.23it/s]
100%|██████████| 34/34 [00:01<00:00, 17.21it/s]
100%|██████████| 34/34 [00:01<00:00, 17.61it/s]