DeepFellow DOCS

Secure Google AI Inference with DeepFellow

Using Google AI models through DeepFellow is safer than using them directly thanks to our anonymization layer. With DeepFellow it is easy to integrate Google AI large language models with your existing applications. Google created Gemini API to be partially compatible with OpenAI API. Further details on compatibility can be found in Google AI Documentation.

You need to have an Gemini API Key and "google" service installed - read how to install services in Infra Web Panel guide.

curl -X 'POST' \
  'https://deepfellow-server-host/v1/chat/completions' \
  -H 'Authorization: Bearer DEEPFELLOW-PROJECT-API-KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "messages": [
    {
      "content": "You are a helpful assistant.",
      "role": "system"
    },
    {
      "content": "Explain how AI works.",
      "role": "user"
    }
  ],
  "model": "gemini-2.5-flash"
}'
from openai import OpenAI

client = OpenAI(
    api_key="DEEPFELLOW-PROJECT-API-KEY",
    base_url="https://deepfellow-server-host/v1",
)

response = client.chat.completions.create(
    model="gemini-2.5-flash",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {
            "role": "user",
            "content": "Explain how AI works."
        }
    ]
)

print(response.choices[0].message.content)
import OpenAI from 'openai';

const openai = new OpenAI({
    apiKey: 'DEEPFELLOW-PROJECT-API-KEY',
    baseURL: 'https://deepfellow-server-host/v1'
});

const response = await openai.chat.completions.create({
    model: 'gemini-2.0-flash',
    messages: [
        { role: 'system', content: 'You are a helpful assistant.' },
        {
            role: 'user',
            content: 'Explain how AI works.'
        }
    ]
});

console.log(response.choices[0].message);

We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.