AIs

Interact with various LLMs models

Changed on
post/v1/chat/completions

Request

  • Base URL
    https://api.paxsenix.org
  • Auth
    none declared

Request body

modelstring

The LLM model of the AI, see /v1/models for more

Example request

{
  "model": "gpt-5-nano",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}

Response

Success - AI response retrieved successfully.

Example response

{
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "Blablabla, shut the fuck up"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 1,
    "completion_tokens": 10,
    "total_tokens": 11
  }
}

Changes

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status