documentation
make your first request.
Create a key, install an SDK, and receive a model response.one key. one request.
- Create an accountSign up with email and password, confirm your email, then wait for access approval.
- Create a keyOpen API keys. Copy the secret when it appears; it is shown once.
- Call BrokKeep the key in a server environment variable and run the request below.
curl https://api.brok.fyi/v1/chat/completions \
-H "Authorization: Bearer $BROK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"brok-2.3","messages":[{"role":"user","content":"hello"}]}'base URL
https://api.brok.fyi/v1recommended model brok-2.3what success looks like
A successful response has HTTP 200, model output in choices[0].message.content, token counts in usage, and an x-brok-request-id header. The request appears in Usage with its key, route, model, latency, status, and tokens.