The model to use
Default: "Animagine-XL-v4-Opt"
The VAE to use
Default: "default"
The prompt, uses Compel weighting syntax
Default: "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V"
The negative prompt (For things you don't want), uses Compel weighting syntax
Default: "nsfw, naked"
CFG scale defines how much attention the model pays to the prompt when generating, set to 1 to disable
Default: 5
The amount to rescale CFG generated noise to avoid generating overexposed images, set to 0 or 1 to disable
Default: 1
PAG scale is similar to CFG but it literally makes the result better, it's compatible with CFG too, set to 0 to disable
How many CLIP layers to skip, 1 is actually no skip, this is the behavior in A1111 so it's aligned to it
The width of the image
Default: 1024
The height of the image
Prepend preprompt (Prompt: "masterpiece, high score, great score, absurdres, " 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, bad_fingers, extra_fingers, mutated_fingers, mutated_hands, six_fingers, ")
Default: true
The scheduler to use
Default: "Euler a"
The steps when generating
Default: 30
Number of images to generate (1-4), note if you set this to 4, some high resolution gens might fail because of not enough VRAM
The seed used when generating, set to -1 for random seed
Default: -1
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
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 aisha-ai-official/animagine-xl-v4-opt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "aisha-ai-official/animagine-xl-v4-opt:cfd0f86fbcd03df45fca7ce83af9bb9c07850a3317303fe8dcf677038541db8a", { input: { vae: "default", seed: -1, model: "Animagine-XL-v4-Opt", steps: 30, width: 1024, height: 1024, prompt: "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V", cfg_scale: 5, clip_skip: 1, pag_scale: 1, scheduler: "Euler a", batch_size: 1, negative_prompt: "nsfw, naked", guidance_rescale: 1, prepend_preprompt: true } } ); // 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
import replicate
output = replicate.run( "aisha-ai-official/animagine-xl-v4-opt:cfd0f86fbcd03df45fca7ce83af9bb9c07850a3317303fe8dcf677038541db8a", input={ "vae": "default", "seed": -1, "model": "Animagine-XL-v4-Opt", "steps": 30, "width": 1024, "height": 1024, "prompt": "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V", "cfg_scale": 5, "clip_skip": 1, "pag_scale": 1, "scheduler": "Euler a", "batch_size": 1, "negative_prompt": "nsfw, naked", "guidance_rescale": 1, "prepend_preprompt": True } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "cfd0f86fbcd03df45fca7ce83af9bb9c07850a3317303fe8dcf677038541db8a", "input": { "vae": "default", "seed": -1, "model": "Animagine-XL-v4-Opt", "steps": 30, "width": 1024, "height": 1024, "prompt": "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V", "cfg_scale": 5, "clip_skip": 1, "pag_scale": 1, "scheduler": "Euler a", "batch_size": 1, "negative_prompt": "nsfw, naked", "guidance_rescale": 1, "prepend_preprompt": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2025-02-28T05:40:55.124184Z", "created_at": "2025-02-28T05:40:20.215000Z", "data_removed": false, "error": null, "id": "2ma7m0faexrm80cn9c8r50ansm", "input": { "vae": "default", "seed": -1, "model": "Animagine-XL-v4-Opt", "steps": 30, "width": 1024, "height": 1024, "prompt": "street, 1girl, dark-purple short hair, purple eyes, medium breasts, cleavage, casual clothes, smile, V", "cfg_scale": 5, "clip_skip": 1, "pag_scale": 1, "scheduler": "Euler a", "batch_size": 1, "negative_prompt": "nsfw, naked", "guidance_rescale": 1, "prepend_preprompt": true }, "logs": "Using text to image mode.\nUsing seed: 1499234646\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:07, 4.11it/s]\n 10%|█ | 3/30 [00:00<00:03, 6.93it/s]\n 13%|█▎ | 4/30 [00:00<00:03, 6.86it/s]\n 17%|█▋ | 5/30 [00:00<00:03, 6.81it/s]\n 20%|██ | 6/30 [00:00<00:03, 6.73it/s]\n 23%|██▎ | 7/30 [00:01<00:03, 6.75it/s]\n 27%|██▋ | 8/30 [00:01<00:03, 6.73it/s]\n 30%|███ | 9/30 [00:01<00:03, 6.72it/s]\n 33%|███▎ | 10/30 [00:01<00:02, 6.71it/s]\n 37%|███▋ | 11/30 [00:01<00:02, 6.70it/s]\n 40%|████ | 12/30 [00:01<00:02, 6.69it/s]\n 43%|████▎ | 13/30 [00:01<00:02, 6.68it/s]\n 47%|████▋ | 14/30 [00:02<00:02, 6.68it/s]\n 50%|█████ | 15/30 [00:02<00:02, 6.68it/s]\n 53%|█████▎ | 16/30 [00:02<00:02, 6.67it/s]\n 57%|█████▋ | 17/30 [00:02<00:01, 6.68it/s]\n 60%|██████ | 18/30 [00:02<00:01, 6.67it/s]\n 63%|██████▎ | 19/30 [00:02<00:01, 6.66it/s]\n 67%|██████▋ | 20/30 [00:03<00:01, 6.65it/s]\n 70%|███████ | 21/30 [00:03<00:01, 6.65it/s]\n 73%|███████▎ | 22/30 [00:03<00:01, 6.65it/s]\n 77%|███████▋ | 23/30 [00:03<00:01, 6.66it/s]\n 80%|████████ | 24/30 [00:03<00:00, 6.65it/s]\n 83%|████████▎ | 25/30 [00:03<00:00, 6.64it/s]\n 87%|████████▋ | 26/30 [00:03<00:00, 6.64it/s]\n 90%|█████████ | 27/30 [00:04<00:00, 6.64it/s]\n 93%|█████████▎| 28/30 [00:04<00:00, 6.64it/s]\n 97%|█████████▋| 29/30 [00:04<00:00, 6.63it/s]\n100%|██████████| 30/30 [00:04<00:00, 6.64it/s]\n100%|██████████| 30/30 [00:04<00:00, 6.64it/s]", "metrics": { "predict_time": 6.896711122, "total_time": 34.909184 }, "output": [ "https://replicate.delivery/xezq/WMxkpuJjCk4HBJf2CvJpJmCtB8uZkh8P5IixVlS3I8fn5vTUA/0.png" ], "started_at": "2025-02-28T05:40:48.227473Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-tu324ucdcu7ersvto3bolsy2s5imctpfkto4sy3snmezesguzr2a", "get": "https://api.replicate.com/v1/predictions/2ma7m0faexrm80cn9c8r50ansm", "cancel": "https://api.replicate.com/v1/predictions/2ma7m0faexrm80cn9c8r50ansm/cancel" }, "version": "cfd0f86fbcd03df45fca7ce83af9bb9c07850a3317303fe8dcf677038541db8a" }
Using text to image mode. Using seed: 1499234646 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:07, 4.11it/s] 10%|█ | 3/30 [00:00<00:03, 6.93it/s] 13%|█▎ | 4/30 [00:00<00:03, 6.86it/s] 17%|█▋ | 5/30 [00:00<00:03, 6.81it/s] 20%|██ | 6/30 [00:00<00:03, 6.73it/s] 23%|██▎ | 7/30 [00:01<00:03, 6.75it/s] 27%|██▋ | 8/30 [00:01<00:03, 6.73it/s] 30%|███ | 9/30 [00:01<00:03, 6.72it/s] 33%|███▎ | 10/30 [00:01<00:02, 6.71it/s] 37%|███▋ | 11/30 [00:01<00:02, 6.70it/s] 40%|████ | 12/30 [00:01<00:02, 6.69it/s] 43%|████▎ | 13/30 [00:01<00:02, 6.68it/s] 47%|████▋ | 14/30 [00:02<00:02, 6.68it/s] 50%|█████ | 15/30 [00:02<00:02, 6.68it/s] 53%|█████▎ | 16/30 [00:02<00:02, 6.67it/s] 57%|█████▋ | 17/30 [00:02<00:01, 6.68it/s] 60%|██████ | 18/30 [00:02<00:01, 6.67it/s] 63%|██████▎ | 19/30 [00:02<00:01, 6.66it/s] 67%|██████▋ | 20/30 [00:03<00:01, 6.65it/s] 70%|███████ | 21/30 [00:03<00:01, 6.65it/s] 73%|███████▎ | 22/30 [00:03<00:01, 6.65it/s] 77%|███████▋ | 23/30 [00:03<00:01, 6.66it/s] 80%|████████ | 24/30 [00:03<00:00, 6.65it/s] 83%|████████▎ | 25/30 [00:03<00:00, 6.64it/s] 87%|████████▋ | 26/30 [00:03<00:00, 6.64it/s] 90%|█████████ | 27/30 [00:04<00:00, 6.64it/s] 93%|█████████▎| 28/30 [00:04<00:00, 6.64it/s] 97%|█████████▋| 29/30 [00:04<00:00, 6.63it/s] 100%|██████████| 30/30 [00:04<00:00, 6.64it/s] 100%|██████████| 30/30 [00:04<00:00, 6.64it/s]
View more examples
This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.