Quickstart
First call in sixty seconds
1 · Get a key
Sign up at sonnely.com/signin, open the console, create a key. It is shown once — only a hash is stored.
export SONNELY_KEY="sk-sonnely-..."
export SONNELY_BASE="https://sonnely.com/api/v1"2 · Call a model
curl $SONNELY_BASE/chat/completions \
-H "Authorization: Bearer $SONNELY_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"sonnely-gpt","messages":[{"role":"user","content":"hello"}]}'Python (OpenAI SDK, nothing else changes):
from openai import OpenAI
c = OpenAI(api_key="sk-sonnely-...", base_url="https://sonnely.com/api/v1")
r = c.chat.completions.create(
model="sonnely-gpt",
messages=[{"role": "user", "content": "hello"}],
)
print(r.choices[0].message.content)
print(r.sonnely) # {"credits_charged": ..., "margin_bps": 2000}3 · Fund it
Send USDG or ETH on Robinhood Chain to treasury, then claim:
curl https://sonnely.com/api/deposits/claim \
-H "Content-Type: application/json" \
-d '{"txHash":"0x...","asset":"USDG","chainId":4663}'
# {"usdValue":10,"credits":10000,...}Or fund visually in the account page.
4 · Plug into your tools
| Tool | Setting |
|---|---|
| Cursor | Settings → Models → OpenAI key + override base URL |
| Continue | "provider": "openai", "apiBase": "https://sonnely.com/api/v1" |
| Aider | --openai-api-base https://sonnely.com/api/v1 --openai-api-key $SONNELY_KEY |
| LangChain | Any OpenAI chat class with a base URL |