ENGINE: worm-chat
|
LATENCY: <500ms
Next-Gen Autonomous AI Backend
High-performance AI chat completions endpoint with instant Server-Sent Events (SSE) streaming, multi-turn session persistence, defensive security analysis, and fine-tuned persona presets.
Status
99.9% Online
Architecture
Serverless Edge
Protocol
SSE & JSON
Security
Token Throttled
Interactive Live Playground
Test real-time chat completions directly on the production endpoint
Method:
POST
/api/v1/gpt/chat
Console Response
Idle
// Click "SEND QUERY" to dispatch a request to:
// POST https://heangblackcyberfree.online/api/v1/gpt/chat
//
// Ready to receive stream or JSON payload...
API Integration Cookbook
Ready-to-use production snippets in cURL, Python, JavaScript, and Telegram Bot
curl -X POST https://heangblackcyberfree.online/api/v1/gpt/chat \
-H "Content-Type: application/json" \
-H "heang-API-Key: e5af7b18d6c35aee93d710b6f92c8bb4dafdc1c339b0be02ffd065574c361a90" \
-d '{
"prompt": "Hello HeaNg! Tell me how worm-chat engine works.",
"session_id": "test-user-1",
"mode": "default",
"stream": false
}'
Full HTTP Endpoints Specification
| Method | Endpoint Path | Auth Header | Description |
|---|---|---|---|
| POST | /api/v1/gpt/chat | heang-API-Key: <key> | Primary AI completions with session history & optional streaming |
| GET | /api/v1/gpt/chat?prompt=... | heang-API-Key: <key> | Quick URL query testing (text/plain or JSON output) |
| GET | /api/v1/health | None | Liveness probe and deployment health status |
| GET | /api/v1/metrics | None | Observability metrics: uptime, total requests, latency |