Google Cloud GenAI Models
Google Cloud GenAI models can be used for image and video generation:
- Gemini 2.5 Flash
- Gemini 3.0 Pro
- Veo 3.1
Authentication
To use Google GenAI models, you need to set up authentication using either an API key or service account credentials, depending on whether you're using Vertex AI or Google Developer access.
Configuration Options
You can configure authentication via:
- SD.Next: Go to Settings → Model Options → Google GenAI
- Environment variables: Use Google-documented environment variables
Vertex AI (Google Cloud)
Use Vertex AI endpoints for GenAI models. When Vertex AI is enabled, provide service account credentials.
Details: https://docs.cloud.google.com/docs/authentication/set-up-adc-local-dev-environment
Google Developer API
If Vertex AI is disabled, SD.Next uses Google Developer endpoints and requires an API key.
Details: https://ai.google.dev/gemini-api/docs/api-key
Required Settings
- Google Cloud Project ID: Required for Vertex AI access (details: https://cloud.google.com/vertex-ai/docs/start/cloud-environment)
- Google Cloud Location ID: Required for Vertex AI access (details: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/locations)