SDK & Responses Migration
1. Migrating Provider SDKs to Vanix AI
Migrating an existing production app requires two configuration changes—zero schema rewrites:
| Existing Provider | Old Base URL | New Vanix AI Base URL |
|---|---|---|
| OpenAI | https://api.openai.com/v1 | https://api.vanix.io/v1 |
| Anthropic | https://api.anthropic.com | https://api.vanix.io |
| Google Gemini | https://generativelanguage.googleapis.com | https://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_tokens | max_output_tokens |
reasoning_effort: "medium" | reasoning: {"effort": "medium"} |
resp.choices[0].message.content | resp.output_text |
chunk.choices[0].delta.content | SSE 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.