Skip to main content
Cynative supports two distinct Google AI providers:
  • vertex — Google Cloud’s Vertex AI, authenticated via Application Default Credentials (ADC) or a service-account JSON. Requires a GCP project id and region. Best for workloads that run inside GCP or that need IAM-based access control.
  • gemini — Google AI Studio (Gemini API), authenticated with a simple API key. No GCP project needed. Best for quick experimentation or environments outside GCP.
Both providers can run the same Gemini models; the difference is the API surface and auth mechanism you use.

Vertex AI

Quick start

No ~/.cynative/config.yaml file is required, but Vertex always needs project_id and region — there is no single-key fallback for Vertex. A bare CYNATIVE_LLM_API_KEY alone is not sufficient and fails at load with a clear error.

YAML configuration

Flat form (equivalent to the env-var quick start):
Full keys[] form (for IAM-role auth, explicit service-account content, etc.):

Authentication

Vertex authenticates via the vertex config block, not via a key value. Two credential modes:
  • Application Default Credentials (ADC). Leave auth_credentials empty (or unset). The Google SDK resolves credentials automatically — from GOOGLE_APPLICATION_CREDENTIALS (path to a service-account JSON file), Workload Identity on GKE, or the gcloud CLI credentials. This is the recommended path for production and CI.
  • Inline service-account JSON. Set auth_credentials to the content of the service-account JSON (not a file path). Useful when you need to embed credentials without filesystem access.
GOOGLE_APPLICATION_CREDENTIALS is read by the Google SDK at request time — Cynative does not treat it as a generic API-key fallback.

Environment variable reference


Gemini (AI Studio)

Quick start

No ~/.cynative/config.yaml file is required.

YAML configuration

Authentication

Get a Gemini API key from aistudio.google.com/app/apikey. No GCP project or IAM configuration is required. Cynative resolves the key from llm.api_key, CYNATIVE_LLM_API_KEY, or GEMINI_API_KEY, in that order.
This is the AI Studio–flavored Gemini API, separate from Vertex AI. Use the vertex provider above for Google Cloud / IAM-authenticated access to Gemini models.

Environment variable reference


Prompt caching

Claude models served through Vertex AI participate in Cynative’s automatic prompt-caching (cache breakpoints on tool schemas, system prompt, and recent turns). Native Gemini models on both vertex and gemini apply server-side caching automatically — Cynative’s cache markers are stripped or ignored by Bifrost’s Gemini converter. See the prompt caching section in the overview for full details.