# xAI v1 API

**Canonical:** https://apis.io/apis/xai/xai-v1-api/  
**Provider:** xAI — https://apis.io/providers/xai/  
**Base URL:** https://api.x.ai/v1  
**Documentation:** https://docs.x.ai/docs/api-reference

xAI v1 API is published by [xAI](https://apis.io/providers/xai/) on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification. Tagged areas include v1. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, and an AsyncAPI specification.

The v1 API from xAI — 30 operation(s) for v1.

## Machine-readable artifacts (13)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/xai/refs/heads/main/openapi/xai-v1-api-openapi.yml
- **Documentation** — https://docs.x.ai/docs/overview
- **APIReference** — https://docs.x.ai/docs/api-reference#chat-completions
- **Documentation** — https://docs.x.ai/docs/api-reference#responses
- **Documentation** — https://docs.x.ai/docs/guides/image-generations
- **APIReference** — https://docs.x.ai/docs/api-reference#image-generations
- **Documentation** — https://docs.x.ai/docs/guides/video-generation
- **Documentation** — https://docs.x.ai/docs/guides/voice
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/xai/refs/heads/main/asyncapi/xai-asyncapi.yml
- **Documentation** — https://docs.x.ai/docs/guides/embeddings
- **Documentation** — https://docs.x.ai/docs/api-reference#models
- **Documentation** — https://docs.x.ai/docs/guides/batch
- **APIsJSON** — https://raw.githubusercontent.com/api-evangelist/xai/refs/heads/main/apis.yml

## Tags

v1

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/xai/xai-v1-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/xai/.
