Deep Infra

AI API token

Run inference against DeepInfra's hosted models — text, embeddings, images, audio — from any Windmill script, flow or app.

Set up in 3 steps

1

Create an API token

In the DeepInfra dashboard, open API Tokens and create one. Copy it — it is shown only once.

2

Add the resource in Windmill

Open Resources, add a resource of type deep_infra, and paste the token.

3

Run your first script

Fork any script below and read before writing anything. There are dozens here, so search by the verb you need.

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

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

View raw schema →
FieldTypeRequiredWhat it is
tokenstringYesSome of the APIs are accessible using the API key on the dashboard, others require the JWT token copied from the network tab.

Questions

Inference is billed per token

Every call draws on your DeepInfra balance. A flow that retries on failure can spend more than you expect — cap the retries.

Can it power Windmill AI?

Not directly through this resource. DeepInfra exposes an OpenAI-compatible endpoint, so an openai resource with base_url pointed at it is the way to use it as an AI provider.

Is my token stored on the hub?

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