Skip to content

Gemini Setup

Get API Key

  1. Visit Google AI Studio
  2. Log in with your Google account
  3. Click "Get API Key"
  4. Create a new API Key

Add Channel in CCX

Gemini Endpoint (Native Protocol)

FieldValue
NameGemini
Service Typegemini
Base URLhttps://generativelanguage.googleapis.com
API KeysYour Google AI API Key

Steps

  1. Go to CCX admin console, select Gemini endpoint
  2. Click "Add Channel"
  3. Set service type to Gemini
  4. Set Base URL to https://generativelanguage.googleapis.com
  5. Paste your API Key
  6. Save

Chat Endpoint (OpenAI Compatible)

Gemini can also be accessed via OpenAI-compatible interface:

FieldValue
NameGemini (OpenAI)
Service Typeopenai
Base URLhttps://generativelanguage.googleapis.com/v1beta/openai
API KeysYour Google AI API Key

Available Models

ModelDescription
gemini-2.5-proLatest flagship with thinking
gemini-2.5-flashFast version with thinking
gemini-2.0-flashHigh-speed multimodal
gemini-1.5-proUltra-long context (2M tokens)

Advanced Configuration

thought_signature Handling

Some third-party Gemini proxies require thought_signature in requests:

  • Inject dummy thought_signature: Enable injectDummyThoughtSignature
  • Strip thought_signature: Enable stripThoughtSignature (for older APIs)

Notes

  • Gemini native endpoint uses Google's generateContent protocol
  • For OpenAI Chat protocol access, use Chat endpoint + openai service type + OpenAI-compatible Base URL
  • Servers in mainland China need a proxy to access Google APIs
  • Vision capabilities are automatically supported via native protocol