go-xai

Unofficial Go client for the xAI (Grok) REST API at https://api.x.ai. xai.NewClientWithResponses from github.com/psyb0t/go-xai gives one typed method per endpoint, generated with oapi-codegen from xAI's OpenAPI document - chat completions, the Responses API, Anthropic style messages, embeddings, tokenization, image and video generation, files, skills, document search, models and API key info - with JSON 200 bodies decoded into Go structs. Auth is a bearer API key set through a request editor. Use when Go code needs to call the xAI API or already imports go-xai.

Install

openclaw skills install @psyb0t/go-xai