Use Lytix to manage your evaluation and usage diretly with the Gemini SDK. Gain access to models across providers and manage your usage and billing.Documentation Index
Fetch the complete documentation index at: https://docs.lytix.co/llms.txt
Use this file to discover all available pages before exploring further.
Note Currently this is only supported for the Typescript Gemini SDK.
Quickstart
Prerequisite First create a lytix account here
Create a Lytix API Key
Start by creating and noting down a lytix api key. See instructions hereInstall the Gemini SDK
Typescript
Initialize the GoogleGenerativeAI client
Typescript
Initialize the Gemini Model with the Lytix Proxy
Typescript
🇪🇺 Note You will need to use
https://eu.api.lytix.co/proxy/v1/gemini if you are in the EU region.Invoke the Model 🚀
Typescript
Optional Fields
You can also track workflows, users and sessions to get a better understanding of your users and how they interact with your models.sessionId: A unique identifier for the session.userId: A unique identifier for the user.workflowName: A unique identifier for the workflow. If this workflow does not exist, it will be created and can be viewed here