Veilفارسی

LangChain with Veil API

LangChain talks to Veil API in the OpenAI format. Change two settings and every Veil model is available.

Setup

  1. Create a Veil API key. Open the console
  2. Install LangChain as usual.
  3. Point its base URL at Veil and use your Veil key, as below.
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="anthropic/claude-haiku-5-5", base_url="https://api.veil.ir/v1", api_key=VEIL_API_KEY)
llm.invoke("Hello")

Which model

Any model id from the models page works. Veil routes it and bills it at its list price.

Browse models and prices