Generate a model response
Generate a model response
responses.create(ResponseCreateParams**kwargs) -> ResponseCreateResponse
POST/api/v1/responses
Creates a Responses API response through the inference gateway.
Parameters
model: str
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[int]
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
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[str]
A previously stored response whose input and output should precede this turn.
Generate a model response
import os
from adaption import Adaption
client = Adaption(
api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted
)
response = client.responses.create(
model="qwen3.5-397b",
)
print(response){
"foo": "bar"
}Returns Examples
{
"foo": "bar"
}