List models (Gemini format)
get/v1beta/models
List the available models in the Gemini API format.
Authentication
Send your OLETOKEN API key as a Bearer token. Keys are created on the API Keys page of the console.
Authorization: Bearer $OLETOKEN_API_KEYResponses
200Models retrieved
| Field | Type | Required | Description |
|---|---|---|---|
| models | object[] | — | — |
| name | string | — | — |
| version | string | — | — |
| displayName | string | — | — |
| description | string | — | — |
| inputTokenLimit | integer | — | — |
| outputTokenLimit | integer | — | — |
| supportedGenerationMethods | string[] | — | — |
Example request
curl -X GET 'https://api.oletoken.ai/v1beta/models' \
-H "Authorization: Bearer $OLETOKEN_API_KEY"
