Anthropic SDK with Veil API
Anthropic SDK talks to Veil API in the Anthropic format. Change two settings and every Veil model is available.
Setup
- Create a Veil API key. Open the console
- Install Anthropic SDK as usual.
- Point its base URL at Veil and use your Veil key, as below.
import anthropic
client = anthropic.Anthropic(base_url="https://api.veil.ir", api_key=VEIL_API_KEY)
client.messages.create(model="anthropic/claude-haiku-5-5", max_tokens=1024, messages=[{"role": "user", "content": "Hello"}])Which model
Any model id from the models page works. Veil routes it and bills it at its list price.