Skip to content

Integrations

If it speaks the OpenAI format, it works here.

Space Router follows the OpenAI request and response format. Any tool that lets you choose the endpoint can use it with two settings.

The two settings

Base URL
https://api.spacerouter.ai/v1
API key
Your Space Router key

Full examples in the quickstart

Where to put them

Common tools and where each takes a custom endpoint. Check the tool's own documentation for the exact option name in your version.

  • SDK

    OpenAI Python SDK

    Pass base_url and api_key when you create the client.

  • SDK

    OpenAI Node SDK

    Pass baseURL and apiKey when you create the client.

  • Framework

    LangChain

    Use the OpenAI chat model class with a custom base URL.

  • Framework

    LlamaIndex

    Use the OpenAI-compatible LLM class with a custom API base.

  • Framework

    Vercel AI SDK

    Create an OpenAI-compatible provider with a custom base URL.

  • Any language

    curl and plain HTTP

    Send a JSON POST with a bearer token.

Built something that works with Space Router?

Tell us and we will consider listing it here. Write to support@spacerouter.ai with a link and a line about what it does.