OpenAI Responses API (/v1/responses) and Embeddings Across Multi-Provider BYOK Keys (2026)
Newer OpenAI SDK workflows target POST /v1/responses alongside /v1/embeddings rather than /v1/chat/completions. If you swap to a router that only proxies chat completions, those calls break; if a single provider key gets revoked or hits 429, your users see a 502.
SentioGate serves POST /v1/responses and POST /v1/embeddings on the same https://api.sentiogate.dev/v1 base URL as /v1/chat/completions, backed by your own Vault keys at 0% token markup.
As of 2026-10-31 (rechecked 2026-11-21).
Drop-in Python setup for /v1/responses
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.sentiogate.dev/v1",
api_key=os.environ["SENTIOGATE_API_KEY"],
default_headers={"X-Router-Metadata": "enabled"},
)
response = client.responses.create(
model="auto",
input="Summarize why circuit breakers prevent cascading 429 failures.",
)
print(response.output_text)
How BYOK key and provider errors fail over
| Upstream error | What happens on a single direct key | What SentioGate does with Vault keys |
|---|---|---|
401 / revoked 403 | Request fails immediately | Places that key into cooldown and retries on your next Vault key |
429 rate limit | Request fails or stalls on backoff | Honors Retry-After, tries your next key, or switches to another enabled model on auto |
5xx / timeout | Request fails | Automatically falls back to the next healthy candidate in your enabled pool |
You can store up to 5 keys per provider in priority order inside the SentioGate Vault, and optionally pass a models array (up to 32 candidates) to restrict auto to a specific model whitelist.
Embeddings and Langfuse trace parity
POST /v1/embeddings routes embedding requests through your configured Vault keys, and streaming /v1/responses calls preserve usage accounting and optional Langfuse trace export. See Use SentioGate with Langfuse for trace setup.
Stateful Assistants vs stateless routing
- Hosted Assistants state & vector stores: SentioGate is a stateless routing gateway over your provider keys. If your app depends on OpenAI's server-side file vector stores or stateful thread storage, call OpenAI directly or manage state in your own database.
- Need 600+ models without opening accounts: See OpenRouter alternative for when a prepaid model marketplace fits better.
FAQ
Does /v1/responses support streaming?
Yes. Streaming is supported on POST /v1/responses as well as POST /v1/chat/completions, returning normalized SSE events and usage metadata.
What happens if one of my Vault keys is revoked or expired?
SentioGate detects 401 and revoked 403 errors, places that key into a transient cooldown, and fails over to your next key or enabled provider automatically.
Can I send a list of candidate models?
Yes. You can pass an OpenRouter-compatible models array (up to 32 candidates) to restrict routing to a specific whitelist.
Does SentioGate charge a markup on /v1/responses or /v1/embeddings?
No. With your own keys in the Vault, each provider bills you directly at 0% token markup from SentioGate.