---
title: "List the models the project can call (OpenAI-compatible)"
description: "Every model in the catalog offered by Inference with a version that isn't retired."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Inference API

`GET /v1/organizations/{orgId}/projects/{projectId}/openai/v1/models`

Every model in the catalog offered by Inference with a version that isn't retired.

## Authentication

Requires one of the following:

- `apiKey`, http, header `Authorization`
- `oauth`, http, header `Authorization`

## Path parameters

- `ListModels.path.orgId` (string, required)
  - format `uuid`
- `ListModels.path.projectId` (string, required)
  - format `uuid`

## Code samples

### cURL

```curl
curl --request GET \
  --url https://inference-api.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/openai/v1/models \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://inference-api.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/openai/v1/models';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://inference-api.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/openai/v1/models"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The models.

#### Example

```json
{
  "data": [
    {
      "created": 0,
      "id": "qwen3-embedding-0.6b",
      "object": "model",
      "owned_by": "Qwen"
    }
  ],
  "object": "list"
}
```

- `ListModels.response.200.data` (array<object>, required)
  - `ListModels.response.200.data.created` (integer, required) — The model's first release, in Unix seconds.
  - `ListModels.response.200.data.id` (string, required) — The catalog ID.
  - `ListModels.response.200.data.object` (string, required)
  - `ListModels.response.200.data.owned_by` (string, required) — The model's publisher.
- `ListModels.response.200.object` (string, required)

### 400

invalid_request_error (invalid_request, or the product's own code): the request isn't valid; param names the field.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
```

- `ListModels.response.400.error` (object, required)
  - `ListModels.response.400.error.code` (string, required) — The platform's error code, as in every other EZGH Cloud API.
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListModels.response.400.error.message` (string, required) — What went wrong, for people. A validation failure's problems are appended to it.
  - `ListModels.response.400.error.param` (string | null, required) — The request field at fault (input, input[3], dimensions), or null.
  - `ListModels.response.400.error.type` (string, required) — invalid_request_error, authentication_error, permission_error, not_found_error, rate_limit_error, insufficient_quota or api_error. Treat it as an open string.

### 401

authentication_error (unauthenticated): no bearer credential, or one that doesn't check out. The session cookie isn't read.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
```

- `ListModels.response.401.error` (object, required)
  - `ListModels.response.401.error.code` (string, required) — The platform's error code, as in every other EZGH Cloud API.
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListModels.response.401.error.message` (string, required) — What went wrong, for people. A validation failure's problems are appended to it.
  - `ListModels.response.401.error.param` (string | null, required) — The request field at fault (input, input[3], dimensions), or null.
  - `ListModels.response.401.error.type` (string, required) — invalid_request_error, authentication_error, permission_error, not_found_error, rate_limit_error, insufficient_quota or api_error. Treat it as an open string.

### 403

permission_error (access_denied): the caller's policies don't allow the action.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
```

- `ListModels.response.403.error` (object, required)
  - `ListModels.response.403.error.code` (string, required) — The platform's error code, as in every other EZGH Cloud API.
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListModels.response.403.error.message` (string, required) — What went wrong, for people. A validation failure's problems are appended to it.
  - `ListModels.response.403.error.param` (string | null, required) — The request field at fault (input, input[3], dimensions), or null.
  - `ListModels.response.403.error.type` (string, required) — invalid_request_error, authentication_error, permission_error, not_found_error, rate_limit_error, insufficient_quota or api_error. Treat it as an open string.

### 404

not_found_error (not_found, or the product's own code): unknown, malformed, or in an organization the caller isn't in.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
```

- `ListModels.response.404.error` (object, required)
  - `ListModels.response.404.error.code` (string, required) — The platform's error code, as in every other EZGH Cloud API.
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListModels.response.404.error.message` (string, required) — What went wrong, for people. A validation failure's problems are appended to it.
  - `ListModels.response.404.error.param` (string | null, required) — The request field at fault (input, input[3], dimensions), or null.
  - `ListModels.response.404.error.type` (string, required) — invalid_request_error, authentication_error, permission_error, not_found_error, rate_limit_error, insufficient_quota or api_error. Treat it as an open string.

### 429

rate_limit_error (too_many_requests), with Retry-After; or insufficient_quota (insufficient_quota), a monthly limit, without one and with x-should-retry: false.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
```

- `ListModels.response.429.error` (object, required)
  - `ListModels.response.429.error.code` (string, required) — The platform's error code, as in every other EZGH Cloud API.
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListModels.response.429.error.message` (string, required) — What went wrong, for people. A validation failure's problems are appended to it.
  - `ListModels.response.429.error.param` (string | null, required) — The request field at fault (input, input[3], dimensions), or null.
  - `ListModels.response.429.error.type` (string, required) — invalid_request_error, authentication_error, permission_error, not_found_error, rate_limit_error, insufficient_quota or api_error. Treat it as an open string.

### 500

api_error (internal_error): a bug; the details are in the logs, under the request ID.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
```

- `ListModels.response.500.error` (object, required)
  - `ListModels.response.500.error.code` (string, required) — The platform's error code, as in every other EZGH Cloud API.
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListModels.response.500.error.message` (string, required) — What went wrong, for people. A validation failure's problems are appended to it.
  - `ListModels.response.500.error.param` (string | null, required) — The request field at fault (input, input[3], dimensions), or null.
  - `ListModels.response.500.error.type` (string, required) — invalid_request_error, authentication_error, permission_error, not_found_error, rate_limit_error, insufficient_quota or api_error. Treat it as an open string.

### 503

api_error (unavailable): a dependency the request needs is down. Retry after Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "message": "string",
    "param": "string",
    "type": "string"
  }
}
```

- `ListModels.response.503.error` (object, required)
  - `ListModels.response.503.error.code` (string, required) — The platform's error code, as in every other EZGH Cloud API.
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListModels.response.503.error.message` (string, required) — What went wrong, for people. A validation failure's problems are appended to it.
  - `ListModels.response.503.error.param` (string | null, required) — The request field at fault (input, input[3], dimensions), or null.
  - `ListModels.response.503.error.type` (string, required) — invalid_request_error, authentication_error, permission_error, not_found_error, rate_limit_error, insufficient_quota or api_error. Treat it as an open string.


Source: https://docs.ezghcloud.com/inference-api/ListModels/index.md
