Skip to main content
ASCN Router works with any library that lets you set a custom OpenAI base URL and an extra X-API-KEY header.
Tools that only let you enter a URL and a key, without custom headers, send the key in Authorization. Before connecting such a tool, check that a request goes through.

LangChain

Vercel AI SDK

LlamaIndex

Plain HTTP request

In no-code tools (n8n, Make, Zapier), use a regular HTTP node:
  • Method: POST
  • URL: https://b2b.api.ascn.ai/api/ai-gateway/v1/chat/completions
  • Headers: X-API-KEY: <key>, Content-Type: application/json
  • Body: {"model": "openai/gpt-4o-mini", "messages": [{"role": "user", "content": "Hello!"}]}
The model’s answer is in choices[0].message.content.