Skip to main content
  1. Sign up — Create an account at platform.respan.ai
  2. Create an API key — Generate one on the API keys page
  3. Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.
{
  "mcpServers": {
    "respan-docs": {
      "url": "https://docs.respan.ai/mcp"
    }
  }
}

Perplexity models compatibility

Add Perplexity API keys

There are 2 ways to add your Perplexity credentials to your requests:

Via UI

1

Go to the Providers page

2

Add your Perplexity credentials.

Dashboard Page

Add it in code

  • Add customer_credentials parameter in your request body to use your own Perplexity credits.
{
  // Rest of the request body
  "customer_credentials": {
    "perplexity": {
      "api_key": "YOUR_PERPLEXITY_API_KEY",
    }
  }
}

Full request example

from openai import OpenAI

client = OpenAI(
    base_url="https://api.respan.ai/api/",
    api_key="YOUR_RESPAN_API_KEY",
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role":"user", "content":"Tell me a long story"}],
    extra_body={"customer_credentials": {
                  "perplexity": {
                      "api_key": "YOUR_PERPLEXITY_API_KEY",
                  }
                }
              }
)