
const response = await fetch("https://api.respan.ai/v1/chat/completions", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": "Bearer rspn_live_xxxxxxxxx" }, body: JSON.stringify({ model: "openai/gpt-4o""anthropic/claude-3-5-sonnet" messages: [{ role: "user", content: "Summarize this customer support conversation." }] }) })
Use one API for every model
Point your existing code at Respan instead of each provider. Swap gpt-4 for claude-sonnet by changing one string. No rewrite.







