chat_completions
OpenAI-compatible chat completions — Drop-in OpenAI-style chat endpoint: POST the standard chat.completions JSON body (messages with system, user and assistant roles, max_tokens, temperature, top_p) and get a chat.completion object back. Llama 3.3 70B. Pay per call in USDC on Base with x402 instead of an API key; point an OpenAI-compatible client at this base URL. Streaming is not supported. Price: $0.01 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "chat_completions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | array of {role, content} chat messages (OpenAI format) | |
| max_tokens | No | optional max output tokens (default 800, max 2048) | |
| temperature | No | optional sampling temperature 0-2 |