AIsa guide to xAI Grok model IDs and endpoints through OpenAI-compatible routes.
AIsa gives you access to xAI’s Grok models with one AIsa API key. Every Grok model accepts POST /v1/chat/completions, and newer Grok models also accept POST /v1/messages and POST /v1/responses. The table lists the endpoints each model accepts.
from openai import OpenAIclient = OpenAI(api_key="YOUR_AISA_API_KEY", base_url="https://api.aisa.one/v1")response = client.chat.completions.create( model="grok-4.7", messages=[{"role": "user", "content": "Draft a launch plan for a developer tool."}],)print(response.choices[0].message.content)