Start with Google AI Studio’s OpenAI-compatible API#
New in 0.9.7If you have a Google AI Studio API key, create a file called enkaidu.yaml and copy in the following configuration, then run enkaidu from the commandline in the same folder as the config file.
session:
model: gemini3_5f
auto_load:
toolsets:
- DateAndTime
llms:
public_google:
# Google AI Studio has OpenAI compatibility mode (https://ai.google.dev/gemini-api/docs/openai)
provider: google_ai_studio
env:
# If you have GEMINI_API_KEY defined in your environment ...
GOOGLE_AI_API_KEY: $GEMINI_API_KEY
models:
- name: gemini3_5f
model: gemini-3.5-flashEnvironment variables#
The following environment variables are supported, of which one is required.
| Env. variable | Need | Description |
|---|---|---|
GOOGLE_AI_API_KEY |
Required | The API key for your deployment |
GOOGLE_AI_ENDPOINT |
Optional | Defaults to https://generativelanguage.googleapis.com |
GOOGLE_AI_OPENAI_CHAT_PATH |
Optional | Defaults to /v1beta/openai/chat/completions |