# Telnyx AI: AI Gateway — Documentation Index > AI Gateway documentation within the AI section of the Telnyx developer docs (https://developers.telnyx.com). > This file: https://developers.telnyx.com/docs/development/llms/ai-ai-gateway-llms-txt · Root index: https://developers.telnyx.com/llms.txt ## AI Gateway - [Overview](https://developers.telnyx.com/docs/inference/ai-gateway.md): AI Gateway issues scoped inference credentials for applications: token groups and keys, model allowlists, budgets, rate limits and usage ledgers. - [Quickstart](https://developers.telnyx.com/docs/inference/ai-gateway/quickstart.md): Create a token group, issue a scoped token key, call a model with the OpenAI SDK, inspect usage and revoke the key. ## API - [Inference API](https://developers.telnyx.com/docs/inference/ai-gateway/inference-api.md): Call models through AI Gateway with the OpenAI and Anthropic SDKs: base URL, authentication, streaming, request limits and supported request fields. - [Management API](https://developers.telnyx.com/docs/inference/ai-gateway/management-api.md): Provision AI Gateway token groups, users, keys, end-user caps and provider keys, with idempotency, ETag preconditions and snapshot pagination. ## Concepts - [Controls](https://developers.telnyx.com/docs/inference/ai-gateway/controls.md): How AI Gateway enforces budgets, rate limits and end-user identity, and what an application observes at each limit. - [Guardrails](https://developers.telnyx.com/docs/inference/ai-gateway/guardrails.md): Configure token-group policies to flag or block supported secrets and sensitive data in prompts and model responses, including streamed responses. - [Bring your own key](https://developers.telnyx.com/docs/inference/ai-gateway/byok.md): Attach an OpenAI or Anthropic key to AI Gateway groups so your provider bills inference while Telnyx enforces budgets, rate limits and attribution. - [Usage reporting](https://developers.telnyx.com/docs/inference/ai-gateway/usage.md): Query AI Gateway usage totals, daily and model breakdowns, guardrail counts, and request-level spend events. - [Errors](https://developers.telnyx.com/docs/inference/ai-gateway/errors.md): HTTP status codes, structured error codes and error envelopes returned by the AI Gateway management and inference planes, with handling guidance. ## API Reference (AI Gateway) ### AI Gateway - [List gateway spend events](https://developers.telnyx.com/api-reference/ai-gateway/list-gateway-spend-events.md): Return request-level usage history for the authenticated account. Supply both UTC dates or neither; omitting both returns the previous full UTC day. Dates use… - [Get gateway spend summary](https://developers.telnyx.com/api-reference/ai-gateway/get-gateway-spend-summary.md): Return request counts, token counts and reference spend grouped by one attribution dimension. Both UTC dates and group_by are required. Dates use a half-open r… - [Get gateway usage summary](https://developers.telnyx.com/api-reference/ai-gateway/get-gateway-usage-summary.md): Gateway reference/enforcement usage, not invoice truth or BYOK provider charges. Requires the dedicated llm_token_gateway.usage.read V2 action for combined spe… - [Export gateway usage](https://developers.telnyx.com/api-reference/ai-gateway/export-gateway-usage.md): Durable, replayable, content-free usage export for customer pipelines. Requires the dedicated llm_token_gateway.usage_export.read V2 action; spend.read and usa… - [List gateway token groups](https://developers.telnyx.com/api-reference/ai-gateway/list-gateway-token-groups.md): List gateway token groups within the authenticated Telnyx account. Foreign and unknown resource IDs return the same 404 response. - [Create gateway token group](https://developers.telnyx.com/api-reference/ai-gateway/create-gateway-token-group.md): Create gateway token group within the authenticated Telnyx account. Foreign and unknown resource IDs return the same 404 response. - [Get gateway token group](https://developers.telnyx.com/api-reference/ai-gateway/get-gateway-token-group.md): Get gateway token group within the authenticated Telnyx account. Foreign and unknown resource IDs return the same 404 response. - [Update gateway token group](https://developers.telnyx.com/api-reference/ai-gateway/update-gateway-token-group.md): Update gateway token group within the authenticated Telnyx account. Foreign and unknown resource IDs return the same 404 response. Omitted fields are preserved… - [Delete gateway token group](https://developers.telnyx.com/api-reference/ai-gateway/delete-gateway-token-group.md): Revoke resource and its keys atomically; retain historical attribution, never detach into an ungoverned service key. - [List gateway token keys](https://developers.telnyx.com/api-reference/ai-gateway/list-gateway-token-keys.md): List gateway token keys within the authenticated Telnyx account. Foreign and unknown resource IDs return the same 404 response. - [Create gateway token key](https://developers.telnyx.com/api-reference/ai-gateway/create-gateway-token-key.md): Create gateway token key within the authenticated Telnyx account. Foreign and unknown resource IDs return the same 404 response. The token secret is returned o… - [Get gateway token key](https://developers.telnyx.com/api-reference/ai-gateway/get-gateway-token-key.md): Get gateway token key within the authenticated Telnyx account. Foreign and unknown resource IDs return the same 404 response. - [Update gateway token key](https://developers.telnyx.com/api-reference/ai-gateway/update-gateway-token-key.md): Update gateway token key within the authenticated Telnyx account. Foreign and unknown resource IDs return the same 404 response. Omitted fields are preserved.… - [Delete gateway token key](https://developers.telnyx.com/api-reference/ai-gateway/delete-gateway-token-key.md): Revoke this token key. Acknowledged revocation blocks new admissions with the key; requests already admitted may complete. Historical usage attribution is reta…