Grok 4.7 API
Grok 4.7 API (xai/grok-4.7): LLM inference via OpenAI-compatible chat completions, pay per call in USDC on Base with x402. No API key, no account. Suited for AI agents and scripts that need Grok 4.7 on demand. When listed, this request cost 30% less than the same request on BlockRun. Streaming and function calling supported. Exact price in the 402 quote before payment; automatic refund if the model fails to answer.
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.
Live 402 challenge
Captured by the enrichment pass, not read just now. Prices can change — always read the 402 the endpoint answers with.
{
"error": "Payment Required",
"accepts": [
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront"
},
"payTo": "0xf7eaf699C6E55887184809c57d597a64aB86d493",
"amount": "1400",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 180
}
],
"resource": {
"url": "https://agent402-arb.rosariovitale0096.workers.dev/llm/grok-4.7",
"tags": [
"grok-4.7",
"grok",
"xai",
"llm",
"chat-completions"
],
"iconUrl": "https://agent402-arb.rosariovitale0096.workers.dev/icon.png",
"mimeType": "application/json",
"description": "Grok 4.7 API (xai/grok-4.7): OpenAI-compatible chat completions, pay per call in USDC on Base with x402. No API key, no account, no subscription. When listed, this request cost 30% less than the same request on BlockRun. Function calling passed through where the model supports it. Exact price in the 402 quote before payment; automatic refund if the model fails to answer.",
"serviceName": "Grok 4.7 API"
},
"extensions": {
"bazaar": {
"info": {
"input": {
"body": {
"model": "xai/grok-4.7",
"stream": false,
"messages": [
{
"role": "user",
"content": "Reply with OK"
}
],
"max_tokens": 12
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"id": "chatcmpl-7f3c2a91",
"model": "xai/grok-4.7",
"usage": {
"total_tokens": 10,
"prompt_tokens": 9,
"completion_tokens": 1
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "OK"
},
"finish_reason": "stop"
}
],
"created": 1791979200
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method",
"bodyType",
"body"
],
"properties": {
"body": {
"type": "object"
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"queryParams": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
}
}
}
}
},
"x402Version": 2
}Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 0.0091 USDC on Base to 0xf7ea…6d493. The signed payment is good for 3 minutes.
- Paid to
- 0xf7ea…6d493
- USD Coin contract
- 0x8335…02913
- Payment window
- 3 minutes
- As published
- 9100 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2",
"paymentFlow": "upfront"
},
"payTo": "0xf7eaf699C6E55887184809c57d597a64aB86d493",
"amount": "9100",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 180
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"body": {
"model": "xai/grok-4.7",
"stream": false,
"messages": [
{
"role": "user",
"content": "Reply with OK"
}
],
"max_tokens": 12
},
"type": "http",
"method": "POST",
"bodyType": "json"
},
"output": {
"type": "json",
"example": {
"id": "chatcmpl-7f3c2a91",
"model": "xai/grok-4.7",
"usage": {
"total_tokens": 10,
"prompt_tokens": 9,
"completion_tokens": 1
},
"object": "chat.completion",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "OK"
},
"finish_reason": "stop"
}
],
"created": 1791979200
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"method",
"bodyType",
"body"
],
"properties": {
"body": {
"type": "object",
"required": [
"messages"
],
"properties": {
"model": {
"type": "string",
"description": "Optional: fixed by the route (xai/grok-4.7)"
},
"tools": {
"type": "array"
},
"stream": {
"type": "boolean",
"description": "true: server-sent events after payment"
},
"messages": {
"type": "array",
"items": {
"type": "object",
"required": [
"role"
],
"properties": {
"role": {
"enum": [
"system",
"user",
"assistant",
"tool",
"developer"
],
"type": "string"
},
"content": {
"type": [
"string",
"array",
"null"
]
}
}
},
"minItems": 1
},
"max_tokens": {
"type": "integer",
"maximum": 16384,
"minimum": 1,
"description": "Optional, default 4096"
},
"temperature": {
"type": "number",
"maximum": 2,
"minimum": 0
},
"response_format": {
"type": "object"
}
}
},
"type": {
"type": "string",
"const": "http"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"queryParams": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object",
"required": [
"id",
"object",
"model",
"choices"
],
"properties": {
"id": {
"type": "string"
},
"model": {
"type": "string"
},
"usage": {
"type": "object"
},
"object": {
"const": "chat.completion"
},
"choices": {
"type": "array",
"items": {
"type": "object",
"required": [
"index",
"message",
"finish_reason"
]
}
}
}
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-10-16 17:08Z
- Last indexed by Roundhouse
- 2026-10-26 20:00Z
- Last enriched (probe, favicon, geo)
- 2026-10-15 06:45Z
- x402 version
- 2
- Max timeout
- 180s
- Liveness probe
- HTTP 402
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 16 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service Grok 4.7 API and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=Grok%204.7%20API' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://agent402-arb.rosariovitale0096.workers.dev/llm/grok-4.7, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Either pay over x402 (mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402), or ask me for an organization key, which I create at https://roundhouseai.io/dashboard/connections. If you have neither, ask before going further. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.