Skip to content

Gemini Format ​

Returns the list of models available for the current account in Gemini API format.

List Models ​

http
GET /v1beta/models
bash
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 ​

FieldTypeDescription
modelsarrayList of models
models[].namestringModel name in the format models/<Model ID>, used when calling the API
models[].versionstringModel version
models[].displayNamestringModel display name
models[].descriptionstringModel description
models[].inputTokenLimitintegerInput token limit
models[].outputTokenLimitintegerOutput token limit
models[].supportedGenerationMethodsarraySupported generation methods, e.g. generateContent, countTokens

Authentication: Uses the Authorization: Bearer <API Key> request header by default. If the Authorization parameter cannot be recognized, you can pass the authentication info via the x-goog-api-key header or the key query parameter:

http
x-goog-api-key: <API Key>

or:

http
GET /v1beta/models?key=<API Key>