aicapcut
/
blue-pencil-v600-optimized
Optimized model
- Public
- 245 runs
-
L40S
Run aicapcut/blue-pencil-v600-optimized 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
Run aicapcut/blue-pencil-v600-optimized 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 = {
seed: 51036,
width: 1280,
height: 720,
prompt: "urban, evening, streetlights, bustling, emotional reunion, youth, nostalgia, tension, affection, subtle romance, warm lighting, intimate moments, unspoken feelings, dynamic characters, soft shadows, city street, sunset, traffic lights, luggage, smoking, exhaustion, casual encounter, childhood friends, emotional distance, awkwardness, snack bag, college atmosphere, text messages, concern, protective gesture, two young man",
strength: 0.7,
scheduler: "K_EULER",
num_outputs: 4,
guidance_scale: 6,
negative_prompt: "text"
};
const output = await replicate.run("aicapcut/blue-pencil-v600-optimized:fe75e8edeb469432311cb9854b82b66f9e57fb167586fa3c5a137766fbc87cad", { input });
import { writeFile } from "node:fs/promises";
for (const [index, item] of Object.entries(output)) {
await writeFile(`output_${index}.png`, item);
}
//=> output_0.png, output_1.png, output_2.png, output_3.png wr...