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: 20,
width: 512,
height: 728,
prompt: "child boy, short hair, crew neck sweater, (masterpiece, best quality:1.6), ghibli, Sun in the sky, Rocky Mountain National Park, Charismatic",
guidance: 7,
scheduler: "EulerA",
num_outputs: 1,
negative_prompt: "(worst quality, normal quality, low quality, 3D, realistic:1.6)"
}
}
);
// 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": 20,
"width": 512,
"height": 728,
"prompt": "child boy, short hair, crew neck sweater, (masterpiece, best quality:1.6), ghibli, Sun in the sky, Rocky Mountain National Park, Charismatic",
"guidance": 7,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "(worst quality, normal quality, low quality, 3D, realistic:1.6)"
}
)
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": 20,
"width": 512,
"height": 728,
"prompt": "child boy, short hair, crew neck sweater, (masterpiece, best quality:1.6), ghibli, Sun in the sky, Rocky Mountain National Park, Charismatic",
"guidance": 7,
"scheduler": "EulerA",
"num_outputs": 1,
"negative_prompt": "(worst quality, normal quality, low quality, 3D, realistic:1.6)"
}
}' \
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
No output yet! Press "Submit" to start a prediction.