LemonData supports the native Google Gemini API format for Gemini models. This allows direct compatibility with Google AI SDKs.Documentation Index
Fetch the complete documentation index at: https://docs.lemondata.cc/llms.txt
Use this file to discover all available pages before exploring further.
Path Parameters
Model name (e.g.,
gemini-2.5-pro, gemini-2.5-flash).Query Parameters
API key (alternative to header authentication).
Authentication
Gemini endpoints support multiple authentication methods:?key=YOUR_API_KEYquery parameterx-goog-api-key: YOUR_API_KEYheaderAuthorization: Bearer YOUR_API_KEYheader
Request Body
Conversation contents.Each content object contains:
role(string):userormodelparts(array): Content parts. LemonData supports:- text parts:
{ "text": "..." } - inline media parts:
inlineData/inline_data - URL-based file parts:
fileData/file_data
- text parts:
fileData / file_data media parts with a public https URL.
LemonData will route supported Gemini-native channels through the native path when possible and automatically fall back to the compatible internal conversion path when a native-ready route is unavailable for that multimodal request.Role values user and model are normalized case-insensitively. inlineData / inline_data with application/octet-stream is accepted only when LemonData can identify supported image or video bytes; otherwise the request fails before routing. For native image-output requests, only the Google search/maps tool family is accepted, and unsupported tool combinations fail before upstream retries.System instruction for the model.
Generation configuration:
temperature(number): Sampling temperaturetopP(number): Nucleus sampling probabilitytopK(integer): Top-K samplingmaxOutputTokens(integer): Maximum output tokensstopSequences(array): Stop sequences
Safety filter settings.
Response
Generated content candidates.
Token usage information.
Vision Input Example
For Gemini multimodal requests, place media insidecontents[].parts[] using either inline bytes or URL-based file references.
Supported media categories in the public Gemini contract:
- image
- audio
- video
inlineData or inline_data and pass Base64-encoded file bytes.
For URL-based media, use either fileData or file_data and pass a public https URL.