xqdoo00o / ChatGPT-to-API

Scalable unofficial ChatGPT API for production.
650 stars 129 forks source link

Add Gemini Pro & Gemini Pro Vision support #23

Closed bi1101 closed 5 months ago

bi1101 commented 8 months ago
  1. Get Google AI Studio API Key: You'll need to obtain an API key from ai.google.dev.
  2. Put API Keys in the file gemini-api-key.json
  3. Make API call with gemini-pro or gemini-pro-vision as the model name. All format are like the OpenAI Docs

gemini-api-key.json format:

{
    "api_keys": ["key1", "key2", "key3", ...]
}