AI21
AI API keyRun 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.
Validate Plan
Script ai21 Verified
Update File
Script ai21 Verified
Studio Chat Complete
Script ai21 Verified
Search
Script ai21 Verified
Save Secret
Script ai21 Verified
Run Workflow
Script ai21 Verified
Modify Route
Script ai21 Verified
Modify Plan
Script ai21 Verified
Modify Assistant
Script ai21 Verified
List Plans
Script ai21 Verified
Get Secret List
Script ai21 Verified
Get Routes
Script ai21 Verified
Get Route
Script ai21 Verified
Get Plan
Script ai21 Verified
Get Organization Models By Organization Endpoint
Script ai21 Verified
Get Organization Model Secret Endpoint
Script ai21 Verified
Get Organization Files
Script ai21 Verified
Get Org Data Sources Info
Script ai21 Verified
Get File By Id
Script ai21 Verified
Get Data Source Status
Script ai21 Verified
Get Available Models Endpoint
Script ai21 Verified
Get Assistants
Script ai21 Verified
Get Assistant
Script ai21 Verified
Generate Org Token
Script ai21 Verified
Generate Documents Signed Url
Script ai21 Verified
Delete Secret
Script ai21 Verified
Delete Route
Script ai21 Verified
Delete File
Script ai21 Verified
Delete Assistant
Script ai21 Verified
Create Route
Script ai21 Verified
Resource type
ai21 — the shape of the credential every script on this page expects.
| Field | Type | Required | What it is |
|---|---|---|---|
| apiKey | string | Yes | API 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.