Skip to content
Integrations & Resources

SDK & Responses Migration ​

1. Migrating Provider SDKs to Vanix AI ​

Migrating an existing production app requires two configuration changes—zero schema rewrites:

Existing ProviderOld Base URLNew Vanix AI Base URL
OpenAIhttps://api.openai.com/v1https://api.vanix.io/v1
Anthropichttps://api.anthropic.comhttps://api.vanix.io
Google Geminihttps://generativelanguage.googleapis.comhttps://api.vanix.io

Replace your provider API key with your Vanix AI sk-... key and verify model IDs against GET /v1/models.

2. Migrating Chat Completions → OpenAI Responses ​

When upgrading OpenAI workloads from /v1/chat/completions to /v1/responses:

Chat Completions (/v1/chat/completions)Responses (/v1/responses)
messages: [{"role": "system", ...}, {"role": "user", ...}]instructions: "..." + input: "..." (or structured item array)
max_completion_tokensmax_output_tokens
reasoning_effort: "medium"reasoning: {"effort": "medium"}
resp.choices[0].message.contentresp.output_text
chunk.choices[0].delta.contentSSE event response.output_text.delta

Gradual Rollout

You do not need a big-bang migration. Keep existing services on /v1/chat/completions while adopting /v1/responses for new agentic or GPT-5 reasoning pipelines.

Vanix AI Unified Model Gateway · https://api.vanix.io