DocsAPI ReferenceBff/bff/ai/question-stream
postBffAdmin BFF

/bff/ai/question-stream

Returns a Server-Sent Events stream. Events: "token" ({ text }) for partial chunks, "done" ({ answer }) for the complete response, "error" ({ message }) on failure.

bffpostBffAiQuestion-stream

Parameters

2 body

2 total
Body · 2
questionstringRequired

The question or prompt to send to the AI model

modelstring

AI model identifier (e.g. "gpt-5-mini", "claude-sonnet-4-20250514"). Defaults to gpt-5-mini

Request

POST /bff/ai/question-stream

post
curl -X POST "https://api.bizkithub.com/bff/ai/question-stream" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "question": "What is the capital of France?",
  "model": "gpt-5-mini"
}'

Response

JSON payload

{
  "success": true
}

All response codes

1 status code documented

Need an API key?

All BizKitHub API endpoints require authentication via API key.

Get API Key