Readme
This model doesn't have a readme.
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 nsfw-api/hunyuan-custom using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"nsfw-api/hunyuan-custom:9c636abd3761591b967439ba039bd82fa7050e8672f80058083abc8aa6981113",
input={
"fp8": True,
"seed": 1024,
"prompt": "Realistic, High-quality. A woman is drinking coffee at a café.",
"num_frames": 49,
"resolution": "512x896",
"cpu_offload": False,
"infer_steps": 30,
"negative_prompt": "Aerial view, overexposed, low quality, deformation, bad hands, distortion, text, black border."
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
No output yet! Press "Submit" to start a prediction.
This model runs on Nvidia A100 (80GB) GPU hardware. We don't yet have enough runs of this model to provide performance information.
This model doesn't have a readme.