chenyme/grok2api
FastAPI-based gateway that converts Grok's AI capabilities into OpenAI and Anthropic compatible REST APIs.

The project provides a reverse-proxy layer enabling developers to access xAI’s Grok model using standard OpenAI SDK calls. It translates requests and responses between formats, supports multi-account pooling with load balancing, and aggregates token usage statistics across sessions. Additional features include local caching of generated media, a built-in admin dashboard, web chat interface, and support for multimodal generation including text-to-image, image editing, and text-to-video.