Veilفارسی

Google GenAI SDK with Veil API

Google GenAI SDK talks to Veil API in the Gemini format. Change two settings and every Veil model is available.

Setup

  1. Create a Veil API key. Open the console
  2. Install Google GenAI SDK as usual.
  3. Point its base URL at Veil and use your Veil key, as below.
from google import genai

client = genai.Client(api_key=VEIL_API_KEY, http_options={"base_url": "https://api.veil.ir"})
client.models.generate_content(model="google/gemini-3.5-flash-lite", contents="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