NAME

OpenAPI::Client::OpenAI::Path::models - Documentation for the /models path.

OPERATIONS

GET /models

listModels

$client->list_models({
    body => { ... },
});

Lists the currently available models, and provides basic information about each one such as the owner and availability.

Responses

200 - OK

Content-Type: application/json

Example:

{
   "data" : [
      "{\n  \"id\": \"VAR_chat_model_id\",\n  \"object\": \"model\",\n  \"created\": 1686935002,\n  \"owned_by\": \"openai\"\n}\n"
   ],
   "object" : "list"
}

SCHEMAS

ListModelsResponse

Properties:

  • data (array of Model, required)

  • object (string, required)

    Allowed values: list

Model

Properties:

  • created (integer, required) - The Unix timestamp (in seconds) when the model was created.

  • id (string, required) - The model identifier, which can be referenced in the API endpoints.

  • object (string, required) - The object type, which is always "model".

    Allowed values: model

  • owned_by (string, required) - The organization that owns the model.

SEE ALSO

OpenAPI::Client::OpenAI::Path

COPYRIGHT AND LICENSE

Copyright (C) 2023-2026 by Nelson Ferraz

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.0 or, at your option, any later version of Perl 5 you may have available.