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/json
    • Authorization: Bearer <API-KEY>
  • Body: JSON with messages array containing user prompts

Response

The API returns a streaming response with content generated by the AI model.

results matching ""

    No results matching ""