Personalized Image Filters at Your Fingertips
Input image
Style prompt
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 sjain200/fastclipstyler using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "sjain200/fastclipstyler:ebd37d9c9ad6f43171277c2ed2db5f90b47d448a4e20ae5f672ffbb870e0b243", { input: { image: "https://replicate.delivery/mgxm/e4500aa0-f71b-42ff-a540-aadb44c8d1b2/face.jpg", style_desc: "A sketch with black pencil" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "sjain200/fastclipstyler:ebd37d9c9ad6f43171277c2ed2db5f90b47d448a4e20ae5f672ffbb870e0b243", input={ "image": "https://replicate.delivery/mgxm/e4500aa0-f71b-42ff-a540-aadb44c8d1b2/face.jpg", "style_desc": "A sketch with black pencil" } ) 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": "ebd37d9c9ad6f43171277c2ed2db5f90b47d448a4e20ae5f672ffbb870e0b243", "input": { "image": "https://replicate.delivery/mgxm/e4500aa0-f71b-42ff-a540-aadb44c8d1b2/face.jpg", "style_desc": "A sketch with black pencil" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2024-07-25T08:32:22.186443Z", "created_at": "2024-07-25T08:32:21.461000Z", "data_removed": false, "error": null, "id": "h4b8ya0ftnrge0cgx42sg9r2n0", "input": { "image": "https://replicate.delivery/mgxm/e4500aa0-f71b-42ff-a540-aadb44c8d1b2/face.jpg", "style_desc": "A sketch with black pencil" }, "logs": "Output tensor shape: torch.Size([1, 3, 512, 512])", "metrics": { "predict_time": 0.707074667, "total_time": 0.725443 }, "output": "https://replicate.delivery/czjl/mAejLaqc5zQze0CBOk8Xo3rChqTIva0W28FuNGYvIOFWe3XmA/output.png", "started_at": "2024-07-25T08:32:21.479368Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/h4b8ya0ftnrge0cgx42sg9r2n0", "cancel": "https://api.replicate.com/v1/predictions/h4b8ya0ftnrge0cgx42sg9r2n0/cancel" }, "version": "a8f6565cb95d51e0fb39c5b78f39ef0c0234f6f32292b89318009bd17a84daa1" }
Output tensor shape: torch.Size([1, 3, 512, 512])
This example was created by a different version, sjain200/fastclipstyler:a8f6565c.
View more examples
This model runs on CPU 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.
Choose a file from your machine
Hint: you can also drag files onto the input