Get your Banana API Key

Sign in on the Banana user dashboard to get your api key and project endpoint url.

Install Banana

From your terminal, run:

pip3 install banana-dev

We assume you installed version >=6.0.0


from banana_dev import Client

# Create a reference to your model on Banana
my_client = Client(
    api_key="YOUR_API_KEY", # Found in dashboard
    url="", # Found in model view in dashboard

# Specify the model's input JSON
inputs = {
    "prompt": "In the summer I like [MASK].",

# Call your model's inference endpoint on Banana
result, meta ="/", inputs)

Last updated