DSPy (gateway)
DSPy (gateway)
Route DSPy’s underlying LLM calls through the Respan gateway to use 250+ models from different providers. Only your RESPAN_API_KEY is needed — no separate provider keys required.
Setup
Switch models
Use another OpenAI model ID through the same gateway-backed LiteLLM route.
DSPy’s LiteLLM adapter requires an OpenAI transport prefix for this OpenAI-compatible gateway path. Do not represent Claude or Gemini as openai/... models in this doc; use the Respan API or OpenAI SDK gateway pages for provider-neutral Claude and Gemini examples.
See the full model list.