Skip to content

Rocket-Hosting/gemini-ai-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

37 Commits
Β 
Β 

Repository files navigation

Gemini AI Cloud

A hosted OpenAI-compatible API for Google's Gemini abd Gemma AI models.

πŸš€ API Access

Free API Key

  • API Key: sk-LealjQcrXfljR48o38hklg
  • Base URL: http://server2.api.nikkcocompany.store:4000/v1/chat/completions
  • Currently has access to all models (same as paid keys)
  • ⚠️ Free API keys can be deleted, edited, or changed at any time, any day β€” with or without notice. They are not guaranteed to remain active or functional.
  • ⚠️ Model availability for free keys may change at any time, with or without notice
  • Updates will always be shared first in Discord, and later posted on GitHub
  • πŸ‘‰ For reliable, uninterrupted access, consider upgrading to a paid API key.

πŸ‘‰ Join the Discord server to stay updated!

Paid API Keys – Pricing

Contact us on Discord to purchase a paid API key.

Gemini Models

Model Input (per 1M) Output (per 1M)
gemini-3.1-pro-preview $0.20 $0.90
gemini-3.1-pro-preview:search $0.22 $0.99
gemini-3-flash-preview $0.025 $0.15
gemini-3-flash-preview:search $0.0275 $0.165
gemini-3.1-flash-lite $0.0125 $0.075
gemini-3.1-flash-lite-preview:search $0.01375 $0.0825
gemini-2.5-flash $0.015 $0.125
gemini-2.5-flash:search $0.0165 $0.1375
gemini-2.5-flash-lite $0.005 $0.02
gemini-2.5-flash-lite:search $0.0055 $0.022
gemini-2.5-pro $0.125 $0.75
gemini-2.5-pro:search $0.1375 $0.825
gemini-robotics-er-1.6-preview $0.1 $0.5
gemini-robotics-er-1.6-preview:search $0.11 $0.55

Gemma Models

Model Input (per 1M) Output (per 1M)
gemma-4-26b-a4b-it $0.0065 $0.02
gemma-4-26b-a4b-it:search $0.00715 $0.022
gemma-4-31b-it $0.007 $0.02
gemma-4-31b-it:search $0.0077 $0.022

Models with :search suffix enable automatic Google Search grounding.

Support :search: all Gemini models, gemma-4-26b-a4b-it, gemma-4-31b-it

Features

  • πŸ€– OpenAI Compatible – Use with any OpenAI SDK or tool
  • πŸ‘οΈ Vision Support – Process images with Gemini Vision models
  • πŸ› οΈ Tool Calling – Full function calling support
  • 🌐 Web Search – Models with :search suffix enable automatic Google Search grounding
  • πŸ”‘ Simple Auth – Just use your API key

Quick Start

Using the API

Set your API key and base URL in your OpenAI SDK:

Python:

from openai import OpenAI

client = OpenAI(
base_url="http://server2.api.nikkcocompany.store:4000/v1",
api_key="sk-LealjQcrXfljR48o38hklg"
)

response = client.chat.completions.create(
model="gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

JavaScript:

import OpenAI from 'openai';

const openai = new OpenAI({
baseURL: 'http://server2.api.nikkcocompany.store:4000/v1',
apiKey: 'sk-LealjQcrXfljR48o38hklg'
});

const completion = await openai.chat.completions.create({
model: 'gemini-3.1-pro-preview',
messages: [{ role: 'user', content: 'Hello!' }]
});
console.log(completion.choices[0].message.content);

cURL:

curl http://server2.api.nikkcocompany.store:4000/v1/chat/completions \
-H "Authorization: Bearer sk-LealjQcrXfljR48o38hklg" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "Hello!"}]
}'

API Usage

Endpoints

Endpoint Description
GET /v1/models List all available models
POST /v1/chat/completions Create a chat completion

Chat Completions

Example with vision:

{
"model": "gemini-3.1-pro-preview",
"messages": [
{
"role": "user",
"content": [
{"type": "text", "text": "What's in this image?"},
{
"type": "image_url",
"image_url": {
"url": "data:image/jpeg;base64,/9j/4AAQSkZJRg..."
}
}
]
}
]
}

Example with tool calling:

{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "What's the weather in London?"}],
"tools": [{
"type": "function",
"function": {
"name": "get_weather",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string"}
}
}
}
}]
}

Example with web search:

{
"model": "gemini-3.1-pro-preview:search",
"messages": [{"role": "user", "content": "Latest news about AI"}]
}

Response Format

Standard OpenAI chat completion response:

{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "AI response here"
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 20,
"total_tokens": 30
}
}

Support

For issues or questions, updates join our Discord server