IP Adapter FaceID
Prompt
Image
Drop a image or click here to upload
Output
This playground is for demonstration purposes only.
If you want to use it for commercial purposes, please contact the model provider to obtain authorization.

Please wait a few seconds for your workspace to be created.Refresh

Login to get your token

And use it in the following codes.

import os
from leptonai.client import Client

api_token = os.environ.get('LEPTON_API_TOKEN')
c = Client("https://ip-adapter-faceid.lepton.run", token=api_token)

image = c.run(
    prompt="A woman walking down the street",
    negative_prompt="",
    image={"content": "<url_or_base64>"},
    model="ip-adapter-faceid",
    seed=0,
    num_inference_steps=30,
    s_scale=1,
    width=768,
    height=1024
)
with open('output_image.png', 'wb') as f:
    f.write(image)
print("Image saved as output_image.png")

The rate limit for the Model APIs is 10 requests per minute across all models under Basic Plan. For the pricing plan, you may check out pricing page, If you need a higher rate limit with SLA or dedicated deployment, please contact us.