Module schemas

Source
Expand description

OpenAI API schemas

Structs§

AddUploadPartRequest
AdminApiKey
Represents an individual Admin API key in an org.
AdminApiKey_Owner
ApiKeyList
ApproximateLocation
AssistantObject
Represents an assistant that can call the model and use tools.
AssistantObject_ToolResources
A set of resources that are used by the assistant’s tools.
AssistantObject_ToolResources_CodeInterpreter
AssistantObject_ToolResources_FileSearch
AssistantToolsCode
AssistantToolsFileSearch
AssistantToolsFileSearchTypeOnly
AssistantToolsFileSearch_FileSearch
Overrides for the file search tool.
AssistantToolsFunction
AssistantsNamedToolChoice
Specifies a tool the model should use.
AssistantsNamedToolChoice_Function
AuditLog
A log of a user action or configuration change within this organization.
AuditLogActor
The actor who performed the audit logged action.
AuditLogActorApiKey
The API Key used to perform the audit logged action.
AuditLogActorServiceAccount
The service account that performed the audit logged action.
AuditLogActorSession
The session in which the audit logged action was performed.
AuditLogActorUser
The user who performed the audit logged action.
AuditLog_ApiKeyCreated
The details for events with this type.
AuditLog_ApiKeyCreated_Data
The payload used to create the API key.
AuditLog_ApiKeyDeleted
The details for events with this type.
AuditLog_ApiKeyUpdated
The details for events with this type.
AuditLog_ApiKeyUpdated_ChangesRequested
The payload used to update the API key.
AuditLog_CertificateCreated
The details for events with this type.
AuditLog_CertificateDeleted
The details for events with this type.
AuditLog_CertificateUpdated
The details for events with this type.
AuditLog_CertificatesActivated
The details for events with this type.
AuditLog_CertificatesActivated_Certificates
AuditLog_CertificatesDeactivated
The details for events with this type.
AuditLog_CertificatesDeactivated_Certificates
AuditLog_CheckpointPermissionCreated
The project and fine-tuned model checkpoint that the checkpoint permission was created for.
AuditLog_CheckpointPermissionCreated_Data
The payload used to create the checkpoint permission.
AuditLog_CheckpointPermissionDeleted
The details for events with this type.
AuditLog_InviteAccepted
The details for events with this type.
AuditLog_InviteDeleted
The details for events with this type.
AuditLog_InviteSent
The details for events with this type.
AuditLog_InviteSent_Data
The payload used to create the invite.
AuditLog_LoginFailed
The details for events with this type.
AuditLog_LogoutFailed
The details for events with this type.
AuditLog_OrganizationUpdated
The details for events with this type.
AuditLog_OrganizationUpdated_ChangesRequested
The payload used to update the organization settings.
AuditLog_OrganizationUpdated_ChangesRequested_Settings
AuditLog_Project
The project that the action was scoped to.
AuditLog_ProjectArchived
The details for events with this type.
AuditLog_ProjectCreated
The details for events with this type.
AuditLog_ProjectCreated_Data
The payload used to create the project.
AuditLog_ProjectUpdated
The details for events with this type.
AuditLog_ProjectUpdated_ChangesRequested
The payload used to update the project.
AuditLog_RateLimitDeleted
The details for events with this type.
AuditLog_RateLimitUpdated
The details for events with this type.
AuditLog_RateLimitUpdated_ChangesRequested
The payload used to update the rate limits.
AuditLog_ServiceAccountCreated
The details for events with this type.
AuditLog_ServiceAccountCreated_Data
The payload used to create the service account.
AuditLog_ServiceAccountDeleted
The details for events with this type.
AuditLog_ServiceAccountUpdated
The details for events with this type.
AuditLog_ServiceAccountUpdated_ChangesRequested
The payload used to updated the service account.
AuditLog_UserAdded
The details for events with this type.
AuditLog_UserAdded_Data
The payload used to add the user to the project.
AuditLog_UserDeleted
The details for events with this type.
AuditLog_UserUpdated
The details for events with this type.
AuditLog_UserUpdated_ChangesRequested
The payload used to update the user.
AutoChunkingStrategyRequestParam
The default strategy.
Batch
BatchRequestInput
The per-line object of the batch input file
BatchRequestOutput
The per-line object of the batch output and error files
BatchRequestOutput_Error
For requests that failed with a non-HTTP error, this will contain more information on the cause of the failure.
BatchRequestOutput_Response
BatchRequestOutput_Response_Body
The JSON body of the response
Batch_Errors
Batch_Errors_Data
Batch_RequestCounts
The request counts for different statuses within the batch.
Certificate
Represents an individual certificate uploaded to the organization.
Certificate_CertificateDetails
ChatCompletionDeleted
ChatCompletionFunctionCallOption
Specifying a particular function via {"name": "my_function"} forces the model to call that function.
ChatCompletionFunctions
ChatCompletionList
An object representing a list of Chat Completions.
ChatCompletionMessageList
An object representing a list of chat completion messages.
ChatCompletionMessageList_Data
ChatCompletionMessageList_Data_Variant2
ChatCompletionMessageToolCall
ChatCompletionMessageToolCallChunk
ChatCompletionMessageToolCallChunk_Function
ChatCompletionMessageToolCall_Function
The function that the model called.
ChatCompletionNamedToolChoice
Specifies a tool the model should use.
ChatCompletionNamedToolChoice_Function
ChatCompletionRequestAssistantMessage
Messages sent by the model in response to user messages.
ChatCompletionRequestAssistantMessage_Audio
Data about a previous audio response from the model.
ChatCompletionRequestAssistantMessage_FunctionCall
Deprecated and replaced by tool_calls.
ChatCompletionRequestDeveloperMessage
Developer-provided instructions that the model should follow, regardless of messages sent by the user.
ChatCompletionRequestFunctionMessage
ChatCompletionRequestMessageContentPartAudio
Learn about audio inputs.
ChatCompletionRequestMessageContentPartAudio_InputAudio
ChatCompletionRequestMessageContentPartFile
Learn about file inputs for text generation.
ChatCompletionRequestMessageContentPartFile_File
ChatCompletionRequestMessageContentPartImage
Learn about image inputs.
ChatCompletionRequestMessageContentPartImage_ImageUrl
ChatCompletionRequestMessageContentPartRefusal
ChatCompletionRequestMessageContentPartText
Learn about text inputs.
ChatCompletionRequestSystemMessage
Developer-provided instructions that the model should follow, regardless of messages sent by the user.
ChatCompletionRequestToolMessage
ChatCompletionRequestUserMessage
Messages sent by an end user, containing prompts or additional context information.
ChatCompletionResponseMessage
A chat completion message generated by the model.
ChatCompletionResponseMessage_Annotations
A URL citation when using web search.
ChatCompletionResponseMessage_Annotations_UrlCitation
A URL citation when using web search.
ChatCompletionResponseMessage_Audio
If the audio output modality is requested, this object contains data about the audio response from the model.
ChatCompletionResponseMessage_FunctionCall
Deprecated and replaced by tool_calls.
ChatCompletionStreamOptions
Options for streaming response.
ChatCompletionStreamResponseDelta
A chat completion delta generated by streamed model responses.
ChatCompletionStreamResponseDelta_FunctionCall
Deprecated and replaced by tool_calls.
ChatCompletionTokenLogprob
ChatCompletionTokenLogprob_TopLogprobs
ChatCompletionTool
Click
A click action.
CodeInterpreterFileOutput
The output of a code interpreter tool call that is a file.
CodeInterpreterFileOutput_Files
CodeInterpreterTextOutput
The output of a code interpreter tool call that is text.
CodeInterpreterToolCall
A tool call to run code.
ComparisonFilter
A filter used to compare a specified attribute key to a given value using a defined comparison operation.
CompleteUploadRequest
CompletionUsage
Usage statistics for the completion request.
CompletionUsage_CompletionTokensDetails
Breakdown of tokens used in a completion.
CompletionUsage_PromptTokensDetails
Breakdown of tokens used in the prompt.
CompoundFilter
Combine multiple filters using and or or.
ComputerCallOutputItemParam
The output of a computer tool call.
ComputerCallSafetyCheckParam
A pending safety check for the computer call.
ComputerScreenshotImage
A computer screenshot image used with the computer use tool.
ComputerToolCall
A tool call to a computer use tool.
ComputerToolCallOutput
The output of a computer tool call.
ComputerToolCallOutputResource
ComputerToolCallOutputResource_Variant2
ComputerToolCallSafetyCheck
A pending safety check for the computer call.
ComputerUsePreviewTool
A tool that controls a virtual computer.
Coordinate
An x/y coordinate pair, e.g.
CostsResult
The aggregated costs details of the specific time bucket.
CostsResult_Amount
The monetary value in its associated currency.
CreateAssistantRequest
CreateAssistantRequest_ToolResources
A set of resources that are used by the assistant’s tools.
CreateAssistantRequest_ToolResources_CodeInterpreter
CreateAssistantRequest_ToolResources_FileSearch
CreateAssistantRequest_ToolResources_FileSearch_VectorStores
CreateChatCompletionRequest
CreateChatCompletionRequest_LogitBias
Modify the likelihood of specified tokens appearing in the completion.
CreateChatCompletionRequest_Variant2
CreateChatCompletionRequest_Variant2_Audio
Parameters for audio output.
CreateChatCompletionRequest_Variant2_LogitBias
Modify the likelihood of specified tokens appearing in the completion.
CreateChatCompletionRequest_Variant2_WebSearchOptions
This tool searches the web for relevant results to use in a response.
CreateChatCompletionRequest_Variant2_WebSearchOptions_UserLocation
Approximate location parameters for the search.
CreateChatCompletionResponse
Represents a chat completion response returned by model, based on the provided input.
CreateChatCompletionResponse_Choices
CreateChatCompletionResponse_Choices_Logprobs
Log probability information for the choice.
CreateChatCompletionStreamResponse
Represents a streamed chunk of a chat completion response returned by the model, based on the provided input.
CreateChatCompletionStreamResponse_Choices
CreateChatCompletionStreamResponse_Choices_Logprobs
Log probability information for the choice.
CreateCompletionRequest
CreateCompletionRequest_LogitBias
Modify the likelihood of specified tokens appearing in the completion.
CreateCompletionResponse
Represents a completion response from the API.
CreateCompletionResponse_Choices
CreateCompletionResponse_Choices_Logprobs
CreateCompletionResponse_Choices_Logprobs_TopLogprobs
CreateEmbeddingRequest
CreateEmbeddingResponse
CreateEmbeddingResponse_Usage
The usage information for the request.
CreateEvalCompletionsRunDataSource
A CompletionsRunDataSource object describing a model sampling configuration.
CreateEvalCompletionsRunDataSource_InputMessages_Variant1
CreateEvalCompletionsRunDataSource_InputMessages_Variant2
CreateEvalCompletionsRunDataSource_SamplingParams
CreateEvalCustomDataSourceConfig
A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs.
CreateEvalCustomDataSourceConfig_ItemSchema
The json schema for each row in the data source.
CreateEvalItem_Variant1
CreateEvalJsonlRunDataSource
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval
CreateEvalLabelModelGrader
A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
CreateEvalLogsDataSourceConfig
A data source config which specifies the metadata property of your stored completions query.
CreateEvalLogsDataSourceConfig_Metadata
Metadata filters for the logs data source.
CreateEvalRequest
CreateEvalResponsesRunDataSource
A ResponsesRunDataSource object describing a model sampling configuration.
CreateEvalResponsesRunDataSource_InputMessages_Variant1
CreateEvalResponsesRunDataSource_InputMessages_Variant2
CreateEvalResponsesRunDataSource_InputMessages_Variant1_Template_Variant1
CreateEvalResponsesRunDataSource_SamplingParams
CreateEvalRunRequest
CreateFileRequest
CreateFineTuningCheckpointPermissionRequest
CreateFineTuningJobRequest
CreateFineTuningJobRequest_Hyperparameters
The hyperparameters used for the fine-tuning job.
CreateFineTuningJobRequest_Integrations
CreateFineTuningJobRequest_Integrations_Wandb
The settings for your integration with Weights and Biases.
CreateImageEditRequest
CreateImageRequest
CreateImageVariationRequest
CreateMessageRequest
CreateMessageRequest_Attachments
CreateModerationRequest
CreateModerationRequest_Input_Variant3_Variant1
An object describing an image to classify.
CreateModerationRequest_Input_Variant3_Variant2
An object describing text to classify.
CreateModerationRequest_Input_Variant3_Variant1_ImageUrl
Contains either an image URL or a data URL for a base64 encoded image.
CreateModerationResponse
Represents if a given text input is potentially harmful.
CreateModerationResponse_Results
CreateModerationResponse_Results_Categories
A list of the categories, and whether they are flagged or not.
CreateModerationResponse_Results_CategoryAppliedInputTypes
A list of the categories along with the input type(s) that the score applies to.
CreateModerationResponse_Results_CategoryScores
A list of the categories along with their scores as predicted by model.
CreateResponse
CreateResponse_Variant3
CreateRunRequest
CreateSpeechRequest
CreateThreadAndRunRequest
CreateThreadAndRunRequest_ToolResources
A set of resources that are used by the assistant’s tools.
CreateThreadAndRunRequest_ToolResources_CodeInterpreter
CreateThreadAndRunRequest_ToolResources_FileSearch
CreateThreadRequest
Options to create a new thread.
CreateThreadRequest_ToolResources
A set of resources that are made available to the assistant’s tools in this thread.
CreateThreadRequest_ToolResources_CodeInterpreter
CreateThreadRequest_ToolResources_FileSearch
CreateThreadRequest_ToolResources_FileSearch_VectorStores
CreateTranscriptionRequest
CreateTranscriptionResponseJson
Represents a transcription response returned by model, based on the provided input.
CreateTranscriptionResponseJson_Logprobs
CreateTranscriptionResponseVerboseJson
Represents a verbose json transcription response returned by model, based on the provided input.
CreateTranslationRequest
CreateTranslationResponseJson
CreateTranslationResponseVerboseJson
CreateUploadRequest
CreateVectorStoreFileBatchRequest
CreateVectorStoreFileRequest
CreateVectorStoreRequest
DeleteAssistantResponse
DeleteCertificateResponse
DeleteFileResponse
DeleteFineTuningCheckpointPermissionResponse
DeleteMessageResponse
DeleteModelResponse
DeleteThreadResponse
DeleteVectorStoreFileResponse
DeleteVectorStoreResponse
DoneEvent
Occurs when a stream ends.
DoubleClick
A double click action.
Drag
A drag action.
EasyInputMessage
A message input to the model with a role indicating instruction following hierarchy.
Embedding
Represents an embedding vector returned by embedding endpoint.
Error
ErrorEvent
Occurs when an error occurs.
ErrorResponse
Eval
An Eval object with a data source config and testing criteria.
EvalApiError
An object representing an error response from the Eval API.
EvalCustomDataSourceConfig
A CustomDataSourceConfig which specifies the schema of your item and optionally sample namespaces.
EvalCustomDataSourceConfig_Schema
The json schema for the run data source items.
EvalItem
A message input to the model with a role indicating instruction following hierarchy.
EvalItem_Content_Variant3
A text output from the model.
EvalJsonlFileContentSource
EvalJsonlFileContentSource_Content
EvalJsonlFileContentSource_Content_Item
EvalJsonlFileContentSource_Content_Sample
EvalJsonlFileIdSource
EvalLabelModelGrader
A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
EvalList
An object representing a list of evals.
EvalPythonGrader
A PythonGrader object that runs a python script on the input.
EvalResponsesSource
A EvalResponsesSource object describing a run data source configuration.
EvalResponsesSource_Metadata
Metadata filter for the responses.
EvalRun
A schema representing an evaluation run.
EvalRunList
An object representing a list of runs for an evaluation.
EvalRunOutputItem
A schema representing an evaluation run output item.
EvalRunOutputItemList
An object representing a list of output items for an evaluation run.
EvalRunOutputItem_DatasourceItem
Details of the input data source item.
EvalRunOutputItem_Results
A result object.
EvalRunOutputItem_Sample
A sample containing the input and output of the evaluation run.
EvalRunOutputItem_Sample_Input
An input message.
EvalRunOutputItem_Sample_Output
EvalRunOutputItem_Sample_Usage
Token usage details for the sample.
EvalRun_PerModelUsage
EvalRun_PerTestingCriteriaResults
EvalRun_ResultCounts
Counters summarizing the outcomes of the evaluation run.
EvalScoreModelGrader
A ScoreModelGrader object that uses a model to assign a score to the input.
EvalScoreModelGrader_SamplingParams
The sampling parameters for the model.
EvalStoredCompletionsDataSourceConfig
A StoredCompletionsDataSourceConfig which specifies the metadata property of your stored completions query.
EvalStoredCompletionsDataSourceConfig_Schema
The json schema for the run data source items.
EvalStoredCompletionsSource
A StoredCompletionsRunDataSource configuration describing a set of filters
EvalStringCheckGrader
A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
EvalTextSimilarityGrader
A TextSimilarityGrader object which grades text based on similarity metrics.
FileCitationBody
A citation to a file.
FilePath
A path to a file.
FileSearchRankingOptions
The ranking options for the file search.
FileSearchTool
A tool that searches for relevant content from uploaded files.
FileSearchToolCall
The results of a file search tool call.
FileSearchToolCall_Results
FineTuneChatCompletionRequestAssistantMessage
FineTuneChatCompletionRequestAssistantMessage_Variant1
FineTuneChatRequestInput
The per-line training example of a fine-tuning input file for chat models using the supervised method.
FineTuneCompletionRequestInput
The per-line training example of a fine-tuning input file for completions models
FineTuneDPOMethod
Configuration for the DPO fine-tuning method.
FineTuneDPOMethod_Hyperparameters
The hyperparameters used for the fine-tuning job.
FineTuneMethod
The method used for fine-tuning.
FineTunePreferenceRequestInput
The per-line training example of a fine-tuning input file for chat models using the dpo method.
FineTunePreferenceRequestInput_Input
FineTuneSupervisedMethod
Configuration for the supervised fine-tuning method.
FineTuneSupervisedMethod_Hyperparameters
The hyperparameters used for the fine-tuning job.
FineTuningCheckpointPermission
The checkpoint.permission object represents a permission for a fine-tuned model checkpoint.
FineTuningIntegration
FineTuningIntegration_Wandb
The settings for your integration with Weights and Biases.
FineTuningJob
The fine_tuning.job object represents a fine-tuning job that has been created through the API.
FineTuningJobCheckpoint
The fine_tuning.job.checkpoint object represents a model checkpoint for a fine-tuning job that is ready to use.
FineTuningJobCheckpoint_Metrics
Metrics at the step number during the fine-tuning job.
FineTuningJobEvent
Fine-tuning job event object
FineTuningJobEvent_Data
The data associated with the event.
FineTuningJob_Error
For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.
FineTuningJob_Hyperparameters
The hyperparameters used for the fine-tuning job.
FunctionCallOutputItemParam
The output of a function tool call.
FunctionObject
FunctionParameters
The parameters the functions accepts, described as a JSON Schema object.
FunctionTool
Defines a function in your own code the model can choose to call.
FunctionToolCall
A tool call to run a function.
FunctionToolCallOutput
The output of a function tool call.
FunctionToolCallOutputResource
FunctionToolCallOutputResource_Variant2
FunctionToolCallResource
FunctionToolCallResource_Variant2
FunctionTool_Parameters_1
A JSON schema object describing the parameters of the function.
Image
Represents the content or the URL of an image generated by the OpenAI API.
ImagesResponse
The response from the image generation endpoint.
ImagesResponse_Usage
For gpt-image-1 only, the token usage information for the image generation.
ImagesResponse_Usage_InputTokensDetails
The input tokens detailed information for the image generation.
InputAudio
An audio input to the model.
InputFileContent
A file input to the model.
InputImageContent
An image input to the model.
InputMessage
A message input to the model with a role indicating instruction following hierarchy.
InputMessageResource
InputMessageResource_Variant2
InputTextContent
A text input to the model.
Invite
Represents an individual invite to the organization.
InviteDeleteResponse
InviteListResponse
InviteRequest
InviteRequest_Projects
Invite_Projects
ItemReferenceParam
An internal identifier for an item to reference.
KeyPress
A collection of keypresses the model would like to perform.
ListAssistantsResponse
ListAuditLogsResponse
ListBatchesResponse
ListCertificatesResponse
ListFilesResponse
ListFineTuningCheckpointPermissionResponse
ListFineTuningJobCheckpointsResponse
ListFineTuningJobEventsResponse
ListMessagesResponse
ListModelsResponse
ListPaginatedFineTuningJobsResponse
ListRunStepsResponse
ListRunsResponse
ListVectorStoreFilesResponse
ListVectorStoresResponse
LogProbProperties
A log probability object.
MessageContentImageFileObject
References an image File in the content of a message.
MessageContentImageFileObject_ImageFile
MessageContentImageUrlObject
References an image URL in the content of a message.
MessageContentImageUrlObject_ImageUrl
MessageContentRefusalObject
The refusal content generated by the assistant.
MessageContentTextAnnotationsFileCitationObject
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message.
MessageContentTextAnnotationsFileCitationObject_FileCitation
MessageContentTextAnnotationsFilePathObject
A URL for the file that’s generated when the assistant used the code_interpreter tool to generate a file.
MessageContentTextAnnotationsFilePathObject_FilePath
MessageContentTextObject
The text content that is part of a message.
MessageContentTextObject_Text
MessageDeltaContentImageFileObject
References an image File in the content of a message.
MessageDeltaContentImageFileObject_ImageFile
MessageDeltaContentImageUrlObject
References an image URL in the content of a message.
MessageDeltaContentImageUrlObject_ImageUrl
MessageDeltaContentRefusalObject
The refusal content that is part of a message.
MessageDeltaContentTextAnnotationsFileCitationObject
A citation within the message that points to a specific quote from a specific File associated with the assistant or the message.
MessageDeltaContentTextAnnotationsFileCitationObject_FileCitation
MessageDeltaContentTextAnnotationsFilePathObject
A URL for the file that’s generated when the assistant used the code_interpreter tool to generate a file.
MessageDeltaContentTextAnnotationsFilePathObject_FilePath
MessageDeltaContentTextObject
The text content that is part of a message.
MessageDeltaContentTextObject_Text
MessageDeltaObject
Represents a message delta i.e.
MessageDeltaObject_Delta
The delta containing the fields that have changed on the Message.
MessageObject
Represents a message within a thread.
MessageObject_Attachments
MessageObject_IncompleteDetails
On an incomplete message, details about why the message is incomplete.
MessageRequestContentTextObject
The text content that is part of a message.
MessageStreamEvent_Variant1
Occurs when a message is created.
MessageStreamEvent_Variant2
Occurs when a message moves to an in_progress state.
MessageStreamEvent_Variant3
Occurs when parts of a Message are being streamed.
MessageStreamEvent_Variant4
Occurs when a message is completed.
MessageStreamEvent_Variant5
Occurs when a message ends before it is completed.
Metadata
Set of 16 key-value pairs that can be attached to an object.
Model
Describes an OpenAI model offering that can be used with the API.
ModelResponseProperties
ModifyAssistantRequest
ModifyAssistantRequest_ToolResources
A set of resources that are used by the assistant’s tools.
ModifyAssistantRequest_ToolResources_CodeInterpreter
ModifyAssistantRequest_ToolResources_FileSearch
ModifyCertificateRequest
ModifyMessageRequest
ModifyRunRequest
ModifyThreadRequest
ModifyThreadRequest_ToolResources
A set of resources that are made available to the assistant’s tools in this thread.
ModifyThreadRequest_ToolResources_CodeInterpreter
ModifyThreadRequest_ToolResources_FileSearch
Move
A mouse move action.
OpenAIFile
The File object represents a document that has been uploaded to OpenAI.
OtherChunkingStrategyResponseParam
This is returned when the chunking strategy is unknown.
OutputAudio
An audio output from the model.
OutputMessage
An output message from the model.
OutputTextContent
A text output from the model.
PredictionContent
Static predicted output content, such as the content of a text file that is being regenerated.
Project
Represents an individual project.
ProjectApiKey
Represents an individual API key in a project.
ProjectApiKeyDeleteResponse
ProjectApiKeyListResponse
ProjectApiKey_Owner
ProjectCreateRequest
ProjectListResponse
ProjectRateLimit
Represents a project rate limit config.
ProjectRateLimitListResponse
ProjectRateLimitUpdateRequest
ProjectServiceAccount
Represents an individual service account in a project.
ProjectServiceAccountApiKey
ProjectServiceAccountCreateRequest
ProjectServiceAccountCreateResponse
ProjectServiceAccountDeleteResponse
ProjectServiceAccountListResponse
ProjectUpdateRequest
ProjectUser
Represents an individual user in a project.
ProjectUserCreateRequest
ProjectUserDeleteResponse
ProjectUserListResponse
ProjectUserUpdateRequest
RankingOptions
RealtimeClientEventConversationItemCreate
Add a new Item to the Conversation’s context, including messages, function calls, and function call responses.
RealtimeClientEventConversationItemDelete
Send this event when you want to remove any item from the conversation history.
RealtimeClientEventConversationItemRetrieve
Send this event when you want to retrieve the server’s representation of a specific item in the conversation history.
RealtimeClientEventConversationItemTruncate
Send this event to truncate a previous assistant message’s audio.
RealtimeClientEventInputAudioBufferAppend
Send this event to append audio bytes to the input audio buffer.
RealtimeClientEventInputAudioBufferClear
Send this event to clear the audio bytes in the buffer.
RealtimeClientEventInputAudioBufferCommit
Send this event to commit the user input audio buffer, which will create a new user message item in the conversation.
RealtimeClientEventOutputAudioBufferClear
WebRTC Only: Emit to cut off the current audio response.
RealtimeClientEventResponseCancel
Send this event to cancel an in-progress response.
RealtimeClientEventResponseCreate
This event instructs the server to create a Response, which means triggering model inference.
RealtimeClientEventSessionUpdate
Send this event to update the session’s default configuration.
RealtimeClientEventTranscriptionSessionUpdate
Send this event to update a transcription session.
RealtimeConversationItem
The item to add to the conversation.
RealtimeConversationItemWithReference
The item to add to the conversation.
RealtimeConversationItemWithReference_Content
RealtimeConversationItem_Content
RealtimeResponse
The response resource.
RealtimeResponseCreateParams
Create a new Realtime response with these parameters
RealtimeResponseCreateParams_Tools
RealtimeResponseCreateParams_Tools_Parameters
Parameters of the function in JSON Schema.
RealtimeResponse_StatusDetails
Additional details about the status.
RealtimeResponse_StatusDetails_Error
A description of the error that caused the response to fail, populated when the status is failed.
RealtimeResponse_Usage
Usage statistics for the Response, this will correspond to billing.
RealtimeResponse_Usage_InputTokenDetails
Details about the input tokens used in the Response.
RealtimeResponse_Usage_OutputTokenDetails
Details about the output tokens used in the Response.
RealtimeServerEventConversationCreated
Returned when a conversation is created.
RealtimeServerEventConversationCreated_Conversation
The conversation resource.
RealtimeServerEventConversationItemCreated
Returned when a conversation item is created.
RealtimeServerEventConversationItemDeleted
Returned when an item in the conversation is deleted by the client with a conversation.item.delete event.
RealtimeServerEventConversationItemInputAudioTranscriptionCompleted
This event is the output of audio transcription for user audio written to the user audio buffer.
RealtimeServerEventConversationItemInputAudioTranscriptionDelta
Returned when the text value of an input audio transcription content part is updated.
RealtimeServerEventConversationItemInputAudioTranscriptionFailed
Returned when input audio transcription is configured, and a transcription request for a user message failed.
RealtimeServerEventConversationItemInputAudioTranscriptionFailed_Error
Details of the transcription error.
RealtimeServerEventConversationItemRetrieved
Returned when a conversation item is retrieved with conversation.item.retrieve.
RealtimeServerEventConversationItemTruncated
Returned when an earlier assistant audio message item is truncated by the client with a conversation.item.truncate event.
RealtimeServerEventError
Returned when an error occurs, which could be a client problem or a server problem.
RealtimeServerEventError_Error
Details of the error.
RealtimeServerEventInputAudioBufferCleared
Returned when the input audio buffer is cleared by the client with a input_audio_buffer.clear event.
RealtimeServerEventInputAudioBufferCommitted
Returned when an input audio buffer is committed, either by the client or automatically in server VAD mode.
RealtimeServerEventInputAudioBufferSpeechStarted
Sent by the server when in server_vad mode to indicate that speech has been detected in the audio buffer.
RealtimeServerEventInputAudioBufferSpeechStopped
Returned in server_vad mode when the server detects the end of speech in the audio buffer.
RealtimeServerEventOutputAudioBufferCleared
WebRTC Only: Emitted when the output audio buffer is cleared.
RealtimeServerEventOutputAudioBufferStarted
WebRTC Only: Emitted when the server begins streaming audio to the client.
RealtimeServerEventOutputAudioBufferStopped
WebRTC Only: Emitted when the output audio buffer has been completely drained on the server, and no more audio is forthcoming.
RealtimeServerEventRateLimitsUpdated
Emitted at the beginning of a Response to indicate the updated rate limits.
RealtimeServerEventRateLimitsUpdated_RateLimits
RealtimeServerEventResponseAudioDelta
Returned when the model-generated audio is updated.
RealtimeServerEventResponseAudioDone
Returned when the model-generated audio is done.
RealtimeServerEventResponseAudioTranscriptDelta
Returned when the model-generated transcription of audio output is updated.
RealtimeServerEventResponseAudioTranscriptDone
Returned when the model-generated transcription of audio output is done streaming.
RealtimeServerEventResponseContentPartAdded
Returned when a new content part is added to an assistant message item during response generation.
RealtimeServerEventResponseContentPartAdded_Part
The content part that was added.
RealtimeServerEventResponseContentPartDone
Returned when a content part is done streaming in an assistant message item.
RealtimeServerEventResponseContentPartDone_Part
The content part that is done.
RealtimeServerEventResponseCreated
Returned when a new Response is created.
RealtimeServerEventResponseDone
Returned when a Response is done streaming.
RealtimeServerEventResponseFunctionCallArgumentsDelta
Returned when the model-generated function call arguments are updated.
RealtimeServerEventResponseFunctionCallArgumentsDone
Returned when the model-generated function call arguments are done streaming.
RealtimeServerEventResponseOutputItemAdded
Returned when a new Item is created during Response generation.
RealtimeServerEventResponseOutputItemDone
Returned when an Item is done streaming.
RealtimeServerEventResponseTextDelta
Returned when the text value of a “text” content part is updated.
RealtimeServerEventResponseTextDone
Returned when the text value of a “text” content part is done streaming.
RealtimeServerEventSessionCreated
Returned when a Session is created.
RealtimeServerEventSessionUpdated
Returned when a session is updated with a session.update event, unless there is an error.
RealtimeServerEventTranscriptionSessionUpdated
Returned when a transcription session is updated with a transcription_session.update event, unless there is an error.
RealtimeSession
Realtime session object configuration.
RealtimeSessionCreateRequest
Realtime session object configuration.
RealtimeSessionCreateRequest_InputAudioNoiseReduction
Configuration for input audio noise reduction.
RealtimeSessionCreateRequest_InputAudioTranscription
Configuration for input audio transcription, defaults to off and can be set to null to turn off once on.
RealtimeSessionCreateRequest_Tools
RealtimeSessionCreateRequest_Tools_Parameters
Parameters of the function in JSON Schema.
RealtimeSessionCreateRequest_TurnDetection
Configuration for turn detection, ether Server VAD or Semantic VAD.
RealtimeSessionCreateResponse
A new Realtime session configuration, with an ephermeral key.
RealtimeSessionCreateResponse_ClientSecret
Ephemeral key returned by the API.
RealtimeSessionCreateResponse_InputAudioTranscription
Configuration for input audio transcription, defaults to off and can be set to null to turn off once on.
RealtimeSessionCreateResponse_Tools
RealtimeSessionCreateResponse_Tools_Parameters
Parameters of the function in JSON Schema.
RealtimeSessionCreateResponse_TurnDetection
Configuration for turn detection.
RealtimeSession_InputAudioNoiseReduction
Configuration for input audio noise reduction.
RealtimeSession_InputAudioTranscription
Configuration for input audio transcription, defaults to off and can be set to null to turn off once on.
RealtimeSession_Tools
RealtimeSession_Tools_Parameters
Parameters of the function in JSON Schema.
RealtimeSession_TurnDetection
Configuration for turn detection, ether Server VAD or Semantic VAD.
RealtimeTranscriptionSessionCreateRequest
Realtime transcription session object configuration.
RealtimeTranscriptionSessionCreateRequest_InputAudioNoiseReduction
Configuration for input audio noise reduction.
RealtimeTranscriptionSessionCreateRequest_InputAudioTranscription
Configuration for input audio transcription.
RealtimeTranscriptionSessionCreateRequest_TurnDetection
Configuration for turn detection, ether Server VAD or Semantic VAD.
RealtimeTranscriptionSessionCreateResponse
A new Realtime transcription session configuration.
RealtimeTranscriptionSessionCreateResponse_ClientSecret
Ephemeral key returned by the API.
RealtimeTranscriptionSessionCreateResponse_InputAudioTranscription
Configuration of the transcription model.
RealtimeTranscriptionSessionCreateResponse_TurnDetection
Configuration for turn detection.
Reasoning
o-series models only Configuration options for reasoning models.
ReasoningItem
A description of the chain of thought used by a reasoning model while generating a response.
ReasoningItem_Summary
RefusalContent
A refusal from the model.
Response
ResponseAudioDeltaEvent
Emitted when there is a partial audio response.
ResponseAudioDoneEvent
Emitted when the audio response is complete.
ResponseAudioTranscriptDeltaEvent
Emitted when there is a partial transcript of audio.
ResponseAudioTranscriptDoneEvent
Emitted when the full audio transcript is completed.
ResponseCodeInterpreterCallCodeDeltaEvent
Emitted when a partial code snippet is added by the code interpreter.
ResponseCodeInterpreterCallCodeDoneEvent
Emitted when code snippet output is finalized by the code interpreter.
ResponseCodeInterpreterCallCompletedEvent
Emitted when the code interpreter call is completed.
ResponseCodeInterpreterCallInProgressEvent
Emitted when a code interpreter call is in progress.
ResponseCodeInterpreterCallInterpretingEvent
Emitted when the code interpreter is actively interpreting the code snippet.
ResponseCompletedEvent
Emitted when the model response is complete.
ResponseContentPartAddedEvent
Emitted when a new content part is added.
ResponseContentPartDoneEvent
Emitted when a content part is done.
ResponseCreatedEvent
An event that is emitted when a response is created.
ResponseError
An error object returned when the model fails to generate a Response.
ResponseErrorEvent
Emitted when an error occurs.
ResponseFailedEvent
An event that is emitted when a response fails.
ResponseFileSearchCallCompletedEvent
Emitted when a file search call is completed (results found).
ResponseFileSearchCallInProgressEvent
Emitted when a file search call is initiated.
ResponseFileSearchCallSearchingEvent
Emitted when a file search is currently searching.
ResponseFormatJsonObject
JSON object response format.
ResponseFormatJsonSchema
JSON Schema response format.
ResponseFormatJsonSchemaSchema
The schema for the response format, described as a JSON Schema object.
ResponseFormatJsonSchema_JsonSchema
Structured Outputs configuration options, including a JSON Schema.
ResponseFormatText
Default response format.
ResponseFunctionCallArgumentsDeltaEvent
Emitted when there is a partial function-call arguments delta.
ResponseFunctionCallArgumentsDoneEvent
Emitted when function-call arguments are finalized.
ResponseInProgressEvent
Emitted when the response is in progress.
ResponseIncompleteEvent
An event that is emitted when a response finishes as incomplete.
ResponseItemList
A list of Response items.
ResponseOutputItemAddedEvent
Emitted when a new output item is added.
ResponseOutputItemDoneEvent
Emitted when an output item is marked done.
ResponseProperties
ResponseProperties_Text
Configuration options for a text response from the model.
ResponseReasoningSummaryPartAddedEvent
Emitted when a new reasoning summary part is added.
ResponseReasoningSummaryPartAddedEvent_Part
The summary part that was added.
ResponseReasoningSummaryPartDoneEvent
Emitted when a reasoning summary part is completed.
ResponseReasoningSummaryPartDoneEvent_Part
The completed summary part.
ResponseReasoningSummaryTextDeltaEvent
Emitted when a delta is added to a reasoning summary text.
ResponseReasoningSummaryTextDoneEvent
Emitted when a reasoning summary text is completed.
ResponseRefusalDeltaEvent
Emitted when there is a partial refusal text.
ResponseRefusalDoneEvent
Emitted when refusal text is finalized.
ResponseTextAnnotationDeltaEvent
Emitted when a text annotation is added.
ResponseTextDeltaEvent
Emitted when there is an additional text delta.
ResponseTextDoneEvent
Emitted when text content is finalized.
ResponseUsage
Represents token usage details including input tokens, output tokens, a breakdown of output tokens, and the total tokens used.
ResponseUsage_InputTokensDetails
A detailed breakdown of the input tokens.
ResponseUsage_OutputTokensDetails
A detailed breakdown of the output tokens.
ResponseWebSearchCallCompletedEvent
Emitted when a web search call is completed.
ResponseWebSearchCallInProgressEvent
Emitted when a web search call is initiated.
ResponseWebSearchCallSearchingEvent
Emitted when a web search call is executing.
Response_Variant3
Response_Variant3_IncompleteDetails
Details about why the response is incomplete.
RunCompletionUsage
Usage statistics related to the run.
RunObject
Represents an execution run on a thread.
RunObject_IncompleteDetails
Details on why the run is incomplete.
RunObject_LastError
The last error associated with this run.
RunObject_RequiredAction
Details on the action required to continue the run.
RunObject_RequiredAction_SubmitToolOutputs
Details on the tool outputs needed for this run to continue.
RunStepCompletionUsage
Usage statistics related to the run step.
RunStepDeltaObject
Represents a run step delta i.e.
RunStepDeltaObject_Delta
The delta containing the fields that have changed on the run step.
RunStepDeltaStepDetailsMessageCreationObject
Details of the message creation by the run step.
RunStepDeltaStepDetailsMessageCreationObject_MessageCreation
RunStepDeltaStepDetailsToolCallsCodeObject
Details of the Code Interpreter tool call the run step was involved in.
RunStepDeltaStepDetailsToolCallsCodeObject_CodeInterpreter
The Code Interpreter tool call definition.
RunStepDeltaStepDetailsToolCallsCodeOutputImageObject
RunStepDeltaStepDetailsToolCallsCodeOutputImageObject_Image
RunStepDeltaStepDetailsToolCallsCodeOutputLogsObject
Text output from the Code Interpreter tool call as part of a run step.
RunStepDeltaStepDetailsToolCallsFileSearchObject
RunStepDeltaStepDetailsToolCallsFileSearchObject_FileSearch
For now, this is always going to be an empty object.
RunStepDeltaStepDetailsToolCallsFunctionObject
RunStepDeltaStepDetailsToolCallsFunctionObject_Function
The definition of the function that was called.
RunStepDeltaStepDetailsToolCallsObject
Details of the tool call.
RunStepDetailsMessageCreationObject
Details of the message creation by the run step.
RunStepDetailsMessageCreationObject_MessageCreation
RunStepDetailsToolCallsCodeObject
Details of the Code Interpreter tool call the run step was involved in.
RunStepDetailsToolCallsCodeObject_CodeInterpreter
The Code Interpreter tool call definition.
RunStepDetailsToolCallsCodeOutputImageObject
RunStepDetailsToolCallsCodeOutputImageObject_Image
RunStepDetailsToolCallsCodeOutputLogsObject
Text output from the Code Interpreter tool call as part of a run step.
RunStepDetailsToolCallsFileSearchObject
RunStepDetailsToolCallsFileSearchObject_FileSearch
For now, this is always going to be an empty object.
RunStepDetailsToolCallsFileSearchRankingOptionsObject
The ranking options for the file search.
RunStepDetailsToolCallsFileSearchResultObject
A result instance of the file search.
RunStepDetailsToolCallsFileSearchResultObject_Content
RunStepDetailsToolCallsFunctionObject
RunStepDetailsToolCallsFunctionObject_Function
The definition of the function that was called.
RunStepDetailsToolCallsObject
Details of the tool call.
RunStepObject
Represents a step in execution of a run.
RunStepObject_LastError
The last error associated with this run step.
RunStepStreamEvent_Variant1
Occurs when a run step is created.
RunStepStreamEvent_Variant2
Occurs when a run step moves to an in_progress state.
RunStepStreamEvent_Variant3
Occurs when parts of a run step are being streamed.
RunStepStreamEvent_Variant4
Occurs when a run step is completed.
RunStepStreamEvent_Variant5
Occurs when a run step fails.
RunStepStreamEvent_Variant6
Occurs when a run step is cancelled.
RunStepStreamEvent_Variant7
Occurs when a run step expires.
RunStreamEvent_Variant1
Occurs when a new run is created.
RunStreamEvent_Variant2
Occurs when a run moves to a queued status.
RunStreamEvent_Variant3
Occurs when a run moves to an in_progress status.
RunStreamEvent_Variant4
Occurs when a run moves to a requires_action status.
RunStreamEvent_Variant5
Occurs when a run is completed.
RunStreamEvent_Variant6
Occurs when a run ends with status incomplete.
RunStreamEvent_Variant7
Occurs when a run fails.
RunStreamEvent_Variant8
Occurs when a run moves to a cancelling status.
RunStreamEvent_Variant9
Occurs when a run is cancelled.
RunStreamEvent_Variant10
Occurs when a run expires.
RunToolCallObject
Tool call objects
RunToolCallObject_Function
The function definition.
Screenshot
A screenshot action.
Scroll
A scroll action.
StaticChunkingStrategy
StaticChunkingStrategyRequestParam
Customize your own chunking strategy by setting chunk size and chunk overlap.
StaticChunkingStrategyResponseParam
SubmitToolOutputsRunRequest
SubmitToolOutputsRunRequest_ToolOutputs
TextResponseFormatJsonSchema
JSON Schema response format.
ThreadObject
Represents a thread that contains messages.
ThreadObject_ToolResources
A set of resources that are made available to the assistant’s tools in this thread.
ThreadObject_ToolResources_CodeInterpreter
ThreadObject_ToolResources_FileSearch
ToggleCertificatesRequest
ToolChoiceFunction
Use this option to force the model to call a specific function.
ToolChoiceTypes
Indicates that the model should use a built-in tool to generate a response.
TranscriptTextDeltaEvent
Emitted when there is an additional text delta.
TranscriptTextDeltaEvent_Logprobs
TranscriptTextDoneEvent
Emitted when the transcription is complete.
TranscriptTextDoneEvent_Logprobs
TranscriptionSegment
TranscriptionWord
TruncationObject
Controls for how a thread will be truncated prior to the run.
Type
An action to type in text.
UpdateVectorStoreFileAttributesRequest
UpdateVectorStoreRequest
Upload
The Upload object can accept byte chunks in the form of Parts.
UploadCertificateRequest
UploadPart
The upload Part represents a chunk of bytes we can add to an Upload object.
UrlCitationBody
A citation for a web resource used to generate a model response.
UsageAudioSpeechesResult
The aggregated audio speeches usage details of the specific time bucket.
UsageAudioTranscriptionsResult
The aggregated audio transcriptions usage details of the specific time bucket.
UsageCodeInterpreterSessionsResult
The aggregated code interpreter sessions usage details of the specific time bucket.
UsageCompletionsResult
The aggregated completions usage details of the specific time bucket.
UsageEmbeddingsResult
The aggregated embeddings usage details of the specific time bucket.
UsageImagesResult
The aggregated images usage details of the specific time bucket.
UsageModerationsResult
The aggregated moderations usage details of the specific time bucket.
UsageResponse
UsageTimeBucket
UsageVectorStoresResult
The aggregated vector stores usage details of the specific time bucket.
User
Represents an individual user within an organization.
UserDeleteResponse
UserListResponse
UserRoleUpdateRequest
VectorStoreExpirationAfter
The expiration policy for a vector store.
VectorStoreFileAttributes
Set of 16 key-value pairs that can be attached to an object.
VectorStoreFileBatchObject
A batch of files attached to a vector store.
VectorStoreFileBatchObject_FileCounts
VectorStoreFileContentResponse
Represents the parsed content of a vector store file.
VectorStoreFileContentResponse_Data
VectorStoreFileObject
A list of files attached to a vector store.
VectorStoreFileObject_LastError
The last error associated with this vector store file.
VectorStoreObject
A vector store is a collection of processed files can be used by the file_search tool.
VectorStoreObject_FileCounts
VectorStoreSearchRequest
VectorStoreSearchRequest_RankingOptions
Ranking options for search.
VectorStoreSearchResultContentObject
VectorStoreSearchResultItem
VectorStoreSearchResultsPage
Wait
A wait action.
WebSearchLocation
Approximate location parameters for the search.
WebSearchPreviewTool
This tool searches the web for relevant results to use in a response.
WebSearchToolCall
The results of a web search tool call.

