cd
Select the Garment LoRA model to use
Default: "pinkdress-kids-inp5"
Select the Face LoRA model to use
Default: "rsm-female"
Describe the background and person's pose etc, garment description is appended behind the scenes
Default: "person standing in a jaipur fort, royal background"
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"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run nitishtri3d/dpwxe using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "nitishtri3d/dpwxe:d69d983922ae1d062c1c0087eb880c5ddf54bea24145652c4bd46eba85c4f462", { input: { prompt: "person standing in a jaipur fort, royal background", face_lora_model: "rsm-female", garment_lora_model: "pinkdress-kids-inp5" } } ); // 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( "nitishtri3d/dpwxe:d69d983922ae1d062c1c0087eb880c5ddf54bea24145652c4bd46eba85c4f462", input={ "prompt": "person standing in a jaipur fort, royal background", "face_lora_model": "rsm-female", "garment_lora_model": "pinkdress-kids-inp5" } ) 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": "nitishtri3d/dpwxe:d69d983922ae1d062c1c0087eb880c5ddf54bea24145652c4bd46eba85c4f462", "input": { "prompt": "person standing in a jaipur fort, royal background", "face_lora_model": "rsm-female", "garment_lora_model": "pinkdress-kids-inp5" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
No output yet! Press "Submit" to start a prediction.
This model runs on CPU hardware. We don't yet have enough runs of this model to provide performance information.
-
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.