ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiAi gateway

Chat completions (OpenAI-compatible, streaming supported)

POST
/api/v1/ai/chat/completions

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Response Body

Completion or SSE stream

Example Request
curl -X POST 'http://localhost:3001/api/v1/ai/chat/completions'
Example Response
Empty