Responses API
Use the Responses-compatible request and event shapes implemented by CHUA ONE.
POST /v1/responses
curl 'https://chuaone.si/v1/responses' \
-H "Authorization: Bearer $CHUA_API_KEY" \
-H 'Content-Type: application/json' \
-H 'Idempotency-Key: YOUR_UNIQUE_REQUEST_ID' \
-d '{"model":"YOUR_ALLOWED_MODEL","input":"Hello","max_output_tokens":256}'Supported input
model- Required.
input- String or message/function call items. Message roles: developer, system, user, assistant. Text and input_image parts are supported; file and audio parts are rejected.
instructions- Optional text or text parts.
max_output_tokens- Optional integer 1–131,072; default 1,024, then constrained by the model.
tools- Function and namespace tools are accepted. web_search is accepted only with external_web_access false and performs no external search.
store- Only false or omitted.
Response and streaming
Non-streaming responses use object=response with output items and usage. Streaming emits response.created, output events, then response.completed or response.incomplete. Unsupported request fields return an explicit error.