POST /v1/responses
The Responses API takes an input instead of a messages array. Use it if your code already targets OpenAI’s Responses API.
Example
from openai import OpenAI
import os
client = OpenAI(base_url="https://api.zalthar.com/v1", api_key=os.environ["ZALTHAR_API_KEY"])
resp = client.responses.create(
model="acme/support-triage",
instructions="Answer in one sentence.",
input="My order arrived damaged.",
)
print(resp.output_text)
Supported fields
model, input, instructions, max_output_tokens, text, truncation, previous_response_id, include, prompt_cache_key, stream, and the shared sampling fields. Response IDs start with resp_.
