Banana

Public Access GPTJ

Use a production ready GPTJ in <1 min. Free, forever.

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"}