GET
/
models
curl --request GET \
  --url https://api.electronhub.ai/v1/models
{
  "object": "list",
  "data": [
    {
      "name": "<string>",
      "description": "<string>",
      "id": "<string>",
      "object": "model",
      "created": 123,
      "owned_by": "<string>",
      "tokens": 123,
      "pricing": {
        "input": 123,
        "output": 123
      },
      "endpoints": [
        "<string>"
      ],
      "premium_model": true,
      "voices": [
        "<string>"
      ],
      "sizes": [
        "<string>"
      ],
      "qualities": [
        "<string>"
      ],
      "tags": [
        "<string>"
      ],
      "styles": [
        "<string>"
      ],
      "metadata": {}
    }
  ]
}

Retrieve a list of available models that can be used with the API.

Response

Returns a list of model objects containing information about each available model including their capabilities and pricing tier.

Example Response

{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "owned_by": "openai"
    },
    {
      "id": "claude-3-5-sonnet-20241022", 
      "object": "model",
      "owned_by": "anthropic"
    },
    {
      "id": "gemini-pro",
      "object": "model", 
      "owned_by": "google"
    }
  ]
}

Response

200 - application/json

Success

The response is of type object.