Developer documentation
OpenAPI schemakisch.chat
Appearance
Documentation
API reference

API reference

Endpoint schemas rendered from the bundled Kisch OpenAPI document.

Explore request bodies, responses and authentication for the inference API. The playground sends requests from your browser to the selected API server using your virtual key.

GET
/v1/models

Authorization

BearerAuth
headerAuthorizationBearer <LiteLLM virtual key>

Response Body

Models visible to this key.

application/json
  1. response
object*unknown
data*array<>
Example Request
curl -X GET 'http://localhost:4000/v1/models'
Example Response
{  "object": "list",  "data": []}
POST
/v1/chat/completions

Authorization

BearerAuth
headerAuthorizationBearer <LiteLLM virtual key>

Request Body

application/json
  1. body
model*string

An alias currently returned by GET /v1/models.

messages*array<>
Items1 <= items
stream?boolean
Defaultfalse
temperature?number
Range0 <= value <= 2
top_p?number
Range0 <= value <= 1
max_tokens?integer

Some deployments may instead expose max_completion_tokens. Confirm the active model's runtime contract.

Range1 <= value
stop?string|array<string>

Response Body

A completion response or, when stream is true, a Server-Sent Events stream.

  1. response
id*string
object*unknown
created?integer
model?string
choices*array<>
usage?
Example Request
curl -X POST 'http://localhost:4000/v1/chat/completions' \  -H 'Content-Type: application/json' \  -d '{  "model": "model-id-returned-by-v1-models",  "messages": [    {      "role": "user",      "content": "Say hello in five words."    }  ],  "stream": false}'
Example Response
{  "id": "string",  "object": "chat.completion",  "created": 0,  "model": "string",  "choices": [    {      "index": 0,      "message": {        "role": "assistant",        "content": "string"      },      "finish_reason": "string"    }  ],  "usage": {    "prompt_tokens": 0,    "completion_tokens": 0,    "total_tokens": 0  }}
POST
/v1/responses

Authorization

BearerAuth
headerAuthorizationBearer <LiteLLM virtual key>

Request Body

application/json
  1. body
model*string

An alias currently returned by GET /v1/models.

input*string

Plain text input; array and multimodal input are outside this contract.

stream?boolean
Defaultfalse
max_output_tokens?integer
Range1 <= value
temperature?number
Range0 <= value <= 2
top_p?number
Range0 <= value <= 1

Response Body

A text response or, when stream is true, a Server-Sent Events stream.

  1. response
id*string
object*unknown
created_at?integer
status*string
model?string
output*array<>
output_text?string
Example Request
curl -X POST 'http://localhost:4000/v1/responses' \  -H 'Content-Type: application/json' \  -d '{  "model": "model-id-returned-by-v1-models",  "input": "Say hello in five words.",  "stream": false}'
Example Response
{  "id": "string",  "object": "response",  "created_at": 0,  "status": "string",  "model": "string",  "output": [    {}  ],  "output_text": "string"}