the api could be easily tested via curl
curl -i -X POST https://ecash.otrta.io/v1/chat/completions \
-H "X-PAYMENT-SATS: <ecash token>" \
-H "Content-Type: application/json" \
-d '{ "model": "meta-llama/llama-4-maverick-17b-128e-instruct-fp8", "messages": [{"role": "user", "content": "Tell me the difference between ecash and regular money."}] }'
The response includes a new header field (X-CHANGE-SATS) that provides an eCash token with change.
x-change-sats: <cashback token>
Thefux
thefux@routstr.com
npub1ygjd...lajc
#localfirst
Project for a friend ๐
Excited to announce the ECASH OpenAI API client! There's still a lot to be done, contributions are welcome ๐
GitHub
GitHub - Routstr/otrta-client: routstr client is a privacy-focused payment gateway that enables anonymous micropayments for AI services using Cashu e-cash
routstr client is a privacy-focused payment gateway that enables anonymous micropayments for AI services using Cashu e-cash - Routstr/otrta-client