Set up Respan
Set up Respan
- Sign up — Create an account at platform.respan.ai
- Create an API key — Generate one on the API keys page
- Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page
Use AI
Use AI
Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.
This integration is for the Respan gateway.
What is Anthropic SDK?
The Anthropic SDK lets you call Claude models directly using Anthropic’s native API. By pointingbase_url to Respan, all requests are routed through the gateway for logging and observability.
Quickstart
Supported parameters
Extra Headers
You can pass additional headers to be sent with your LLM requests using theextra_headers parameter. This is useful for sending custom headers required by specific models or configurations.
Extra Headers: The
extra_headers parameter allows you to pass additional headers that will be sent with your LLM request. This is particularly useful for accessing beta features like Claude Sonnet 4’s 1M token context window using the anthropic-beta: context-1m-2025-08-07 header.Respan parameters
To use Respan parameters, pass them in themetadata parameter under the respan_params key. These parameters take precedence over Anthropic parameters if they conflict.
Nested metadata
You can pass multiple Respan-specific parameters using a nested metadata structure. This allows you to includecustom_identifier, customer_identifier, and additional custom metadata all in one structure:
Nested Metadata Structure: The
metadata object should contain a respan_params key, which itself contains:custom_identifier: A custom identifier for tracking specific requestscustomer_identifier: An identifier for the customer making the requestmetadata: An additional nested object for custom metadata fields (e.g., agent type, workflow stage, etc.)