Get your Banana API Key

Sign in on the Banana user dashboard to get your api and model keys

Install Banana

From your terminal, run:
pip3 install banana-dev
We assume you installed version >=5.0.0


from banana_dev import Client
# Create a reference to your model on Banana
my_model = Client(
api_key="YOUR_API_KEY", # Found in dashboard
model_key="YOUR_MODEL_KEY", # Found in model view 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)