Gemini Format
Returns the list of models available for the current account in Gemini API format.
List Models
http
GET /v1beta/modelsbash
curl --location --request GET 'https://neolink.com/api/v1beta/models' \
--header 'Authorization: Bearer <API Key>'python
import requests
url = "https://neolink.com/api/v1beta/models"
headers = {
"Authorization": "Bearer <API Key>",
}
response = requests.get(url, headers=headers, timeout=30)
response.raise_for_status()
result = response.json()
print(result)Response Example
json
{
"models": [
{
"name": "models/gemini-2.5-flash",
"version": "2.5",
"displayName": "Gemini 2.5 Flash",
"description": "Gemini 2.5 Flash",
"inputTokenLimit": 1048576,
"outputTokenLimit": 65536,
"supportedGenerationMethods": [
"generateContent",
"countTokens"
]
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
models | array | List of models |
models[].name | string | Model name in the format models/<Model ID>, used when calling the API |
models[].version | string | Model version |
models[].displayName | string | Model display name |
models[].description | string | Model description |
models[].inputTokenLimit | integer | Input token limit |
models[].outputTokenLimit | integer | Output token limit |
models[].supportedGenerationMethods | array | Supported generation methods, e.g. generateContent, countTokens |
Authentication: Uses the
Authorization: Bearer <API Key>request header by default. If theAuthorizationparameter cannot be recognized, you can pass the authentication info via thex-goog-api-keyheader or thekeyquery parameter:httpx-goog-api-key: <API Key>or:
httpGET /v1beta/models?key=<API Key>
