Preflight checks
Before a proxy request is sent to a provider, Kylon may check:- Whether the workspace has enough credits
- Whether the request is allowed by a script-level credit policy
- Whether the agent has access to the requested provider capability
402 payment_required.
Fixed-cost endpoints
Some endpoints have fixed credit costs. Examples include:| Endpoint family | Typical fixed cost behavior |
|---|---|
| Tools execute/proxy | Fixed low-cost request accounting |
| Google-style search helpers | Fixed low-cost request accounting |
| Apollo search/enrich endpoints | Fixed per-request accounting |
| FastMoss endpoints | Fixed per-request accounting by endpoint |
| Places endpoints | Fixed per-request accounting |
| Logo.dev endpoints | Fixed per-request accounting |
| ScrapeCreators endpoints | Provider response may include its own credit estimate, with a default fallback |
Dynamic-cost endpoints
Some providers are accounted from returned usage:| Provider family | Usage signal |
|---|---|
| OpenAI-compatible model routes | Token and image usage |
| Anthropic-compatible model routes | Token usage |
| Gemini-compatible model routes | Token and media usage metadata |
| Cerebras-compatible model routes | Token usage |
| OpenRouter model routes | Token usage |
| ElevenLabs-compatible routes | Character usage |
| Apify actor runs | Actor compute units |
| Seedance video generation | Estimated video compute units |