Skip to content

SDKs

The SDK your code already uses keeps working: give it the gateway's address and a Vidai key, and every call is governed, charged to the right team and recorded in Request logs. The gateway translates between request formats, so whichever SDK you use can reach OpenAI, Anthropic and Gemini models.

SDK Language Request format it speaks Base address
OpenAI SDK for Python Python OpenAI (/v1/chat/completions) https://<your-gateway>/v1
OpenAI SDK for TypeScript TypeScript, JavaScript OpenAI (/v1/chat/completions) https://<your-gateway>/v1
Anthropic SDK for Python Python Anthropic (/v1/messages) https://<your-gateway>
Anthropic SDK for TypeScript TypeScript, JavaScript Anthropic (/v1/messages) https://<your-gateway>
Google GenAI SDK for Python Python Gemini (/v1beta/models/…:generateContent) https://<your-gateway>, API version v1beta
Google GenAI SDK for TypeScript TypeScript, JavaScript Gemini (/v1beta/models/…:generateContent) https://<your-gateway>, API version v1beta
AI SDK by Vercel TypeScript Any of the three, by provider package Depends on the provider package

Picking one: keep the SDK you have. Starting fresh, choose the format of the provider whose features you'll lean on most (the others are reached through translation, with small limits each page lists); see Choosing an SDK.