{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "respanai-respan-gateway--call-any-model-from-your-existing-sdk",
 "repo": "respanai/respan-gateway",
 "repo_url": "https://github.com/respanai/respan-gateway",
 "repo_slug": "respanai-respan-gateway",
 "title": "Call any model from the SDK you already use",
 "page_title": "How to call any model from the SDK you already use with Respan Gateway",
 "summary": "Point an existing OpenAI, Anthropic or Gemini SDK at the gateway to reach other vendors' models.",
 "who": "A developer whose app is built on one vendor's SDK and who wants to try or switch to a model from another vendor without rewriting the calls.",
 "problem": "Each vendor has its own API format, so switching models usually means changing client code.",
 "outcome": "The existing SDK keeps working unchanged and reaches a model from another vendor through the gateway's local endpoint.",
 "steps": [
  "Install the gateway with `pip install respan-gateway`.",
  "Set a vendor key in your shell with `export OPENAI_API_KEY=sk-...`.",
  "Start the gateway by running `respan-gateway`.",
  "In your app, create the client with base_url set to http://localhost:8080 and call a model such as gpt-6-luna, as in the README example.",
  "Open http://localhost:8080/ui/ to confirm the request appears in the live log."
 ],
 "agent_prompt": "In the respan-gateway repo, start the gateway with the OPENAI_API_KEY from the environment, then send one chat request through http://localhost:8080 using the Anthropic SDK with model <target-model>. Return the reply text, and verify that the request appears in the live log at localhost:8080/ui/.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "The gateway answers only on loopback unless client keys are configured, and it refuses to start on a public address without them.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "Python with pip, or a Rust toolchain with cargo, or Docker",
  "An API key for at least one model vendor, such as OPENAI_API_KEY",
  "An existing app or SDK that accepts a custom base URL",
  "Optional: a Respan API key for tracing and a tool vendor key for MCP tools"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/respanai-respan-gateway/call-any-model-from-your-existing-sdk/",
 "md": "https://dedupedai.com/use-cases/respanai-respan-gateway/call-any-model-from-your-existing-sdk/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/respanai-respan-gateway--call-any-model-from-your-existing-sdk.json",
 "api_version": "v1"
}
