When to use
- OpenAI Agents SDK — the SDK speaks Responses-shape by default
- Codex CLI — uses Responses internally; ByteSpike is a drop-in
via
--responses-base-url https://llm.bytespike.ai/v1 - Multi-turn agents with structured outputs —
response_format- reasoning blocks ship in the same envelope
- Cross-model parity — you want a single client shape that reaches the o-series, GPT-5, and the Claude family
/chat/completions. For Anthropic-native
tool_use + cache_control, use /messages.
Request
Headers
Body (selected fields)
The Responses API surface is large; ByteSpike forwards the full schema to whichever model you request. Common fields:Response
Response fields
Accounting headers
Same quota envelope as every other endpoint:Streaming
Pass"stream": true:
response.created, response.output_text.delta,
response.completed, etc.
Cross-model routing
The same Responses request shape works against every model in our catalog. Pick by themodel field:
Translated paths preserve
tool_use / tool_calls, structured
outputs (response_format), and reasoning tokens. The output shape
you receive is always Responses-API regardless of the model.
Errors
OpenAI envelope (matches the OpenAI Responses spec):Pricing
Per-1k tokens. Same rate as the model’s native endpoint — translation overhead is not billed. Live card: bytespike.ai/pricing.Related
/chat/completions— OpenAI Chat Completions shape/messages— Anthropic Messages shape- Configuring Codex with ByteSpike — concrete CLI setup