Google AI (Gemini)
apiVersion: v1kind: Secretmetadata: name: googleai-credentialstype: OpaquestringData: GEMINI_API_KEY: ...---apiVersion: genkit.dev/v1alpha1kind: PluginConfigmetadata: name: googleaispec: type: googleai credentialsRef: name: googleai-credentials # credentialKeys defaults to GEMINI_API_KEY then GOOGLE_API_KEY---apiVersion: genkit.dev/v1alpha1kind: Modelmetadata: name: gemini-2-flashspec: provider: googleai model: gemini-2.0-flash pluginConfigRef: name: googleaiCredentials
Section titled “Credentials”| Default key | Notes |
|---|---|
GEMINI_API_KEY | Preferred |
GOOGLE_API_KEY | Fallback if GEMINI_API_KEY is not present |
Reference
Section titled “Reference”genkit-goplugin:go/plugins/googlegenai- Model catalog:
ai.google.dev/gemini-api/docs/models