Create receipt
create-receiptMake an AI chat call through Chain Receipt and get a signed, Bitcoin-anchored receipt for it. Needs a Chain Receipt API key (send it as the Authorization bearer token when connecting). Returns the model's answer plus the receipt id, hash, signature and verify URL. One receipt per call, counted against the org's monthly quota like any proxy call.
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": {
"model": "<model>",
"messages": "<messages>"
},
"name": "create-receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | The model as "provider/model", e.g. "google/gemini-3.6-flash", "openai/gpt-6-luna", "anthropic/claude-haiku-4-5" or "xai/grok-4.3". | |
| messages | Yes | The chat messages to send to the model. | |
| max_tokens | No | Maximum tokens in the model's reply. | |
| temperature | No | Sampling temperature, 0–2. | |
| customer_ref | No | Your own reference for this call, stored on the receipt. | |
| provider_key | No | Provider API key for this call only. Omit to use the org's stored provider key. |