Docs/API Reference/Request Parameters

Request Parameters

Complete reference for all request parameters available in the Responses API.

#Required Parameters

ParameterTypeDescription
modelstringRequired. The model ID to use (e.g., "alphagent-smart").
inputstring | arrayRequired. The input prompt or conversation messages.

#Optional Parameters

ParameterTypeDescription
streambooleanEnable SSE streaming. Default: false
instructionsstringCustom system prompt for the model.
max_output_tokensintegerMaximum tokens in the response.
temperaturenumberSampling temperature (0-2). Lower = more focused.

#Input Formats

The input parameter accepts two formats:

String Input

Simple string for single-turn queries.

Python
response = client.responses.create(
    model="alphagent-smart",
    input="What is AAPL trading at?"
)

Message Array Input

Array of messages for multi-turn conversations.

Python
response = client.responses.create(
    model="alphagent-smart",
    input=[
        {"role": "user", "content": "What is AAPL trading at?"},
        {"role": "assistant", "content": "AAPL is trading at $187.12."},
        {"role": "user", "content": "How does that compare to last week?"}
    ]
)

#Custom Instructions

Use the instructions parameter to provide custom system prompts.

Python
response = client.responses.create(
    model="alphagent-smart",
    input="Analyze TSLA",
    instructions="You are a conservative value investor. Focus on fundamentals and avoid speculation."
)