inference_register_provider
List your OpenAI-compatible model endpoint on the AIBTC Inference Marketplace to earn sBTC or USDCx per request. Signs and verifies signature, endpoint reachability, and model ids before listing.
Instructions
List an OpenAI-compatible model endpoint on the AIBTC Inference Marketplace and get paid a flat price per request that you set, in sBTC (default) or USDCx. Signs a registration message with the unlocked payout wallet (proving ownership) and POSTs it. The gateway verifies the signature recovers to payoutAddress, that the endpoint is reachable AND actually serving inference, and that model ids are real/commercial Hugging Face repos — then lists it. Requires an unlocked wallet on the gateway's network.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for your node, e.g. "Alice's Qwen node". | |
| apiKey | No | Optional: a key your endpoint requires. Locks the endpoint so only the gateway (which presents it) can call it. | |
| models | Yes | Hugging Face repo ids you serve, e.g. ["Qwen/Qwen2.5-7B-Instruct"]. | |
| gateway | No | Marketplace gateway base URL. Defaults to https://inference.aibtc.com. Use http://localhost:8787 for local dev. | |
| endpoint | Yes | OpenAI-compatible base URL, e.g. https://my-host/v1 (must expose /models and /chat/completions). | |
| acceptedToken | No | Token callers pay in: sBTC (default) or USDCx. Sets the unit of pricePerRequest. | |
| payoutAddress | No | Stacks address that receives sBTC. Defaults to the unlocked wallet's address (must match the gateway network). | |
| pricePerRequest | Yes | Flat price per request, as a whole number in the accepted token's base unit: sats for sBTC ("5" = 5 sats), 0.000001 USDCx for USDCx ("2000" = 0.002 USDCx). No decimals. | |
| allowUnsafeGateway | No | Allow a gateway host outside localhost / *.aibtc.com. Required to send wallet-signed headers (and any apiKey) to an arbitrary host — leave unset unless you deliberately self-host the gateway. |