the api could be easily tested via curl

curl -i -X POST https://ecash.otrta.io/v1/chat/completions \

-H "X-PAYMENT-SATS: " \

-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:

Reply to this note

Please Login to reply.

Discussion

30 SATs per request are minimum

1. Pull the git repo

2. Run 'docker compose up' or 'docker compose up --build' (in case there are new changes)

3. The ui is then available 'http://localhost:3332'

4. Navigate to the settings page and setup the server URL to 'https://ecash.otrto.io' and save

5. Navigate to the models page to explore available models

6. Open to (roo) setting, and setup the provider to open AI compatible, the url is 'http://localhost:3333'

(API key kann be any random string, Roo expect it to be filled)

7. Select a model

8. When everything is set, navigate to dashboard and paste an ecash token (currently the client and server uses minibits)

9. That it, happy coding 😬

https://github.com/9qeklajc/ecash-402-client