Engineering
Migrating to Setu in 5 minutes
Developer Relations · 5 June 2026 · 3 min read
If you already use the OpenAI SDK, moving to Setu takes two changes: your base URL and your API key.
Set the base URL to https://platform.setu.dwet.ai/v1 and use a Setu API key. Then call chat completions exactly as you would today — model names map to DWET models like sutra-v2-pro.
Streaming, system prompts and multi-turn conversations all work the same way. Your existing retry and error-handling logic carries over too.
Check the docs for ready-to-paste snippets in Python, Node and cURL.