For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
    • Overview
  • Tracing
  • Gateway
      • OpenAI Agents
      • Claude Agent SDK
      • Vercel AI SDK
      • Pydantic AI
      • CrewAI
      • Haystack
      • LangChain
      • LangGraph
      • Langflow
      • LlamaIndex
      • AutoGen
      • DSPy
      • Google ADK
      • Smolagents
      • Strands Agents
      • AgentSpec
      • Guardrails
      • Agno
      • MCP
      • BeeAI
      • Pipecat
      • Superagent
  • Others
  • Migrating
    • Braintrust
    • Portkey
    • Langfuse
LogoLogo
DiscordPlatform
On this page
  • Setup
  • Switch models
GatewayAgent Frameworks

Pipecat (gateway)

Was this page helpful?
Previous

Superagent (gateway)

Next
Built with

Route Pipecat’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

1

Install packages

$pip install respan-ai respan-instrumentation-pipecat
2

Set environment variables

$export RESPAN_API_KEY="YOUR_RESPAN_API_KEY"
$export RESPAN_BASE_URL="https://api.respan.ai/api"
$export RESPAN_MODEL="gpt-4.1-nano"

No OPENAI_API_KEY needed — the Respan gateway handles provider authentication.

3

Point Pipecat to the Respan gateway

1import os
2
3from pipecat.services.openai.llm import OpenAILLMService
4
5llm = OpenAILLMService(
6 api_key=os.environ["RESPAN_API_KEY"],
7 base_url=os.getenv("RESPAN_BASE_URL", "https://api.respan.ai/api"),
8 settings=OpenAILLMService.Settings(model=os.getenv("RESPAN_MODEL", "gpt-4.1-nano")),
9)

Then build and run your pipeline as usual.

Switch models

Change the model setting on OpenAILLMService to use 250+ models from different providers through the same gateway.

1OpenAILLMService(
2 api_key=os.environ["RESPAN_API_KEY"],
3 base_url="https://api.respan.ai/api",
4 settings=OpenAILLMService.Settings(model="claude-sonnet-4-5-20250929"),
5)
6
7OpenAILLMService(
8 api_key=os.environ["RESPAN_API_KEY"],
9 base_url="https://api.respan.ai/api",
10 settings=OpenAILLMService.Settings(model="gemini-2.5-flash"),
11)

See the full model list.