Skip to main content
Method: POST
Endpoint: 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 with role and content.
    • finish_reason: Reason for completion (stop, length, etc.).
  • usage: Token usage statistics including prompt_tokens, completion_tokens, total_tokens, and gpu_seconds.