Lists the currently available models, and provides basic information about each one such as the owner and availability.
Response
200 application/json
Response
OK
ListModelsResponse
Allowed values:list
Describes an OpenAI model offering that can be used with the API.
Show Child Parameters
Authentication
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
Path Parameters
The ID of the model to use for this request
Example:gpt-4o-mini
Response
200 application/json
Response
OK
Model
Describes an OpenAI model offering that can be used with the API.
The model identifier, which can be referenced in the API endpoints.
The Unix timestamp (in seconds) when the model was created.
The object type, which is always “model”.
Allowed values:model
The organization that owns the model.
Authentication
Path Parameters
Delete a fine-tuned model. You must have the Owner role in your organization to delete a model.
Path Parameters
The model to delete
Example:ft:gpt-4o-mini:acemeco:suffix:abc123
Response
200 application/json
Response
OK
DeleteModelResponse
Authentication
Path Parameters
Moderations
Given text and/or image inputs, classifies if those inputs are potentially harmful.
Classifies if text and/or image inputs are potentially harmful. Learn more in the [moderation guide](/docs/guides/moderation).
Body
application/json
Body
CreateModerationRequest
One OfInput (or inputs) to classify. Can be a single string, an array of strings, or
an array of multi-modal input objects similar to other models.
A string of text to classify for moderation.
Default:
Example:I want to kill them.
Any OfThe content moderation model you would like to use. Learn more in
the moderation guide, and learn about
available models here.
Default:omni-moderation-latest
Example:omni-moderation-2024-09-26
Response
200 application/json
Response
OK
CreateModerationResponse
Represents if a given text input is potentially harmful.
The unique identifier for the moderation request.
The model used to generate the moderation results.
A list of moderation objects.