Readme
This model doesn't have a readme.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run prompthunt/cog-realvisxl2-lora-inference 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": "prompthunt/cog-realvisxl2-lora-inference:e14192d4c0bb387620b8c275d1524426d3d83907eac3f1d29dc66bd4a3595150",
"input": {
"width": 768,
"height": 1024,
"prompt": "A photo of TOK",
"refine": "no_refiner",
"scheduler": "DPM++SDEKarras",
"lora_scale": 0.8,
"num_outputs": 1,
"face_padding": 1.5,
"face_resize_to": 1024,
"guidance_scale": 3,
"inpaint_prompt": "A photo of TOK",
"high_noise_frac": 0.8,
"negative_prompt": "plastic, blurry, grainy, [deformed | disfigured], poorly drawn, [bad : wrong] anatomy, [extra | missing | floating | disconnected] limb, (mutated hands and fingers), blurry",
"prompt_strength": 0.8,
"inpaint_strength": 0.35,
"mask_blur_amount": 8,
"inpaint_lora_scale": 0.8,
"upscale_face_image": false,
"num_inference_steps": 25,
"upscale_final_image": false,
"inpaint_guidance_scale": 3,
"inpaint_negative_prompt": "(worst quality, low quality, illustration, 3d, 2d, painting, cartoons, sketch), open mouth",
"include_debug_output_images": true,
"inpaint_num_inference_steps": 25,
"controlnet_conditioning_scale": 1
}
}' \
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 costs approximately $0.044 to run on Replicate, or 22 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 45 seconds. The predict time for this model varies significantly based on the inputs.
This model doesn't have a readme.