lightweight-ai / model3_3_1

  • Public
  • 211.5K runs
  • L40S
Iterate in playground

Input

pip install replicate
Set the REPLICATE_API_TOKEN environment variable:
export REPLICATE_API_TOKEN=<paste-your-token-here>

Find your API token in your account settings.

Import the client:
import replicate

Run lightweight-ai/model3_3_1 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

output = replicate.run(
    "lightweight-ai/model3_3_1:6773b3ce4d745e964541560e55139731f72365b625e057216c88e0d2b7c91664",
    input={
        "loras": [],
        "width": 1024,
        "height": 1024,
        "prompt": "A bohemian-style female travel blogger with sun-kissed skin and messy beach waves",
        "inpaint": False,
        "version": 0,
        "scheduler": "K_EULER",
        "controlnet": False,
        "lora_scales": [],
        "num_outputs": 1,
        "control_type": "canny",
        "nsfw_chekcer": False,
        "low_threshold": 100,
        "output_format": "png",
        "guidance_scale": 3.5,
        "high_threshold": 200,
        "output_quality": 100,
        "negative_prompt": "",
        "prompt_strength": 0.8,
        "control_strength": 0.2,
        "num_inference_steps": 28
    }
)

# To access the file URL:
print(output[0].url())
#=> "http://example.com"

# To write the file to disk:
with open("my-image.png", "wb") as file:
    file.write(output[0].read())

To learn more, take a look at the guide on getting started with Python.

Output

No output yet! Press "Submit" to start a prediction.

Run time and cost

This model runs on Nvidia L40S GPU hardware. We don't yet have enough runs of this model to provide performance information.

Readme

This model doesn't have a readme.