All models
Grok 4 6
xai/grok-4.6
Quick start
# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/chat/completions \
-H "content-type: application/json" \
-d '{
"model": "xai/grok-4.6",
"messages": [{"role": "user", "content": "<your message>"}]
}'
# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/chat/completions \
-J '{"model": "xai/grok-4.6", "messages": [{"role": "user", "content": "<your message>"}]}'Parameters
Input
messages array required
max_completion_tokens optional
max_tokens optional
n optional
How many outputs to generate.
parallel_tool_calls optional
prompt_cache_key optional
reasoning_effort optional
response_format optional
How the result is returned (e.g. a URL or base64 data).
search_parameters object optional
seed optional
Random seed for reproducible results — same seed + inputs gives the same output.
service_tier string optional
stream optional
stream_options object optional
temperature optional
tool_choice optional
tools optional
top_p optional
user optional
Optional end-user identifier for abuse monitoring; not required.
web_search_options object optional
Output