logo

Responses API

LLMoxy provides an OpenAI Responses-compatible route:

POST /v1/responses

If your application already uses the Responses API structure, or needs fields such as input, instructions, reasoning, and previous_response_id, you can use this endpoint.

Basic Request

curl https://llmoxy.com/v1/responses \
  -H "Authorization: Bearer <LLMOXY_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-4o-mini",
    "input": "Explain gateway routing in one sentence.",
    "instructions": "Be direct."
  }'

Common Fields

FieldDescription
modelRequired. Model ID.
inputString or message-style array.
instructionsSystem-level instruction text.
max_output_tokensOutput token limit.
temperature, top_pSampling control parameters.
streamEnable streaming when supported by upstream.
tools, tool_choiceTool calling parameters.
reasoning.effortSupported reasoning models can use low, medium, high.
reasoning.summaryRequest reasoning summary when supported by upstream.
previous_response_idContinue the previous response when supported by upstream.
truncationauto or disabled.

This endpoint is for compatibility. Actual behavior depends on the selected model.

Conversation Compaction

LLMoxy also provides:

POST /v1/responses/compact

Supported models can compress long conversation history through this endpoint. Authentication is the same as other /v1 requests.