API documentation
Responses
OpenAI Responses-compatible route.
Use /v1/responses when your client is built around Responses-style input. The route is useful for modern OpenAI SDK flows and can expose built-in tools when the selected model supports them.
Request
bash
curl https://api.aigate.shop/v1/responses \ -H "Authorization: Bearer sk-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "openai/gpt-5.5", "input": "Write one sentence about API gateways.", "temperature": 0.5, "max_output_tokens": 180 }'Response
json
{ "id": "resp-gate-1779703910", "object": "response", "model": "openai/gpt-5.5", "output_text": "API gateways centralize authentication, routing, billing, and observability.", "usage": { "input_tokens": 18, "output_tokens": 13, "total_tokens": 31 }}Compact route
/v1/responses/compact exists for compatible compaction flows. Use it only when your client explicitly expects the compact variant.