infer
Run metered AI inference, paying per token in BSV from a funded channel, and get the completion plus a receipt showing satoshis charged and remaining balance.
Instructions
Run one metered inference (OpenAI-compatible), paid per token in BSV from your prepaid channel. Returns the completion plus a receipt: satoshis charged, model routed to, and remaining balance. Requires a funded channel key (apiKey or BSVKEY_API_KEY).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id or policy: auto|cheapest|best, claude-*, grok-*. | auto |
| apiKey | No | channelId:channelSecret for a funded channel. Omit to use BSVKEY_API_KEY. | |
| prompt | Yes | The user prompt. | |
| system | No | Optional system prompt. | |
| maxTokens | No | Max output tokens. | |
| webSearch | No | Let the model search the live web (adds a per-search fee). |