← All services

Grok

Grok

AI

https://apiserver.mpprouter.dev/v1/services/grok

xAI models — chat, web/X search, code execution, image generation/editing, and text-to-speech.

Endpoints

Method
URL
Price
POST
https://apiserver.mpprouter.dev/v1/services/grok/grok/chat
POST
https://apiserver.mpprouter.dev/v1/services/grok/grok/image-generate
POST
https://apiserver.mpprouter.dev/v1/services/grok/grok/image-edit
POST
https://apiserver.mpprouter.dev/v1/services/grok/grok/web-search
POST
https://apiserver.mpprouter.dev/v1/services/grok/grok/x-search
POST
https://apiserver.mpprouter.dev/v1/services/grok/grok/code-execution
POST
https://apiserver.mpprouter.dev/v1/services/grok/grok/tts

Try it with your agent

Ask Grok via MPP Router: "Explain HTTP 402 Payment Required in one sentence." Pay with my Stellar USDC wallet.

Requires the stellar-agent-wallet skill — see Use with agents.

Code sample

curl -X POST "https://apiserver.mpprouter.dev/v1/services/grok/grok/chat" \
  -H "Content-Type: application/json" \
  -d '{}'
# returns 402 Payment Required — pay with the stellar-agent-wallet skill (mppx / x402)

Verification

/v1/services/grok/grok_chat

Model-dependent (~$0.001–$0.02) (dynamic)

charge-verified 2026-08-01

Verified — tx evidence not yet published here