Enums§

Annotation
AssistantObject_Tools
AssistantStreamEvent
Represents an event emitted when streaming a Run.
AssistantSupportedModels
AssistantsApiResponseFormatOption
Specifies the format that the model must output.
AssistantsApiToolChoiceOption
Controls which (if any) tool is called by the model.
AudioResponseFormat
The format of the output, in one of these options: json, text, srt, verbose_json, or vtt.
AuditLogEventType
The event type.
ChatCompletionRequestAssistantMessageContentPart
ChatCompletionRequestAssistantMessage_Content
The contents of the assistant message.
ChatCompletionRequestDeveloperMessage_Content
The contents of the developer message.
ChatCompletionRequestMessage
ChatCompletionRequestSystemMessage_Content
The contents of the system message.
ChatCompletionRequestToolMessage_Content
The contents of the tool message.
ChatCompletionRequestUserMessageContentPart
ChatCompletionRequestUserMessage_Content
The contents of the user message.
ChatCompletionRole
The role of the author of a message
ChatCompletionToolChoiceOption
Controls which (if any) tool is called by the model.
ChunkingStrategyRequestParam
The chunking strategy used to chunk the file(s).
CodeInterpreterToolOutput
ComparisonFilter_Value
The value to compare against the attribute key; supports string, number, or boolean types.
ComputerAction
Content
Multi-modal input and output contents.
CreateAssistantRequest_Model
ID of the model to use.
CreateAssistantRequest_Tools
CreateChatCompletionRequest_Variant2_FunctionCall
Deprecated in favor of tool_choice.
CreateChatCompletionRequest_Variant2_ResponseFormat
An object specifying the format that the model must output.
CreateCompletionRequest_Prompt
The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
CreateEmbeddingRequest_Input
Input text to embed, encoded as a string or array of tokens.
CreateEvalCompletionsRunDataSource_InputMessages
CreateEvalCompletionsRunDataSource_InputMessages_Variant1_Template
CreateEvalCompletionsRunDataSource_Source
CreateEvalItem
A chat message that makes up the prompt or context.
CreateEvalJsonlRunDataSource_Source
CreateEvalRequest_DataSourceConfig
The configuration for the data source used for the evaluation runs.
CreateEvalRequest_TestingCriteria
CreateEvalResponsesRunDataSource_InputMessages
CreateEvalResponsesRunDataSource_InputMessages_Variant1_Template
CreateEvalResponsesRunDataSource_Source
CreateEvalRunRequest_DataSource
Details about the run’s data source.
CreateFineTuningJobRequest_Hyperparameters_BatchSize
Number of examples in each batch.
CreateFineTuningJobRequest_Hyperparameters_LearningRateMultiplier
Scaling factor for the learning rate.
CreateFineTuningJobRequest_Hyperparameters_NEpochs
The number of epochs to train the model for.
CreateFineTuningJobRequest_Integrations_Type
CreateImageEditRequest_Image
The image(s) to edit.
CreateMessageRequest_Attachments_Tools
CreateMessageRequest_Content
CreateMessageRequest_Content_Variant2
CreateModerationRequest_Input
Input (or inputs) to classify.
CreateModerationRequest_Input_Variant3
CreateResponse_Variant3_Input
Text, image, or file inputs to the model, used to generate a response.
CreateRunRequest_Model
The ID of the Model to be used to execute this run.
CreateRunRequest_Tools
CreateThreadAndRunRequest_Tools
CreateTranscriptionResponseStreamEvent
CreateVectorStoreRequest_ChunkingStrategy
The chunking strategy used to chunk the file(s).
EasyInputMessage_Content
Text, image, or audio input to the model, used to generate a response.
EvalItem_Content
Text inputs to the model - can contain template strings.
EvalRun_DataSource
Information about the run’s data source.
Eval_DataSourceConfig
Configuration of data sources used in runs of the evaluation.
Eval_TestingCriteria
FileSearchRanker
The ranker to use for the file search.
Filters
FineTuneChatRequestInput_Messages
FineTuneDPOMethod_Hyperparameters_BatchSize
Number of examples in each batch.
FineTuneDPOMethod_Hyperparameters_Beta
The beta value for the DPO method.
FineTuneDPOMethod_Hyperparameters_LearningRateMultiplier
Scaling factor for the learning rate.
FineTuneDPOMethod_Hyperparameters_NEpochs
The number of epochs to train the model for.
FineTunePreferenceRequestInput_Input_Messages
FineTuneSupervisedMethod_Hyperparameters_BatchSize
Number of examples in each batch.
FineTuneSupervisedMethod_Hyperparameters_LearningRateMultiplier
Scaling factor for the learning rate.
FineTuneSupervisedMethod_Hyperparameters_NEpochs
The number of epochs to train the model for.
FineTuningJob_Hyperparameters_BatchSize
Number of examples in each batch.
FineTuningJob_Hyperparameters_LearningRateMultiplier
Scaling factor for the learning rate.
FineTuningJob_Hyperparameters_NEpochs
The number of epochs to train the model for.
Includable
Specify additional output data to include in the model response.
InputContent
InputItem
Item
Content item used to generate a response.
ItemResource
Content item used to generate a response.
MessageContentTextObject_Text_Annotations
MessageDeltaContentTextObject_Text_Annotations
MessageDeltaObject_Delta_Content
MessageObject_Attachments_Tools
MessageObject_Content
MessageStreamEvent
ModelIds
ModelIdsResponses
ModifyAssistantRequest_Model
ID of the model to use.
ModifyAssistantRequest_Tools
OutputContent
OutputItem
PredictionContent_Content
The content that should be matched when generating a model response.
RealtimeClientEvent
A realtime client event.
RealtimeResponseCreateParams_MaxResponseOutputTokens
Maximum number of output tokens for a single assistant response, inclusive of tool calls.
RealtimeResponse_MaxOutputTokens
Maximum number of output tokens for a single assistant response, inclusive of tool calls, that was used in this response.
RealtimeServerEvent
A realtime server event.
RealtimeSessionCreateRequest_MaxResponseOutputTokens
Maximum number of output tokens for a single assistant response, inclusive of tool calls.
RealtimeSessionCreateResponse_MaxResponseOutputTokens
Maximum number of output tokens for a single assistant response, inclusive of tool calls.
RealtimeSession_MaxResponseOutputTokens
Maximum number of output tokens for a single assistant response, inclusive of tool calls.
ReasoningEffort
o-series models only Constrains effort on reasoning for reasoning models.
ResponseErrorCode
The error code for the response.
ResponseProperties_ToolChoice
How the model should select which tool (or tools) to use when generating a response.
ResponseStreamEvent
RunObject_Tools
RunStepDeltaObject_Delta_StepDetails
The details of the run step.
RunStepDeltaStepDetailsToolCallsCodeObject_CodeInterpreter_Outputs
RunStepDeltaStepDetailsToolCallsObject_ToolCalls
RunStepDetailsToolCallsCodeObject_CodeInterpreter_Outputs
RunStepDetailsToolCallsObject_ToolCalls
RunStepObject_StepDetails
The details of the run step.
RunStepStreamEvent
RunStreamEvent
ServiceTier
Specifies the latency tier to use for processing the request.
StopConfiguration
Not supported with latest reasoning models o3 and o4-mini.
TextResponseFormatConfiguration
An object specifying the format that the model must output.
ThreadStreamEvent
Tool
ToolChoiceOptions
Controls which (if any) tool is called by the model.
TranscriptionInclude
UsageTimeBucket_Result
VectorStoreFileObject_ChunkingStrategy
The strategy used to chunk the file.
VectorStoreSearchRequest_Filters
A filter to apply based on file attributes.
VectorStoreSearchRequest_Query
A query string for a search
WebSearchContextSize
High level guidance for the amount of context window space to use for the search.

