Documentation Index
Fetch the complete documentation index at: https://docs.hiveku.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The AI Chat API powers the conversational builder experience. It uses Server-Sent Events (SSE) for streaming responses.Send Message
Send a message to the AI assistant and receive a streaming response.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | The project context |
messages | array | Yes | Conversation history |
model | string | No | Model tier: hiveku-mini, hiveku-max, hiveku-ultra (defaults to user’s selected model) |
mode | string | No | AI mode: code, ask, architect, debug, design, test, security, refactor |
Stream Event Types
| Type | Description |
|---|---|
text | AI text response chunk |
tool_call | AI is calling a tool (file edit, deploy, etc.) |
tool_result | Result of a tool execution |
reasoning | AI reasoning/thinking (when supported by model) |
error | Error message |
[DONE] | Stream complete |
Get Chat History
Retrieve the chat history for a session.
| Parameter | Type | Description |
|---|---|---|
sessionId | string | The chat session ID |
AI Usage
Get AI token usage for a specific user.
| Parameter | Type | Description |
|---|---|---|
userId | string | The user’s ID |