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.
rocketdigitalai /animagine-xl-4.0:7af46ee4
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport 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 rocketdigitalai/animagine-xl-4.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"rocketdigitalai/animagine-xl-4.0:7af46ee494f1cf196d49a8592737f4eb789e34a5a995751b23a869d19f5dc2ba",
{
input: {
prompt: "1girl, arima kana, oshi no ko, looking at viewer, smile, outdoors, night, masterpiece, high score, great score, absurdres",
aspect_ratio: "square_1024x1024",
guidance_scale: 6,
negative_prompt: "lowres, bad anatomy, bad hands, text, error, missing finger, extra digits, fewer digits, cropped, worst quality, low quality, low score, bad score, average score, signature, watermark, username, blurry",
num_inference_steps: 25
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run rocketdigitalai/animagine-xl-4.0 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"rocketdigitalai/animagine-xl-4.0:7af46ee494f1cf196d49a8592737f4eb789e34a5a995751b23a869d19f5dc2ba",
input={
"prompt": "1girl, arima kana, oshi no ko, looking at viewer, smile, outdoors, night, masterpiece, high score, great score, absurdres",
"aspect_ratio": "square_1024x1024",
"guidance_scale": 6,
"negative_prompt": "lowres, bad anatomy, bad hands, text, error, missing finger, extra digits, fewer digits, cropped, worst quality, low quality, low score, bad score, average score, signature, watermark, username, blurry",
"num_inference_steps": 25
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run rocketdigitalai/animagine-xl-4.0 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": "7af46ee494f1cf196d49a8592737f4eb789e34a5a995751b23a869d19f5dc2ba",
"input": {
"prompt": "1girl, arima kana, oshi no ko, looking at viewer, smile, outdoors, night, masterpiece, high score, great score, absurdres",
"aspect_ratio": "square_1024x1024",
"guidance_scale": 6,
"negative_prompt": "lowres, bad anatomy, bad hands, text, error, missing finger, extra digits, fewer digits, cropped, worst quality, low quality, low score, bad score, average score, signature, watermark, username, blurry",
"num_inference_steps": 25
}
}' \
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": "2025-02-03T05:27:38.210341Z",
"created_at": "2025-02-03T05:18:28.697000Z",
"data_removed": false,
"error": null,
"id": "tjcr3gqbb5rmc0cms8zbgq3h8w",
"input": {
"prompt": "1girl, arima kana, oshi no ko, looking at viewer, smile, outdoors, night, masterpiece, high score, great score, absurdres",
"aspect_ratio": "square_1024x1024",
"guidance_scale": 6,
"negative_prompt": "lowres, bad anatomy, bad hands, text, error, missing finger, extra digits, fewer digits, cropped, worst quality, low quality, low score, bad score, average score, signature, watermark, username, blurry",
"num_inference_steps": 25
},
"logs": "0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:06, 3.76it/s]\n 12%|█▏ | 3/25 [00:00<00:02, 7.95it/s]\n 16%|█▌ | 4/25 [00:00<00:02, 8.46it/s]\n 20%|██ | 5/25 [00:00<00:02, 8.83it/s]\n 24%|██▍ | 6/25 [00:00<00:02, 9.08it/s]\n 28%|██▊ | 7/25 [00:00<00:01, 9.25it/s]\n 32%|███▏ | 8/25 [00:00<00:01, 9.37it/s]\n 36%|███▌ | 9/25 [00:01<00:01, 9.45it/s]\n 40%|████ | 10/25 [00:01<00:01, 9.49it/s]\n 44%|████▍ | 11/25 [00:01<00:01, 9.54it/s]\n 48%|████▊ | 12/25 [00:01<00:01, 9.56it/s]\n 52%|█████▏ | 13/25 [00:01<00:01, 9.58it/s]\n 56%|█████▌ | 14/25 [00:01<00:01, 9.58it/s]\n 60%|██████ | 15/25 [00:01<00:01, 9.60it/s]\n 64%|██████▍ | 16/25 [00:01<00:00, 9.60it/s]\n 68%|██████▊ | 17/25 [00:01<00:00, 9.61it/s]\n 72%|███████▏ | 18/25 [00:01<00:00, 9.62it/s]\n 76%|███████▌ | 19/25 [00:02<00:00, 9.61it/s]\n 80%|████████ | 20/25 [00:02<00:00, 9.60it/s]\n 84%|████████▍ | 21/25 [00:02<00:00, 9.60it/s]\n 88%|████████▊ | 22/25 [00:02<00:00, 9.61it/s]\n 92%|█████████▏| 23/25 [00:02<00:00, 9.61it/s]\n 96%|█████████▌| 24/25 [00:02<00:00, 9.60it/s]\n100%|██████████| 25/25 [00:02<00:00, 9.59it/s]\n100%|██████████| 25/25 [00:02<00:00, 9.24it/s]",
"metrics": {
"predict_time": 3.502839303,
"total_time": 549.513341
},
"output": "https://replicate.delivery/xezq/FjE5Xbnao7L6K5Bhh4xpo4SaDgIUmPMy2nIVibvyc8nyF4CF/output.png",
"started_at": "2025-02-03T05:27:34.707502Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bsvm-v6y47eipdh5m7spqlysked2rnat72zyz5mgairvj4mfigpswwiza",
"get": "https://api.replicate.com/v1/predictions/tjcr3gqbb5rmc0cms8zbgq3h8w",
"cancel": "https://api.replicate.com/v1/predictions/tjcr3gqbb5rmc0cms8zbgq3h8w/cancel"
},
"version": "7af46ee494f1cf196d49a8592737f4eb789e34a5a995751b23a869d19f5dc2ba"
}
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:06, 3.76it/s]
12%|█▏ | 3/25 [00:00<00:02, 7.95it/s]
16%|█▌ | 4/25 [00:00<00:02, 8.46it/s]
20%|██ | 5/25 [00:00<00:02, 8.83it/s]
24%|██▍ | 6/25 [00:00<00:02, 9.08it/s]
28%|██▊ | 7/25 [00:00<00:01, 9.25it/s]
32%|███▏ | 8/25 [00:00<00:01, 9.37it/s]
36%|███▌ | 9/25 [00:01<00:01, 9.45it/s]
40%|████ | 10/25 [00:01<00:01, 9.49it/s]
44%|████▍ | 11/25 [00:01<00:01, 9.54it/s]
48%|████▊ | 12/25 [00:01<00:01, 9.56it/s]
52%|█████▏ | 13/25 [00:01<00:01, 9.58it/s]
56%|█████▌ | 14/25 [00:01<00:01, 9.58it/s]
60%|██████ | 15/25 [00:01<00:01, 9.60it/s]
64%|██████▍ | 16/25 [00:01<00:00, 9.60it/s]
68%|██████▊ | 17/25 [00:01<00:00, 9.61it/s]
72%|███████▏ | 18/25 [00:01<00:00, 9.62it/s]
76%|███████▌ | 19/25 [00:02<00:00, 9.61it/s]
80%|████████ | 20/25 [00:02<00:00, 9.60it/s]
84%|████████▍ | 21/25 [00:02<00:00, 9.60it/s]
88%|████████▊ | 22/25 [00:02<00:00, 9.61it/s]
92%|█████████▏| 23/25 [00:02<00:00, 9.61it/s]
96%|█████████▌| 24/25 [00:02<00:00, 9.60it/s]
100%|██████████| 25/25 [00:02<00:00, 9.59it/s]
100%|██████████| 25/25 [00:02<00:00, 9.24it/s]