With systems like routstr the ecash token can be used as the bearer api key making the payment the authorization
curl -X POST "
https://privateprovider.xyz/v1/chat/completions" -H "Authorization: Bearer YOUR_API_KEY"
-H "Content-Type: application/json"
-d '{
"model": "openai/gpt-4o-mini",
"messages": [
{"role":"system","content":"You are Routstr."},
{"role":"user","content":"Ping the node"}
]
}'