Set Up Inference
What Press earns becomes an inference balance in USDC. Spend it through the Berry API with any OpenAI-compatible client.
- Every press adds 80% of the swapped USDC to your inference balance.
- You prove who you are by signing with your wallet. Nothing to store, nothing to leak.
- Any client that speaks the OpenAI format works. Send it to the Berry endpoint and add three headers.
- The Berry app signs with a stricter v2 scheme, where each signature covers one exact request body. The simpler headers below keep working as well. Ask us if you want a v2 SDK example.
Generate access signature
Signs berry-inference:{address}:{timestamp} with your wallet.
A signature is good for 5 minutes. Sign again each time you start a session.
curl -X POST https://api.berryfi.net/api/inference/chat \
-H "Content-Type: application/json" \
-H "x-berry-address: <your-address>" \
-H "x-berry-timestamp: <timestamp-ms>" \
-H "x-berry-sig: <signature>" \
-d '{
"model": "llama-3.3-70b-instruct",
"messages": [{ "role": "user", "content": "Hello from my Press yield" }]
}'