POSTEndpoint:
https://api.sciforium.com/v1/chat/completions
Overview
The/v1/chat/completions endpoint generates conversational responses from a sequence of messages and generation parameters.
Request Body Parameters
The API expects a JSON body.model and messages are required.
Example response
The API returns a JSON object containing the completion and usage metadata.id: Unique identifier for the completion.object: Object type (chat.completion).model: Model used for generation.choices: Array of completion objects, each with:index: Choice index.message: Assistant message withroleandcontent.finish_reason: Reason for completion (stop,length, etc.).
usage: Token usage statistics includingprompt_tokens,completion_tokens,total_tokens, andgpu_seconds.