Generate a model response
Generate a model response
POST/api/v1/responses
Creates a Responses API response through the inference gateway.
Body ParametersJSON
model: string
Hosted model identifier, or stack:<slug> to call one of your inference stacks. A stack supplies its model and authorizes explicitly requested MCP/file_search tools against its configured connections and datasets.
max_tool_calls: optional number
Maximum number of first-party and MCP tool calls to run for this response. Once reached, the model is asked to answer without calling more tools.
minimum1
maximum64
store: optional boolean
Whether Adaption should retain this response for later use with previous_response_id. Adaption defaults to false, unlike OpenAI, so retention requires explicitly setting store to true.
previous_response_id: optional string
A previously stored response whose input and output should precede this turn.
Generate a model response
curl https://api.prod.adaptionlabs.ai/api/v1/responses \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $ADAPTION_API_KEY" \
-d '{
"model": "qwen3.5-397b",
"instructions": "Answer clearly and concisely.",
"max_output_tokens": 1024,
"temperature": 0.7,
"stream": true,
"max_tool_calls": 8,
"tool_choice": "auto"
}'{
"foo": "bar"
}Returns Examples
{
"foo": "bar"
}