Quickstart
Make your first paid call: connect a wallet, top up, create a key, call an endpoint and read its receipt.
Before you start
- A Solana wallet that supports Wallet Standard (Phantom, Solflare, Backpack and others).
- At least $5 of USDC or SOL for the first top up.
- cURL, Python 3 or Node 22.
1. Connect and sign in
- ScreenConnect wallet
- ActionSign a message
- ResultSigned in
Sign the messageSigned in. No transaction was sent
Example dataSigning the message proves the wallet is yours. It costs nothing and sends no transaction. Details.
2. Top up your balance
- ScreenConsole › Balance
- ActionTop up, sign once
- ResultBalance confirmed
Sign one transactionConfirmed on chain, balance updated
Example dataTop up with USDC or SOL, at least $5. Your wallet signs one transfer to the treasury; the balance updates after the chain confirms it. Balances pay for calls and cannot be withdrawn.
3. Create an API key
- ScreenConsole › Keys
- ActionCreate key
- ResultCopy the secret once
Copy the secretCopied. It is never shown again
Example dataKeys start with ec_live_. The full secret is shown once; store it in your environment.
4. Make the call
- ScreenYour code
- ActionPOST /v1/chat/completions
- ResultReply plus receipt header
Your request finishesIt appears in the public log with its receipt
Example dataPoint any OpenAI client at the gateway and use an endpoint as the model.
5. Read the receipt
- Screenx-ec-receipt header
- ActionOpen the receipt
- ResultCost, fee, markup, tokens
Open the receiptMoney and tokens, never content
Example dataThe response header x-ec-receipt holds the receipt id. Open it in Console Usage, or fetch it from the public receipts route.
In the product: Open Console