#11393·windmill

Is a host that settles per call a provider entry, or the caller's job?

Author: TheCheetah11Created Sep 27, 2026Updated Sep 27, 2026

Windmill names every AI vendor once in the provider enum in backend/windmill-ai/src/ai_providers.rs, each name resolving to a base URL, with customai as the entry for a host that is none of the named ones and takes its base URL from the resource instead. The OpenAI compatible builder in backend/windmill-ai/src/providers/other.rs posts to {base_url}/chat/completions, and credential_header in backend/windmill-ai/src/proxy.rs returns nothing at all when the resource carries neither an api_key nor an access token, so a URL-only host is already a supported shape. So a gateway that wants only a URL is handled. What that leaves out is a host that wants a payment rather than a credential, where the value has to be minted per request and cannot sit in the resource or in a custom header.

BlockRun is that host. One OpenAI compatible base URL answers chat, image, video, music, speech and sound effects, and each call settles on its own in USDC over x402 on Base or Solana, so an unpaid request gets a price back and the retry carries a signed payment header. There is no account and no key to store, and /v1/models is free, so a model picker can fill itself before anything is paid. Docs and the endpoint list are at https://blockrun.ai.

Is that the sort of setup the provider list should carry as an entry, or does it belong to the caller who settles from their own script? Happy to write it in whichever shape you want and open it for review, and just as happy to hear that payment sits outside the AI surface on purpose.