Skip to main content
GET
/
v1
/
models
List models
curl --request GET \
  --url https://tokensmind.ai/v1/models \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "object": "list",
  "data": [
    {
      "id": "gpt-4",
      "object": "model",
      "created": 123,
      "owned_by": "openai"
    }
  ]
}
Returns the list of models available for the LLM API, with basic metadata for each model. This endpoint is compatible with the OpenAI API.

Headers

Content-Type
enum<string>
required

Must be application/json

Available options:
application/json
Authorization
string
required

Bearer authentication: Bearer {{API key}}

x-api-key
string

Anthropic API key (for Claude format)

anthropic-version
string

Anthropic API version

Example:

"2023-06-01"

x-goog-api-key
string

Google API key (for Gemini format)

Query Parameters

key
string

Google API key (for Gemini format)

Response

Successfully retrieved the model list

object
string
Example:

"list"

data
object[]