v2026.5.3
All Bundles
Bundle Google Gemini API client. Supports text generation, multimodal inputs (image, audio, video), chat sessions, function calling, and caching. Set GOOGLE_API_KEY before use. Compile with -lib gemini.

EndPoint

Gemini endpoint

Operations

GetApiKey # function

Reads API from 'api_key.dat'

function : GetApiKey() ~ String

Return

TypeDescription
StringAPI key

GetLastError # function

Get the last error

function : GetLastError() ~ String

Return

TypeDescription
Stringlast error

SetApiKey # function

Set the API file key path

function : SetApiKey(api_key:String) ~ Nil

Parameters

NameTypeDescription
api_keyStringAPI file key path