ChatOpenAI class with a changed base_url — no separate integration needed.
Prerequisites
RuAPI account and API key
Console → Tokens → create an
sk-... key. The balance tops up in USDT — see Top-up.Python
llm drops into any chain, agent or LCEL construct like a regular model.
JavaScript / TypeScript
Embeddings (RAG)
Troubleshooting
401 / Unauthorized
401 / Unauthorized
404 / model not found
404 / model not found
The name in
model must match RuAPI verbatim — see the pricing page.Do I need ChatAnthropic for Claude?
Do I need ChatAnthropic for Claude?
No. Claude is called through
ChatOpenAI on the same base_url — just put the Claude model ID in the model field.