LiteLLM from NordRouter
Installation:
bash
pip install litellmpython
import os
from litellm import completion
response = completion(
model="openai/anthropic/claude-sonnet-4.6",
api_base="https://nordrouter.com/v1",
api_key=os.environ["NORDROUTER_API_KEY"],
messages=[{"role": "user", "content": "Ответь: работает"}],
)
print(response.choices[0].message.content)The prefix openai/ selects the LiteLLM adapter. NordRouter should receive the remaining full ID of anthropic/claude-sonnet-4.6.
If you see an extra prefix in the logs, check the LiteLLM version and the Model ID transfer mode enabled.
Official information:LiteLLM Docs.