inference_reveal_key
Reveal or rotate the write-only gateway-to-endpoint credential for a provider. Use a wallet signature to read the stored shared key, or set rotate=true to issue a new key and invalidate the old one.
Instructions
Reveal or rotate your provider's shared key — the gateway↔endpoint credential the gateway presents when it calls your endpoint (NOT an ownership token; ownership is your wallet). The gateway stores it write-only, so a wallet signature is the only way to read it back. Pass rotate=true to issue a new one. Requires an unlocked wallet.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rotate | No | true = generate and return a NEW key (invalidates the old one). false/omitted = reveal the current key. | |
| gateway | No | Marketplace gateway base URL. Defaults to https://inference.aibtc.com. Use http://localhost:8787 for local dev. | |
| providerId | Yes | The provider id (from inference_list_providers). | |
| 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. |