Gemini family documentation

Gemini API & Gemini API pricing on AngelAPI

Looking for Gemini API access with clear prepaid Gemini API pricing in ringgit or USD? AngelAPI routes Google Gemini models listed in the live gateway catalogue behind one OpenAI-compatible /v1/chat/completions endpoint—so developers in Malaysia and worldwide can call active Gemini routes alongside DeepSeek, Qwen, and GLM from a single RM1.12+ prepaid balance without juggling separate billing accounts.

Gemini API key

Getting a prepaid key for Gemini calls on AngelAPI keeps credentials centralized in one dashboard instead of maintaining separate vendor billing consoles:

  1. Create a free AngelAPI account with email, Google sign-in, or Telegram.
  2. Select a prepaid token pack on Pricing starting from RM1.12 (10M tokens) via CHIP DuitNow QR / FPX online banking in Malaysia or crypto checkout in USD.
  3. Copy your API key from your signed-in Account workspace and store it in your backend environment variable ANGELAPI_KEY. Never commit keys to browser code or Git repositories.

Gemini API pricing across live routes

AngelAPI uses one flat pack price—RM0.112 per million prepaid units across every tier from 10M to 1B—multiplied by each model's published input and output multiplier. Note honestly that output multipliers on listed Gemini routes are higher than budget coding models such as DeepSeek Flash or GLM Flash, so setting strict max_tokens values prevents overly verbose completions from draining small test packs:

Model IDStatusContext / Max outInput mult (MYR / 1M)Output mult (MYR / 1M)Est. coding (MYR / 1M)
gemini-3-flash-previewoffline— / —×0.5268 (RM0.0590)×3.1609 (RM0.354)—
gemini-3.1-flash-liteoffline— / —×3.8194 (RM0.428)×22.9162 (RM2.567)—
gemini-3.5-flash-liteonline— / —×3.793 (RM0.425)×31.6088 (RM3.540)—
gemini-3.8-flashoffline1M / 64K×2.8764 (RM0.322)×14.3819 (RM1.611)—
gemini-4-hydrogenoffline1M / 64K×1.8697 (RM0.209)×9.3483 (RM1.047)—
PackPrepaid tokensMYR priceRate per 1M units
10M10MRM1.12RM0.112
50M50MRM5.59RM0.112
100M100MRM11.18RM0.112
200M200MRM22.35RM0.112
300M300MRM33.53RM0.112
500M500MRM55.88RM0.112
1B1BRM111.77RM0.112

Is the Gemini API free?

No—on AngelAPI, inference requests against Gemini routes are prepaid rather than part of an unlimited free plan. Right now, zero models carry a temporary promotional free_until tag, and welcome-token giveaways in Telegram are disabled. Free gateway requests are limited strictly to metadata checks such as GET /v1/models so SDKs and CI pipelines can list available IDs at zero token cost before sending paid prompts. Any optional daily reward or promo window only appears if explicitly enabled inside your account.

Gemini API URL / base URL and models list

Point any standard OpenAI client library to https://api.angelapi.cc/v1 and authenticate using Authorization: Bearer YOUR_ANGELAPI_KEY. Be sure to inspect each variant's real state before pinning an ID in automation: while gemini-3.5-flash-lite (×3.793 in / ×31.6088 out) is currently online, the other Gemini IDs published in /api/pricing (preview, lite, 3.8 Flash, and Hydrogen 1M-context variants) are intermittently offline on upstream pools. If your product also needs Google Veo video generation, inspect our dedicated Veo 3 API page for veo-3.1-fast-t2v.

Gemini API status

Live health matters especially for Gemini routes because upstream supply shifts during the day. Before deploying production bots against preview or flagship Gemini IDs, inspect AngelAPI live model status for real 10-minute probe checks and 24-hour uptime percentages, and configure an automated fallback to an online chat model like DeepSeek V4.1 Flash or Qwen 3.8.

Streaming parameters, max_tokens control & error recovery

To keep Gemini response costs predictable in customer-facing applications, enable Server-Sent Events streaming (stream: true) and enforce firm max_tokens bounds per endpoint. When upstream pools mark preview variants offline, handle HTTP 503 or 404 cleanly by switching to gemini-3.5-flash-lite or routing equivalent traffic to Mistral Large 4. Always keep ANGELAPI_KEY on your backend proxy server so client browsers never expose prepaid token credentials. Check Account Usage after initial test batches to verify real token deduction before scaling daily job volume.

Code examples: curl, Python, and Node.js

The starter examples below target gemini-3.5-flash-lite (currently marked online in the live gateway feed) over AngelAPI's OpenAI-compatible path:

curl
curl https://api.angelapi.cc/v1/chat/completions \
  -H "Authorization: Bearer $ANGELAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.5-flash-lite",
    "messages": [{"role": "user", "content": "List three indexing checks before adding a composite PostgreSQL index."}]
  }'
Python (OpenAI SDK)
from openai import OpenAI
import os

client = OpenAI(
    base_url="https://api.angelapi.cc/v1",
    api_key=os.environ["ANGELAPI_KEY"],
)

response = client.chat.completions.create(
    model="gemini-3.5-flash-lite",
    messages=[{"role": "user", "content": "List three indexing checks before adding a composite PostgreSQL index."}],
)
print(response.choices[0].message.content)
Node.js (fetch)
const res = await fetch("https://api.angelapi.cc/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.ANGELAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "gemini-3.5-flash-lite",
    messages: [{ role: "user", content: "List three indexing checks before adding a composite PostgreSQL index." }],
  }),
})
const data = await res.json()
console.log(data.choices[0].message.content)

Related model APIs and developer guides

Frequently asked questions

Which Gemini models are currently online on AngelAPI?

At the current snapshot, gemini-3.5-flash-lite is online (100% 24h uptime), while 4 preview/hydrogen variants in /api/pricing are currently offline. Check /status before dispatching traffic.

Is AngelAPI an official Google Gemini API partner?

No. AngelAPI is an independent third-party prepaid API gateway connecting to multiple providers under one key and balance; it is not an official Google service.

How is Gemini API pricing billed on AngelAPI?

Prepaid packs charge a flat RM0.112 per million base units. On gemini-3.5-flash-lite, multipliers are ×3.793 input and ×31.6088 output.

Do I use the Google GenAI SDK or the OpenAI SDK?

On AngelAPI, Gemini chat routes accept standard OpenAI-compatible POST /v1/chat/completions requests using your AngelAPI Bearer key.