asiryan / anima-pencil-xl-v5

Anima Pencil XL v5 Model (Text2Img, Img2Img and Inpainting)

  • Public
  • 4.9K runs
  • A100 (80GB)
  • GitHub
  • License

Run asiryan/anima-pencil-xl-v5 with an API

Use one of our client libraries to get started quickly.

Set the REPLICATE_API_TOKEN environment variable

export REPLICATE_API_TOKEN=<paste-your-token-here>

Learn more about authentication

Install Replicate’s Node.js client library

npm install replicate
Learn more about setup

Run asiryan/anima-pencil-xl-v5 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

import Replicate from "replicate";
const replicate = new Replicate();

const input = {
    prompt: "1girl, solo, ahoge, blue eyes, brown footwear, brown mittens, cardigan, fur trim, fur-trimmed sleeves, green scarf, hand up, long hair, looking at viewer, mittens, one eye closed, orange background, orange hair, scarf, shoes, sitting, striped clothes, striped scarf, wavy hair, yellow cardigan, masterpiece, best quality"
};

const output = await replicate.run("asiryan/anima-pencil-xl-v5:40461ea31f38c0c935e763fd263343c294a4c7ac89e0d6ec6e94433ec9e81693", { input });

import { writeFile } from "node:fs/promises";
for (const [index, item] of Object.entries(output)) {
  await writeFile(`output_${index}.png`, item);
}
//=> output_0.png written to disk
Learn more