Private LLM text completion (paid)
chat_textOpenAI-compatible chat completions — frontier and open-weight models (list under textModels in GET /v1/agent/models). PAID. If this MCP request carries your API key (x-api-key / Bearer lp_…) the completion executes right here and returns {choices, usage}; without a key the upstream answers 402 and this tool returns the x402 payment requirements. Price = estimated input tokens × input rate + max_tokens × output rate — set max_tokens tight to bill tight. Metering keeps token counts only.
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": {
"prompt": "<prompt>"
},
"name": "chat_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Text model id (see textModels in list_models) | |
| payer | No | Your 0x… wallet — volume-tier discount (x402 rail) | |
| prompt | Yes | The text request — your user message | |
| maxTokens | No | Output cap, billed at this amount |