1# gRPC API Reference1#### gRPC API
2 2
3The xAI gRPC API is a robust, high-performance gRPC interface designed for seamless integration into existing systems.3# Overview
4 4
5The base url for all services is at `api.x.ai`. For all services, you have to authenticate with the header `Authorization: Bearer <your xAI API key>`.5The xAI gRPC API exposes the same models and services as the REST API over gRPC. The base URL for all services is `api.x.ai`, and every call must carry the header `Authorization: Bearer <your xAI API key>`.
6 6
7Visit [xAI API Protobuf Definitions](https://github.com/xai-org/xai-proto) to view and download our protobuf definitions.7The protobuf definitions are published in [xai-org/xai-proto](https://github.com/xai-org/xai-proto). The [xAI Python SDK](https://github.com/xai-org/xai-sdk-python) (`xai-sdk`) uses gRPC natively; install it with `pip install xai-sdk`.
8
9The [xAI Python SDK](https://github.com/xai-org/xai-sdk-python) (`xai-sdk`) uses gRPC natively. Install with `pip install xai-sdk`.
10 8
11## Using buf curl9## Using buf curl
12 10
17cd xai-proto15cd xai-proto
18```16```
19 17
20All `buf curl` examples below assume you run from inside the cloned `xai-proto` directory.18All `buf curl` examples in this reference assume you run from inside the cloned `xai-proto` directory.
19
20## Services
21 21
22***22* [Chat](/developers/grpc-api-reference/chat) — `xai_api.Chat`
23* [Image](/developers/grpc-api-reference/image) — `xai_api.Image`
24* [Video](/developers/grpc-api-reference/video) — `xai_api.Video`
25* [Batch Management](/developers/grpc-api-reference/batches) — `xai_api.BatchMgmt`
26* [Models](/developers/grpc-api-reference/models) — `xai_api.Models`
27* [Auth](/developers/grpc-api-reference/auth) — `xai_api.Auth`
28* [Tokenize](/developers/grpc-api-reference/tokenize) — `xai_api.Tokenize`
29* [Raw Sampling](/developers/grpc-api-reference/sample) — `xai_api.Sample`