Skip to content

AI 0.15.1: Correct xAI text-to-speech price

AI 0.15.1 corrects the price used to estimate xAI text-to-speech costs. 0.15.0 used $4.20 per million characters, a rate taken from a resale listing, while the module calls xAI’s own API, which charges $15.00 per million characters.

New xAI speech requests are now logged at the right rate. Requests logged under 0.15.0 keep their stored cost, about 3.6 times too low.

Upgrading

If you need accurate history, recompute the cost of xAI speech rows logged under 0.15.0 from their character count: 15 millionths of a dollar per character.

Full release notes: AI 0.15.1

0.15.1 · 16 July 2026

Fixed

  • xAI TTS pricing was wrong by ~3.6x. TtsPricing‘s xAI rate shipped in 0.15.0 as $4.20/1M characters — sourced from an OpenRouter resale listing, not xAI’s own direct-API rate (this module only ever calls xAI’s own POST /v1/tts, never OpenRouter’s proxy of it). Corrected to $15.00/1M characters, confirmed against xAI’s own pricing page (a flat per-character rate, no per-model breakdown — consistent with TTS having no model concept at all for xAI). Every xAI cost_cents value recorded under 0.15.0 is undercounted by the same factor; host apps that care about historical accuracy should recompute those rows (input_chars * 15 nanodollars) rather than trusting the stored value.

AI 0.15.1. Install or update: {:phoenix_kit_ai, "~> 0.15"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.