Skip to content

Pre-GA Design Partner and Early Access only. Request access

Helix Docs
v0.114.0 CLI · SDK

AI gateway and usage tracking

Call AI models from your functions with ctx.ai, and track spend per workspace with helix ai usage.

npm install @trayai/helix-cli@0.114.0 @trayai/helix-sdk@0.114.0
View as Markdown

What matters in this release

Added

AI gateway - ctx.ai

You can now call large-language and image-generation models directly from your Helix functions using the new ctx.ai namespace. Configure one or more AI providers in your project config, then call methods like ctx.ai.generateText or ctx.ai.generateImage without managing API keys per function. The gateway handles authentication, routing to the right provider, and cost tracking automatically.

Read the docs →

Everything else that changed

Added

  • helix ai usage
  • The top-level ctx.ai.* functions now reject a model instance that wasn't obtained from…
  • An aiProviders entry's baseUrl must be https:; this is now validated when your config loads…
  • generateImage's result.helix.cost now reflects the provider's reported token usage (previously…

All releases

Loading search…

Jump to a section

tab to move · esc to close