yael-vinker
/
clipasso
Draws an abstract sketch of an object
Run yael-vinker/clipasso 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 yael-vinker/clipasso 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 = {
target_image: "https://replicate.delivery/mgxm/198a8d75-dace-4739-af20-a465edebe932/camel.png"
};
const output = await replicate.run("yael-vinker/clipasso:9890b0260cd82faa230db114406dc5a3b26fc0f940fb6057158b4747e22bf320", { input });
import { writeFile } from "node:fs/promises";
await writeFile("output.svg", output);
//=> output.svg written to disk