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.
Show Child Parameters
Authentication
Body
Audit Logs
List user actions and configuration changes within this organization.
List user actions and configuration changes within this organization.
Query Parameters
Return only events whose effective_at (Unix seconds) is in this range.
Show Child Parameters
Return only events for these projects.
The event type.
Allowed values:api_key.createdapi_key.updatedapi_key.deletedinvite.sentinvite.acceptedinvite.deletedlogin.succeededlogin.failedlogout.succeededlogout.failedorganization.updatedproject.createdproject.updatedproject.archivedservice_account.createdservice_account.updatedservice_account.deletedrate_limit.updatedrate_limit.deleteduser.addeduser.updateduser.deleted
Return only events performed by these actors. Can be a user ID, a service account ID, or an api key tracking ID.
Return only events performed by users with these emails.
Return only events performed on these targets. For example, a project ID updated.
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20.
Default:20
A cursor for use in pagination. after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include after=obj_foo in order to fetch the next page of the list.
A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.
Response
200 application/json
Response
Audit logs listed successfully.
ListAuditLogsResponse
Allowed values:list
A log of a user action or configuration change within this organization.
Show Child Parameters
Example:audit_log-defb456h8dks
Example:audit_log-hnbkd8s93s