# Helix 0.114.0: AI gateway and usage tracking

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

- Released: 11 Sept 2026 (2026-09-11)
- Packages: @trayai/helix-cli@0.114.0, @trayai/helix-sdk@0.114.0

## Headline changes

### 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.

Docs: https://helix.tray.ai/documentation/reference/context/

## Other changes

### 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…

---

Canonical: https://helix.tray.ai/documentation/releases/01140/
This file: https://helix.tray.ai/documentation/releases/01140.md
The full changelog: https://helix.tray.ai/documentation/releases.md
