Responses API
Preserve Responses input, output, and stream event semantics.
Before calling
Select a model declaring the Responses operation, then configure tools, reasoning, and input modalities according to that operation’s capabilities.
Pass a non-empty array in input. Arrays can now exceed 2,048 items within the request body size limit. Each item is still validated.
Request example
Use the environment variables from Quickstart and a published model with Responses support. Parse the Responses output structure, not choices[0].message.
curl "$SHIELDON_GATEWAY_BASE_URL/responses" \
-H "Authorization: Bearer $SHIELDON_GATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "@your-integration/your-model",
"input": "Hello"
}'Streaming and state boundaries
stream: true returns typed Responses SSE events. Distinguish text deltas, tool events, completion, and errors instead of parsing everything as Chat Completions deltas.