THE INTEGRATION GUIDE
Quickstart
Get up and running in under a minute. You need two things: a Base URL and an API Key. Replace <MODEL_ID> in the examples with a model ID from the Models page.
Base URL
https://hashbidx.ai/v1All API requests are prefixed with this URL.
Choose an available model ID from the model catalogue. Account actions require sign-in.
Make your first request
curl -N https://hashbidx.ai/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "<MODEL_ID>",
"messages": [{"role": "user", "content": "Say hello"}],
"max_tokens": 1024,
"stream": true,
"stream_options": {"include_usage": true}
}'Sample response
data: {"id":"chatcmpl-abc123","object":"chat.completion.chunk","model":"<MODEL_ID>","choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}
data: {"id":"chatcmpl-abc123","object":"chat.completion.chunk","model":"<MODEL_ID>","choices":[{"index":0,"delta":{"content":"Hello!"},"finish_reason":null}]}
data: {"id":"chatcmpl-abc123","object":"chat.completion.chunk","model":"<MODEL_ID>","choices":[{"index":0,"delta":{"content":" How can I help you today?"},"finish_reason":null}]}
data: {"id":"chatcmpl-abc123","object":"chat.completion.chunk","model":"<MODEL_ID>","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
data: {"id":"chatcmpl-abc123","object":"chat.completion.chunk","model":"<MODEL_ID>","choices":[],"usage":{"prompt_tokens":12,"completion_tokens":9,"total_tokens":21}}
data: [DONE]You can also try requests interactively in the Playground.