Banana

Free GPTJ Node.js API

Use a production ready GPT-J model in less than 1 minute.

Deprecation Notice

As of February 13, 2023 this free API is no longer supported.

We're still a young startup, doing significant iteration. We've maintained these APIs for months knowing they no longer fit our business model, and now we need to officially stop supporting them.

You can find all sorts of prebuilt model templates (paid) at banana.dev/templates.

Godsend programmers,
Erik (Founder, CEO)

Add this to your node.js code:

const banana = require('@banana-dev/banana-dev');

var apiKey = "{YOUR API KEY}"
var modelKey = "gptj"

const modelParameters = {
        "text": "Hey GPTJ, how are you doing?",
        "length":250,
        "temperature":0.9,
        "batchSize": 1
}

let run = async (modelParameters) => {
    var out = await banana.run(apiKey, modelKey, modelParameters)
    console.log(out)
    return out
}

run(modelParameters)

Arguments:

Arg Description Required Type Example
api_key Your API key, found on the User Dashboard True string "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'
model_key This models name True string "clip"
model_parameters Dictionary of custom tuning parameters False dict {"text": "banana","imageURL":"https://api.time.com/wp-content/uploads/2019/11/gettyimages-459761948.jpg"}

How to setup and use the free GPT-J API

In this tutorial you'll learn how to set up and use the free GPT-J API hosted by Banana.dev. It is completely free to use this GPT-J API and there are no usage limits for you to build with it. The other benefit is that setup is really quick and easy, it takes most people approximately 3 minutes to start using the GPT-J model API.