Send a chat message and get a response
One step with xAI. We can help you get access.
Get something done
Send a chat message and get a response
with xAI · Model Inference
Works with AI assistants
Use xAI: its xAI's REST Messages API lets you send a chat message and get a response in a single step (POST /v1/messages). xAI also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- How do I send a chat message to the model and get a reply?
- Can I cap how many tokens the model generates?
Say it to your AI assistant
- Send a chat message {messages} to the model.
- Send {messages} to the model with a maximum of {max_tokens} tokens.
For your developer
POST /v1/messages in xAI's REST Messages API. Full spec on APIs.io.