Chat Completion

POSThttps://zylai-a779.zyllion.network/v1/chat/completions

info

Feel free to use the Zyllion2025 as a test Bearer Token

Generate a chat completion response from the AI model.

  • req: Chat completion request containing messages and model specifications

  • user: Authenticated user information (through HTTP Bearer header)

  • Returns: Full chat response with model output, usage statistics, and cryptographic signature

Request Requirementsarrow-up-right

  • Must include non-empty list of messages

  • Must specify a model

  • Supports multiple message formats (system, user, assistant)

Response Componentsarrow-up-right

  • Model-generated text completion

  • Token usage metrics

  • Cryptographically signed response for verification

Processing Stepsarrow-up-right

  1. Validate input request parameters

  2. Prepare messages for model processing

  3. Generate AI model response

  4. Track and update token usage

  5. Cryptographically sign the response

Potential HTTP Errorsarrow-up-right

  • 400 Bad Request:

    • Missing messages list

    • No model specified

  • 500 Internal Server Error:

    • Model fails to generate a response

  • application/json

Responsesarrow-up-right

  • 200

  • 422

Successful Response

  • application/json

  • Schema

  • curl

  • dart

  • go

  • http

  • java

  • javascript

  • kotlin

  • c

  • nodejs

  • objective-c

  • ocaml

  • php

  • powershell

  • python

  • r

  • ruby

  • rust

  • shell

  • swift

  • HTTPCLIENT

  • RESTSHARP

RequestCollapse all

Send API RequestResponseClear

Click the Send API Request button above and see the response here!

arrow-up-right

Last updated