Skip to content
Berry Juicer

Set Up Inference

Harvest yield becomes a USDG-denominated inference balance, spendable through the Berry API against any OpenAI-compatible client.

  • Every harvest credits 80% of converted USDG to your inference balance.
  • Requests are authenticated by a wallet signature. No API keys to manage or leak.
  • Point any OpenAI-compatible client at the Berry endpoint with three headers.
  • The Berry dapp now uses a stricter v2 scheme that binds each signature to a specific request body. The legacy headers below still work during rollout. SDK snippet for v2 available on request.

Generate access signature

Signs berry-inference:{address}:{timestamp} with your wallet.

Signatures expire after 5 minutes. Re-sign per session.

Example request
curl -X POST https://api.berryfinance.site/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 harvest yield" }]
  }'