Skip to main content

Gemini Native API

Our Chat service also supports the native Google Gemini API format, allowing you to use the official Google GenAI libraries directly.
This API is designed for developers who prefer using Google’s native SDK instead of the OpenAI-compatible format.

🌟 Key Features

  • ✅ Use the official Google GenAI SDK directly
  • ✅ Full compatibility with Gemini API format
  • ✅ Support for streaming and non-streaming responses
  • ✅ Access to Gemini models through our service

📋 Available Endpoints

Gemini models

We support the latest Gemini models. This page lists Gemini only. The snapshot may be incomplete — call GET /chat/gemini/v1beta/models for every Gemini model that is enabled now. Other providers are on List Models.

💡 Quick Examples

Streaming:
Install:

📤 Response Format

Non-streaming Response

Streaming Response (SSE)


🔧 Configuration Options

The config / generationConfig object supports:

With System Instruction


📝 Multi-turn Conversation


For OpenAI-compatible API, see Chat Completions.