Type Aliases§

ApproximateLocation_City
ApproximateLocation_Country
ApproximateLocation_Region
ApproximateLocation_Timezone
ChatCompletionMessageToolCalls
The tool calls generated by the model, such as function calls.
ChatCompletionModalities
Output types that you would like the model to generate for this request.
ComputerCallOutputItemParam_AcknowledgedSafetyChecks
ComputerCallOutputItemParam_AcknowledgedSafetyChecks_1
The safety checks reported by the API that have been acknowledged by the developer.
ComputerCallOutputItemParam_Id
ComputerCallOutputItemParam_Status
ComputerCallSafetyCheckParam_Code
ComputerCallSafetyCheckParam_Message
CreateCompletionRequest_Model
ID of the model to use.
CreateEmbeddingRequest_Model
ID of the model to use.
CreateFineTuningJobRequest_Model
The name of the model to fine-tune.
CreateImageEditRequest_Model
The model to use for image generation.
CreateImageRequest_Model
The model to use for image generation.
CreateImageVariationRequest_Model
The model to use for image generation.
CreateModerationRequest_Model
The content moderation model you would like to use.
CreateSpeechRequest_Model
One of the available TTS models: tts-1, tts-1-hd or gpt-4o-mini-tts.
CreateThreadAndRunRequest_Model
The ID of the Model to be used to execute this run.
CreateTranscriptionRequest_Model
ID of the model to use.
CreateTranslationRequest_Model
ID of the model to use.
FileSearchTool_Filters
FileSearchTool_Filters_1
A filter to apply.
FunctionCallOutputItemParam_Id
FunctionCallOutputItemParam_Status
FunctionTool_Description
FunctionTool_Parameters
FunctionTool_Strict
FunctionTool_Strict_1
Whether to enforce strict parameter validation.
InputFileContent_FileId
InputImageContent_FileId
InputImageContent_ImageUrl
InputMessageContentList
A list of one or many input items to the model, containing different content types.
ItemReferenceParam_Type
ModelIdsShared
ParallelToolCalls
Whether to enable parallel function calling during tool use.
RealtimeResponseCreateParams_Conversation
Controls which conversation the response is added to.
ResponseModalities
Output types that you would like the model to generate.
VoiceIdsShared
WebSearchPreviewTool_UserLocation
WebSearchPreviewTool_UserLocation_1
The user’s location.