latestOpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

responses

Responses Api

Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses

Supports background mode with polling_via_cache for partial response retrieval. When background=true and polling_via_cache is enabled, returns a polling_id immediately and streams the response in the background, updating Redis cache.

# Normal request
curl -X POST http://localhost:4000/v1/responses     -H "Content-Type: application/json"     -H "Authorization: Bearer sk-1234"     -d '{
    "model": "gpt-4o",
    "input": "Tell me about AI"
}'

# Background request with polling
curl -X POST http://localhost:4000/v1/responses     -H "Content-Type: application/json"     -H "Authorization: Bearer sk-1234"     -d '{
    "model": "gpt-4o",
    "input": "Tell me about AI",
    "background": true
}'
post/openai/v1/responses

Response

Successful Response

{"stackTrail":"paths:/openai/v1/responses:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}