Update three settings
A provider key or a key from another gateway does not authenticate to impossibl. To keep paying your own provider account, authenticate with an impossibl key and add the provider credential separately through BYOK.
From OpenAI or another OpenAI-compatible gateway
Show migration steps
Show migration steps
Keep your Chat Completions call and update the client:If you use Responses, keep full conversation history in
input. Replace stored-response lookup or previous_response_id chaining with application-managed history.From the Vercel AI SDK
Show migration steps
Show migration steps
Configure an explicit provider that calls impossibl. A bare string model passed to the AI SDK uses its default gateway configuration, so changing only the model ID does not move your traffic.Install
ai and @ai-sdk/openai if your project does not already use them. The explicit .chat() selects Chat Completions. See integrations for Responses configuration.From OpenRouter
Show migration steps
Show migration steps
Use the same OpenAI-compatible client configuration above. Copy model IDs from impossibl’s catalog even when the creator prefixes look familiar: model slugs, aliases, and availability can differ.Remove OpenRouter-specific routing fields and model suffixes from your request. Provider ordering, fallback model lists, plugins, and attribution headers do not configure impossibl routing. The gateway manages failover between serving routes for the model you request; see routing.
From Anthropic
Show migration steps
Show migration steps
Set the Anthropic SDK base URL to
https://api.impossibl.com without /v1, supply your impossibl key, and keep max_tokens in your Messages request. Full examples are in the Anthropic SDK guide.From an older impossibl integration
Show migration steps
Show migration steps
Continue to use
https://api.impossibl.com/v1. The current docs do not introduce a /v2 API prefix. Your workspace key chooses the workspace for a request; switching workspaces in the console does not change what an existing key belongs to.Review the live model catalog for retirements and replacements. Check billing, BYOK balance rules, and API compatibility instead of assuming older behavior still applies.Verify before switching traffic
- Run a short text request and check its model, provider, and cost in logs.
- Exercise the features you use: streaming completion, tool-result turns, multimodal input, and reasoning. Keep complete assistant tool-call objects when returning results.
- Check error handling for invalid credentials, insufficient balance, and provider failures. Do not retry configuration errors indefinitely.
- Compare output quality, latency, token usage, and cost with representative application inputs.
- Deploy with a server-side key and bounded retries. Keep your prior client configuration available while you observe the first production requests.

