AI21

AI API key

Run AI21 Studio models for completion, chat and embeddings from any Windmill script, flow or app.

Set up in 3 steps

1

Copy your API key

In AI21 Studio, open your account settings and copy the API key.

2

Add the resource in Windmill

Open Resources, add a resource of type ai21, and paste the key.

3

Run your first script

Fork any script below and read before writing anything.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Resource type

ai21 — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
apiKeystringYesAPI key retrieved from the dashboard.

Questions

Inference is billed per token

Every call draws on your AI21 balance. Cap retries in a flow that loops.

Is my key stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.