cURL Example
For quick testing or shell scripting, you can use curl to call the Bitseek Chat SSE API.
Request
curl https://chat-proxy.bitseek.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <API-KEY>" \
-d '{
"messages": [
{
"role": "user",
"content": "Hello, please introduce yourself."
}
]
}'
Parameters
- URL:
https://chat-proxy.bitseek.ai/v1/chat/completions - Method:
POST - Headers:
Content-Type: application/jsonAuthorization: Bearer <API-KEY>
- Body: JSON with
messagesarray containing user prompts
Response
The API returns a streaming response with content generated by the AI model.