GET
/
models
/
{model}
curl --request GET \
  --url https://api.electronhub.ai/v1/models/{model}
{
  "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 information about a specific model.

Path Parameters

The model ID is passed as a path parameter in the URL.

Response

Returns detailed information about the specified model including its capabilities, context length, and other metadata.

Example Response

{
  "name": "OpenAI: GPT-4o",
  "description": "GPT-4o (\"o\" for \"omni\") is OpenAI's latest AI model, supporting both text and image inputs with text outputs. It maintains the intelligence level of GPT-4 Turbo while being twice as fast and 50% more cost-effective. GPT-4o also offers improved performance in processing non-English languages and enhanced visual capabilities.",
  "id": "gpt-4o",
  "object": "model",
  "created": 1748957251,
  "owned_by": "openai",
  "tokens": 128000,
  "pricing": {
    "type": "per_million_tokens",
    "input": 2.5,
    "output": 10
  },
  "endpoints": [
    "/v1/chat/completions",
    "/v1/responses"
  ],
  "premium_model": false,
  "metadata": {
    "vision": true,
    "function_call": true,
    "web_search": false,
    "reasoning": false
  }
}

Error Responses

Returns a 404 error if the model is not found:

{
  "error": {
    "message": "Model not found",
    "type": "invalid_request_error",
    "code": "model_not_found"
  }
}

Path Parameters

model
string
required

Model ID

Response

200 - application/json

Success

The response is of type object.