Developer documentation
OpenAPI schemakisch.chat
Appearance
Documentation
API reference

Responses API

Generate a stateless text response.

Send a text input to POST /v1/responses with a model alias and a virtual key. The initial Kisch API contract supports text input and output. The selected model deployment must support this endpoint.

curl --fail-with-body "$KISCH_BASE_URL/v1/responses" \
  -H "Authorization: Bearer $KISCH_API_KEY" \
  -H "Content-Type: application/json" \
  -d "$(jq -n --arg model "$KISCH_MODEL" '{model:$model,input:"Schreibe einen präzisen Einstieg über die Zukunft des Handwerks."}')"

Read text from the response's output message content. With the OpenAI Python SDK, the output_text convenience property returns the generated text:

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["KISCH_API_KEY"],
    base_url=os.environ["KISCH_BASE_URL"].rstrip("/") + "/v1",
)
response = client.responses.create(
    model=os.environ["KISCH_MODEL"],
    input="Überarbeite diesen Satz: Die Sitzung fand am Dienstag statt.",
)
print(response.output_text)

Each request is independent. Pass the required context with the request. Stored response retrieval, background jobs, file inputs, audio, image generation and tool execution are outside this initial contract.

For incremental text output, use Chat Completions streaming. See the API reference for request fields and errors.