Overview
This endpoint provides OpenAI-compatible chat completions, allowing you to use thinnestAI agents as a drop-in replacement for OpenAI’s API. It redirects toPOST /v1/chat/completions.
Request Body
Agent public ID (ag_*) or internal ID
Array of message objects with role and content
Session ID for conversation continuity
Enable SSE streaming (default: false)
Message Object
Response 200
Streaming Response
Whenstream: true, returns Server-Sent Events:

