Skip to main content
ASCN Router speaks the OpenAI protocol, so existing code usually moves over by changing three things: the base URL, the key header and the model name.

From OpenAI

From other OpenAI-compatible gateways

If you already use another gateway with vendor/model names, change base_url and the key as shown above. Check model names against the GET /v1/models catalog — they may differ.

Checklist

  • Base URL: https://b2b.api.ascn.ai/api/ai-gateway/v1.
  • Key: in the X-API-KEY header.
  • Models: prefixed with the vendor, for example anthropic/claude-haiku-4.5. Case and separators do not matter.
  • Responses API: responses are not stored, so previous_response_id does not work — send the history in input.
  • Images, video, speech: use media jobs instead of OpenAI’s synchronous endpoints.
  • Reasoning models: set max_tokens to 2000 or more.