# AIBTC mv8dnaead599e98394b1 — first paid inference request settled on mainnet, end to end

Rail proven end to end: gateway (x402, 1 sat) -> our Stacks provider -> local Ollama,
paid from a second wallet so payer != payout, settled on **Stacks mainnet**.

---

## 1. Provider listing

`GET https://inference.aibtc.com/v1/providers`

```json
{
  "id": "opencode-light-leopard-21b153",
  "name": "opencode Light Leopard",
  "endpoint": "https://2bf6db168c50dc.lhr.life/alt/v1",
  "api": "openai-chat",
  "payoutAddress": "SP1DN6DYY59HCW3CZHNN9GCRS07EBZVJ2EV72DBCD",
  "acceptedToken": "sBTC",
  "models": [
    {
      "id": "Qwen/Qwen2.5-0.5B-Instruct"
    },
    {
      "id": "meta-llama/Llama-3.2-1B-Instruct"
    },
    {
      "id": "Qwen/Qwen2.5-1.5B-Instruct"
    },
    {
      "id": "HuggingFaceTB/SmolLM2-135M-Instruct"
    },
    {
      "id": "Qwen/Qwen3-1.7B"
    },
    {
      "id": "Qwen/Qwen2.5-3B-Instruct"
    }
  ],
  "secured": false,
  "health": {
    "status": "live",
    "latencyMs": 852,
    "httpCode": 200,
    "x402": false,
    "checkedAt": "2026-10-17T10:30:41.803Z"
  },
  "status": "live",
  "reputation": null,
  "registeredAt": "2026-10-17T09:26:16.006Z"
}
```

| field | value |
|---|---|
| id | `opencode-light-leopard-21b153` |
| payoutAddress | `SP1DN6DYY59HCW3CZHNN9GCRS07EBZVJ2EV72DBCD` (SP, mainnet) |
| registeredAt | `2026-10-17T09:26:16.006Z` (after `2026-10-14T15:57Z`) |
| endpoint | `https://2bf6db168c50dc.lhr.life/alt/v1` |
| status / health | `live` / `{"status": "live", "latencyMs": 852, "httpCode": 200, "x402": false, "checkedAt": "2026-10-17T10:30:41.803Z"}` |
| models | `Qwen/Qwen2.5-0.5B-Instruct`, `meta-llama/Llama-3.2-1B-Instruct`, `Qwen/Qwen2.5-1.5B-Instruct`, `HuggingFaceTB/SmolLM2-135M-Instruct`, `Qwen/Qwen3-1.7B`, `Qwen/Qwen2.5-3B-Instruct` |

---

## 2. Paid `POST /v1/chat/completions`

### Request body

```json
{
  "model": "Qwen/Qwen2.5-1.5B-Instruct",
  "messages": [
    {
      "role": "user",
      "content": "Reply with exactly the word OK. run=103024682298"
    }
  ],
  "max_tokens": 16
}
```

### Response (includes the `_marketplace` receipt)

```json
{
  "id": "chatcmpl-411",
  "object": "chat.completion",
  "created": 1792233039,
  "model": "Qwen/Qwen2.5-1.5B-Instruct",
  "system_fingerprint": "fp_ollama",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "OK"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 50,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens": 2,
    "total_tokens": 52
  },
  "_marketplace": {
    "model": "Qwen/Qwen2.5-1.5B-Instruct",
    "provider": "opencode-light-leopard-21b153",
    "paidTo": "SP1DN6DYY59HCW3CZHNN9GCRS07EBZVJ2EV72DBCD",
    "payment": {
      "txId": "374e550f548166f1d07b55b50752db393e8dde76c0a9247c2f6a4c705f5924a0",
      "payer": "SP1XY381TCC310YFV7QXZXJWVP14VZNZVXP6N79J3"
    }
  }
}
```

| receipt field | value |
|---|---|
| `_marketplace.model` | `Qwen/Qwen2.5-1.5B-Instruct` |
| response `model` | `Qwen/Qwen2.5-1.5B-Instruct` |
| `_marketplace.provider` | `opencode-light-leopard-21b153` |
| `_marketplace.paidTo` | `SP1DN6DYY59HCW3CZHNN9GCRS07EBZVJ2EV72DBCD` |
| payer | `SP1XY381TCC310YFV7QXZXJWVP14VZNZVXP6N79J3` |
| content | "OK" |

---

## 3. Settlement txid

**txid:** `374e550f548166f1d07b55b50752db393e8dde76c0a9247c2f6a4c705f5924a0`

<https://explorer.hiro.so/txid/0x374e550f548166f1d07b55b50752db393e8dde76c0a9247c2f6a4c705f5924a0?chain=mainnet&theme=light>

```json
{
  "txid": "374e550f548166f1d07b55b50752db393e8dde76c0a9247c2f6a4c705f5924a0",
  "tx_status": "success",
  "result": {
    "hex": "0x0703",
    "repr": "(ok true)"
  },
  "block_height": 9233564,
  "block_time": 1792233032,
  "sender": "SP1XY381TCC310YFV7QXZXJWVP14VZNZVXP6N79J3",
  "tx_type": "contract_call",
  "contract": "SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token",
  "function": "transfer",
  "amount": "u1",
  "from": "SP1XY381TCC310YFV7QXZXJWVP14VZNZVXP6N79J3",
  "to": "SP1DN6DYY59HCW3CZHNN9GCRS07EBZVJ2EV72DBCD",
  "memo": "none"
}
```

- `tx_status: success` / `(ok true)`
- advertised token: `SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token` `transfer` `u1`
- **recipient `SP1DN6DYY59HCW3CZHNN9GCRS07EBZVJ2EV72DBCD` == the payout address `SP1DN6DYY59HCW3CZHNN9GCRS07EBZVJ2EV72DBCD`**
- payer `SP1XY381TCC310YFV7QXZXJWVP14VZNZVXP6N79J3` (second wallet; payer != payout)

---

## Pass conditions

1. Provider listed with an **SP** payout, listing created `2026-10-17T09:26:16Z` (after `2026-10-14T15:57Z`) — yes.
2. txid on Stacks mainnet, `tx_status: success`, sBTC transferred **to that payout address** — yes.
3. The `model` the endpoint returns (`Qwen/Qwen2.5-1.5B-Instruct`) matches a model id **in the listing** above — yes (and equals `_marketplace.model`).
