Skip to main content

Overview

Retrieves a list of all models currently available through the OpenAI API. Each model object provides basic information including the owner and availability.

Method

Parameters

This endpoint takes no required parameters. Optional parameters include:
dict
Send extra headers with the request
dict
Add additional query parameters to the request
float
Override the client-level default timeout for this request, in seconds

Response

Returns a paginated list of Model objects.
array
Array of model objects

Examples

List All Models

Filter Models

Check Model Availability

Pagination

Async Usage

Notes

  • The list includes base models from OpenAI as well as any fine-tuned models you have created
  • Models are returned in no particular order
  • The response is paginated but the SDK handles pagination automatically
  • Use this endpoint to verify model availability before making API calls