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!"}]}
choices[0].message.content.
