Gemini Models API
Query available models on the OfoxAI platform through the Gemini native protocol. The response format follows the Google GenAI API specification (name, displayName, inputTokenLimit, and other camelCase fields).
The Models API is a public endpoint that does not require an API Key. This endpoint returns all models accessible via the Gemini protocol, not limited to Google models.
List All Models
GET https://api.ofox.io/gemini/v1beta/modelsRequest Example
Terminal
curl https://api.ofox.io/gemini/v1beta/modelsResponse Format
{
"models": [
{
"name": "models/google/gemini-3.8-flash",
"version": "001",
"displayName": "Google: Gemini 3.8 Flash",
"description": "Gemini 3.8 Flash is Google's most intelligent Flash model, with significant gains over 3.7 Flash across software engineering, agentic tasks, and multi-step reasoning. All input modalities (text/image/video/audio) unified pricing; batch tier at 50% discount. Thinking model with configurable levels. 1M context. Released September 2, 2026.",
"inputTokenLimit": 1000000,
"outputTokenLimit": 65536,
"supportedGenerationMethods": [
"generateContent",
"countTokens"
],
"ownedBy": "google",
"canonicalSlug": "gemini-3.8-flash",
"contextLength": 1000000,
"architecture": {
"modality": "text+image+audio+file->text",
"input_modalities": [
"text",
"image",
"audio",
"file"
],
"output_modalities": [
"text"
],
"tokenizer": "gemini",
"instruct_type": null
},
"pricing": {
"prompt": "0.0000015",
"completion": "0.0000075",
"audio": "0.0000015",
"input_cache_read": "0.00000015",
"input_cache_write": "0.000000083",
"input_cache_write_1h": "0.000001",
"input_cached_audio": "0.00000015",
"web_search": "0.014"
},
"topProvider": {
"context_length": 1000000,
"max_completion_tokens": 65536,
"is_moderated": false
},
"supportedParameters": [
"temperature",
"top_p",
"max_tokens",
"stop",
"tools",
"tool_choice",
"response_format",
"reasoning"
],
"expirationDate": null,
"isDeprecated": false,
"aliases": [
"gemini-3.8-flash"
]
}
]
}Field Differences from OpenAI Protocol
Filter Models by Provider
GET https://api.ofox.io/gemini/v1beta/models/{provider}Path Parameters
Request Example
Terminal
# List only Google models
curl https://api.ofox.io/gemini/v1beta/models/googleResponse Format
The response format is the same as listing all models, with the models array containing only models from the specified provider.
Get Model Details
GET https://api.ofox.io/gemini/v1beta/models/{provider}/{model_id}Path Parameters
Request Example
Terminal
curl https://api.ofox.io/gemini/v1beta/models/google/gemini-3.8-flashResponse Format
Returns a single Model object with the same structure as objects in the list endpoint.
Last updated on