You're looking at a specific version of this model. Jump to the model overview.
tiger-ai-lab /anyv2v:30adf8ca
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable: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 tiger-ai-lab/anyv2v using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"tiger-ai-lab/anyv2v:30adf8ca48b89945b7895eceeaa905ebe3034ca30060e6e727f5d7c9e9723962",
{
input: {
pnp_f_t: 1,
editing_prompt: "a man doing exercises for the body and mind",
guidance_scale: 9,
pnp_temp_attn_t: 1,
pnp_spatial_attn_t: 1,
num_inference_steps: 50,
ddim_inversion_steps: 500,
ddim_init_latents_t_idx: 0,
editing_negative_prompt: "Distorted, discontinuous, Ugly, blurry, low resolution, motionless, static, disfigured, disconnected limbs, Ugly faces, incomplete arms",
instruct_pix2pix_prompt: "turn man into robot"
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run tiger-ai-lab/anyv2v using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"tiger-ai-lab/anyv2v:30adf8ca48b89945b7895eceeaa905ebe3034ca30060e6e727f5d7c9e9723962",
input={
"pnp_f_t": 1,
"editing_prompt": "a man doing exercises for the body and mind",
"guidance_scale": 9,
"pnp_temp_attn_t": 1,
"pnp_spatial_attn_t": 1,
"num_inference_steps": 50,
"ddim_inversion_steps": 500,
"ddim_init_latents_t_idx": 0,
"editing_negative_prompt": "Distorted, discontinuous, Ugly, blurry, low resolution, motionless, static, disfigured, disconnected limbs, Ugly faces, incomplete arms",
"instruct_pix2pix_prompt": "turn man into robot"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run tiger-ai-lab/anyv2v using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "30adf8ca48b89945b7895eceeaa905ebe3034ca30060e6e727f5d7c9e9723962",
"input": {
"pnp_f_t": 1,
"editing_prompt": "a man doing exercises for the body and mind",
"guidance_scale": 9,
"pnp_temp_attn_t": 1,
"pnp_spatial_attn_t": 1,
"num_inference_steps": 50,
"ddim_inversion_steps": 500,
"ddim_init_latents_t_idx": 0,
"editing_negative_prompt": "Distorted, discontinuous, Ugly, blurry, low resolution, motionless, static, disfigured, disconnected limbs, Ugly faces, incomplete arms",
"instruct_pix2pix_prompt": "turn man into robot"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
No output yet! Press "Submit" to start a prediction.