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.
yash-banka /moon:9c350dd1
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 yash-banka/moon using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"yash-banka/moon:9c350dd176fff82b1b5bcd8754a533f8cf3f903bf646ecf65cc7bde3f2a1e87b",
{
input: {
width: 1024,
height: 1024,
prompt: "In the style of AMYB a circle with flowers",
refine: "no_refiner",
scheduler: "K_EULER",
lora_scale: 0.6,
num_outputs: 1,
guidance_scale: 7.5,
apply_watermark: true,
high_noise_frac: 0.8,
negative_prompt: "",
prompt_strength: 0.8,
num_inference_steps: 50
}
}
);
// 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 yash-banka/moon using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"yash-banka/moon:9c350dd176fff82b1b5bcd8754a533f8cf3f903bf646ecf65cc7bde3f2a1e87b",
input={
"width": 1024,
"height": 1024,
"prompt": "In the style of AMYB a circle with flowers",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": True,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 50
}
)
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 yash-banka/moon 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": "yash-banka/moon:9c350dd176fff82b1b5bcd8754a533f8cf3f903bf646ecf65cc7bde3f2a1e87b",
"input": {
"width": 1024,
"height": 1024,
"prompt": "In the style of AMYB a circle with flowers",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": true,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 50
}
}' \
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": "2023-09-17T17:20:21.734322Z",
"created_at": "2023-09-17T17:20:00.675443Z",
"data_removed": false,
"error": null,
"id": "bhabu5lbp3gf6pk555k66qx3yy",
"input": {
"width": 1024,
"height": 1024,
"prompt": "In the style of AMYB a circle with flowers",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": true,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 50
},
"logs": null,
"metrics": {
"predict_time": 19.607484,
"total_time": 21.058879
},
"output": [
"https://pbxt.replicate.delivery/GxwKUTKHh5IGOZf5UNnfqyprnEc08yrlTkZREqQFrAgSdOlRA/out-0.png"
],
"started_at": "2023-09-17T17:20:02.126838Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/bhabu5lbp3gf6pk555k66qx3yy",
"cancel": "https://api.replicate.com/v1/predictions/bhabu5lbp3gf6pk555k66qx3yy/cancel"
},
"version": "9c350dd176fff82b1b5bcd8754a533f8cf3f903bf646ecf65cc7bde3f2a1e87b"
}