Expand description
OpenAI API components
Structs§
- AddUploadPart Request 
- AdminApiKey 
- Represents an individual Admin API key in an org.
- AdminApiKey_ Owner 
- ApiKeyList 
- ApproximateLocation 
- AssistantObject 
- Represents an assistantthat can call the model and use tools.
- AssistantObject_ Tool Resources 
- A set of resources that are used by the assistant’s tools.
- AssistantObject_ Tool Resources_ Code Interpreter 
- AssistantObject_ Tool Resources_ File Search 
- AssistantSupported Models 
- AssistantTools Code 
- AssistantTools File Search 
- AssistantTools File Search Type Only 
- AssistantTools File Search_ File Search 
- Overrides for the file search tool.
- AssistantTools Function 
- AssistantsNamed Tool Choice 
- Specifies a tool the model should use.
- AssistantsNamed Tool Choice_ Function 
- AudioResponse Format 
- The format of the output, in one of these options: json,text,srt,verbose_json, orvtt.
- AuditLog 
- A log of a user action or configuration change within this organization.
- AuditLogActor 
- The actor who performed the audit logged action.
- AuditLogActor ApiKey 
- The API Key used to perform the audit logged action.
- AuditLogActor Service Account 
- The service account that performed the audit logged action.
- AuditLogActor Session 
- The session in which the audit logged action was performed.
- AuditLogActor User 
- The user who performed the audit logged action.
- AuditLogEvent Type 
- The event type.
- AuditLog_ ApiKey Created 
- The details for events with this type.
- AuditLog_ ApiKey Created_ Data 
- The payload used to create the API key.
- AuditLog_ ApiKey Deleted 
- The details for events with this type.
- AuditLog_ ApiKey Updated 
- The details for events with this type.
- AuditLog_ ApiKey Updated_ Changes Requested 
- The payload used to update the API key.
- AuditLog_ Certificate Created 
- The details for events with this type.
- AuditLog_ Certificate Deleted 
- The details for events with this type.
- AuditLog_ Certificate Updated 
- The details for events with this type.
- AuditLog_ Certificates Activated 
- The details for events with this type.
- AuditLog_ Certificates Activated_ Certificates 
- AuditLog_ Certificates Deactivated 
- The details for events with this type.
- AuditLog_ Certificates Deactivated_ Certificates 
- AuditLog_ Checkpoint Permission Created 
- The project and fine-tuned model checkpoint that the checkpoint permission was created for.
- AuditLog_ Checkpoint Permission Created_ Data 
- The payload used to create the checkpoint permission.
- AuditLog_ Checkpoint Permission Deleted 
- The details for events with this type.
- AuditLog_ Invite Accepted 
- The details for events with this type.
- AuditLog_ Invite Deleted 
- The details for events with this type.
- AuditLog_ Invite Sent 
- The details for events with this type.
- AuditLog_ Invite Sent_ Data 
- The payload used to create the invite.
- AuditLog_ Login Failed 
- The details for events with this type.
- AuditLog_ Logout Failed 
- The details for events with this type.
- AuditLog_ Organization Updated 
- The details for events with this type.
- AuditLog_ Organization Updated_ Changes Requested 
- The payload used to update the organization settings.
- AuditLog_ Organization Updated_ Changes Requested_ Settings 
- AuditLog_ Project 
- The project that the action was scoped to.
- AuditLog_ Project Archived 
- The details for events with this type.
- AuditLog_ Project Created 
- The details for events with this type.
- AuditLog_ Project Created_ Data 
- The payload used to create the project.
- AuditLog_ Project Updated 
- The details for events with this type.
- AuditLog_ Project Updated_ Changes Requested 
- The payload used to update the project.
- AuditLog_ Rate Limit Deleted 
- The details for events with this type.
- AuditLog_ Rate Limit Updated 
- The details for events with this type.
- AuditLog_ Rate Limit Updated_ Changes Requested 
- The payload used to update the rate limits.
- AuditLog_ Service Account Created 
- The details for events with this type.
- AuditLog_ Service Account Created_ Data 
- The payload used to create the service account.
- AuditLog_ Service Account Deleted 
- The details for events with this type.
- AuditLog_ Service Account Updated 
- The details for events with this type.
- AuditLog_ Service Account Updated_ Changes Requested 
- The payload used to updated the service account.
- AuditLog_ User Added 
- The details for events with this type.
- AuditLog_ User Added_ Data 
- The payload used to add the user to the project.
- AuditLog_ User Deleted 
- The details for events with this type.
- AuditLog_ User Updated 
- The details for events with this type.
- AuditLog_ User Updated_ Changes Requested 
- The payload used to update the user.
- AutoChunking Strategy Request Param 
- The default strategy.
- Batch
- BatchRequest Input 
- The per-line object of the batch input file
- BatchRequest Output 
- The per-line object of the batch output and error files
- BatchRequest Output_ Error 
- For requests that failed with a non-HTTP error, this will contain more information on the cause of the failure.
- BatchRequest Output_ Response 
- BatchRequest Output_ Response_ Body 
- The JSON body of the response
- Batch_Errors 
- Batch_Errors_ Data 
- Batch_Request Counts 
- The request counts for different statuses within the batch.
- Certificate
- Represents an individual certificateuploaded to the organization.
- Certificate_Certificate Details 
- ChatCompletion Deleted 
- ChatCompletion Function Call Option 
- Specifying a particular function via {"name": "my_function"}forces the model to call that function.
- ChatCompletion Functions 
- ChatCompletion List 
- An object representing a list of Chat Completions.
- ChatCompletion Message List 
- An object representing a list of chat completion messages.
- ChatCompletion Message List_ Data 
- ChatCompletion Message List_ Data_ Variant2 
- ChatCompletion Message Tool Call 
- ChatCompletion Message Tool Call Chunk 
- ChatCompletion Message Tool Call Chunk_ Function 
- ChatCompletion Message Tool Call_ Function 
- The function that the model called.
- ChatCompletion Message Tool Calls 
- The tool calls generated by the model, such as function calls.
- ChatCompletion Modalities 
- Output types that you would like the model to generate for this request.
- ChatCompletion Named Tool Choice 
- Specifies a tool the model should use.
- ChatCompletion Named Tool Choice_ Function 
- ChatCompletion Request Assistant Message 
- Messages sent by the model in response to user messages.
- ChatCompletion Request Assistant Message_ Audio 
- Data about a previous audio response from the model.
- ChatCompletion Request Assistant Message_ Function Call 
- Deprecated and replaced by tool_calls.
- ChatCompletion Request Developer Message 
- Developer-provided instructions that the model should follow, regardless of messages sent by the user.
- ChatCompletion Request Function Message 
- ChatCompletion Request Message Content Part Audio 
- Learn about audio inputs.
- ChatCompletion Request Message Content Part Audio_ Input Audio 
- ChatCompletion Request Message Content Part File 
- Learn about file inputs for text generation.
- ChatCompletion Request Message Content Part File_ File 
- ChatCompletion Request Message Content Part Image 
- Learn about image inputs.
- ChatCompletion Request Message Content Part Image_ Image Url 
- ChatCompletion Request Message Content Part Refusal 
- ChatCompletion Request Message Content Part Text 
- Learn about text inputs.
- ChatCompletion Request System Message 
- Developer-provided instructions that the model should follow, regardless of messages sent by the user.
- ChatCompletion Request System Message Content Part 
- ChatCompletion Request Tool Message 
- ChatCompletion Request Tool Message Content Part 
- ChatCompletion Request User Message 
- Messages sent by an end user, containing prompts or additional context information.
- ChatCompletion Response Message 
- A chat completion message generated by the model.
- ChatCompletion Response Message_ Annotations 
- A URL citation when using web search.
- ChatCompletion Response Message_ Annotations_ UrlCitation 
- A URL citation when using web search.
- ChatCompletion Response Message_ Audio 
- If the audio output modality is requested, this object contains data about the audio response from the model.
- ChatCompletion Response Message_ Function Call 
- Deprecated and replaced by tool_calls.
- ChatCompletion Role 
- The role of the author of a message
- ChatCompletion Stream Options 
- Options for streaming response.
- ChatCompletion Stream Response Delta 
- A chat completion delta generated by streamed model responses.
- ChatCompletion Stream Response Delta_ Function Call 
- Deprecated and replaced by tool_calls.
- ChatCompletion Token Logprob 
- ChatCompletion Token Logprob_ TopLogprobs 
- ChatCompletion Tool 
- ChunkingStrategy Request Param 
- The chunking strategy used to chunk the file(s).
- Click
- A click action.
- CodeInterpreter File Output 
- The output of a code interpreter tool call that is a file.
- CodeInterpreter File Output_ Files 
- CodeInterpreter Text Output 
- The output of a code interpreter tool call that is text.
- CodeInterpreter Tool Call 
- 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.
- CompleteUpload Request 
- CompletionUsage 
- Usage statistics for the completion request.
- CompletionUsage_ Completion Tokens Details 
- Breakdown of tokens used in a completion.
- CompletionUsage_ Prompt Tokens Details 
- Breakdown of tokens used in the prompt.
- CompoundFilter 
- Combine multiple filters using andoror.
- ComputerCall Output Item Param 
- The output of a computer tool call.
- ComputerCall Safety Check Param 
- A pending safety check for the computer call.
- ComputerScreenshot Image 
- A computer screenshot image used with the computer use tool.
- ComputerTool Call 
- A tool call to a computer use tool.
- ComputerTool Call Output 
- The output of a computer tool call.
- ComputerTool Call Output Resource 
- ComputerTool Call Output Resource_ Variant2 
- ComputerTool Call Safety Check 
- A pending safety check for the computer call.
- ComputerUsePreview Tool 
- 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.
- CreateAssistant Request 
- CreateAssistant Request_ Tool Resources 
- A set of resources that are used by the assistant’s tools.
- CreateAssistant Request_ Tool Resources_ Code Interpreter 
- CreateAssistant Request_ Tool Resources_ File Search 
- CreateAssistant Request_ Tool Resources_ File Search_ Vector Stores_ Item 
- CreateAssistant Request_ Tool Resources_ File Search_ Vector Stores_ Item_ Chunking Strategy 
- The chunking strategy used to chunk the file(s).
- CreateChat Completion Request 
- CreateChat Completion Request_ Variant2 
- CreateChat Completion Request_ Variant2_ Audio 
- Parameters for audio output.
- CreateChat Completion Request_ Variant2_ Logit Bias 
- Modify the likelihood of specified tokens appearing in the completion.
- CreateChat Completion Request_ Variant2_ Prediction 
- CreateChat Completion Request_ Variant2_ WebSearch Options 
- This tool searches the web for relevant results to use in a response.
- CreateChat Completion Request_ Variant2_ WebSearch Options_ User Location 
- Approximate location parameters for the search.
- CreateChat Completion Response 
- Represents a chat completion response returned by model, based on the provided input.
- CreateChat Completion Response_ Choices 
- CreateChat Completion Response_ Choices_ Logprobs 
- Log probability information for the choice.
- CreateChat Completion Stream Response 
- Represents a streamed chunk of a chat completion response returned by the model, based on the provided input.
- CreateChat Completion Stream Response_ Choices 
- CreateChat Completion Stream Response_ Choices_ Logprobs 
- Log probability information for the choice.
- CreateCompletion Request 
- CreateCompletion Request_ Logit Bias 
- Modify the likelihood of specified tokens appearing in the completion.
- CreateCompletion Response 
- Represents a completion response from the API.
- CreateCompletion Response_ Choices 
- CreateCompletion Response_ Choices_ Logprobs 
- CreateCompletion Response_ Choices_ Logprobs_ TopLogprobs_ Item 
- CreateEmbedding Request 
- CreateEmbedding Response 
- CreateEmbedding Response_ Usage 
- The usage information for the request.
- CreateEval Completions RunData Source 
- A CompletionsRunDataSource object describing a model sampling configuration.
- CreateEval Completions RunData Source_ Input Messages_ Variant1 
- CreateEval Completions RunData Source_ Input Messages_ Variant2 
- CreateEval Completions RunData Source_ Sampling Params 
- CreateEval Custom Data Source Config 
- A CustomDataSourceConfig object that defines the schema for the data source used for the evaluation runs.
- CreateEval Custom Data Source Config_ Item Schema 
- The json schema for each row in the data source.
- CreateEval Item 
- A chat message that makes up the prompt or context.
- CreateEval Item_ Variant1 
- CreateEval Jsonl RunData Source 
- A JsonlRunDataSource object with that specifies a JSONL file that matches the eval
- CreateEval Label Model Grader 
- A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
- CreateEval Logs Data Source Config 
- A data source config which specifies the metadata property of your stored completions query.
- CreateEval Logs Data Source Config_ Metadata 
- Metadata filters for the logs data source.
- CreateEval Request 
- CreateEval Request_ Data Source Config 
- The configuration for the data source used for the evaluation runs.
- CreateEval Responses RunData Source 
- A ResponsesRunDataSource object describing a model sampling configuration.
- CreateEval Responses RunData Source_ Input Messages_ Variant1 
- CreateEval Responses RunData Source_ Input Messages_ Variant2 
- CreateEval Responses RunData Source_ Input Messages_ Variant1_ Template_ Variant1 
- CreateEval Responses RunData Source_ Sampling Params 
- CreateEval RunRequest 
- CreateEval RunRequest_ Data Source 
- Details about the run’s data source.
- CreateFile Request 
- CreateFine Tuning Checkpoint Permission Request 
- CreateFine Tuning JobRequest 
- CreateFine Tuning JobRequest_ Hyperparameters 
- The hyperparameters used for the fine-tuning job.
- CreateFine Tuning JobRequest_ Integrations 
- CreateFine Tuning JobRequest_ Integrations_ Type 
- CreateFine Tuning JobRequest_ Integrations_ Wandb 
- The settings for your integration with Weights and Biases.
- CreateImage Edit Request 
- CreateImage Request 
- CreateImage Variation Request 
- CreateMessage Request 
- CreateMessage Request_ Attachments 
- CreateModel Response Properties 
- CreateModeration Request 
- CreateModeration Request_ Input_ Variant3_ Variant1 
- An object describing an image to classify.
- CreateModeration Request_ Input_ Variant3_ Variant2 
- An object describing text to classify.
- CreateModeration Request_ Input_ Variant3_ Variant1_ Image Url 
- Contains either an image URL or a data URL for a base64 encoded image.
- CreateModeration Response 
- Represents if a given text input is potentially harmful.
- CreateModeration Response_ Results 
- CreateModeration Response_ Results_ Categories 
- A list of the categories, and whether they are flagged or not.
- CreateModeration Response_ Results_ Category Applied Input Types 
- A list of the categories along with the input type(s) that the score applies to.
- CreateModeration Response_ Results_ Category Scores 
- A list of the categories along with their scores as predicted by model.
- CreateResponse 
- CreateResponse_ Variant3 
- CreateRunRequest 
- CreateRunRequest_ Tool Choice 
- CreateRunRequest_ Truncation Strategy 
- CreateSpeech Request 
- CreateThread AndRun Request 
- CreateThread AndRun Request_ Tool Choice 
- CreateThread AndRun Request_ Tool Resources 
- A set of resources that are used by the assistant’s tools.
- CreateThread AndRun Request_ Tool Resources_ Code Interpreter 
- CreateThread AndRun Request_ Tool Resources_ File Search 
- CreateThread AndRun Request_ Truncation Strategy 
- CreateThread Request 
- Options to create a new thread.
- CreateThread Request_ Tool Resources 
- A set of resources that are made available to the assistant’s tools in this thread.
- CreateThread Request_ Tool Resources_ Code Interpreter 
- CreateThread Request_ Tool Resources_ File Search 
- CreateThread Request_ Tool Resources_ File Search_ Vector Stores_ Item 
- CreateThread Request_ Tool Resources_ File Search_ Vector Stores_ Item_ Chunking Strategy 
- The chunking strategy used to chunk the file(s).
- CreateTranscription Request 
- CreateTranscription Response Json 
- Represents a transcription response returned by model, based on the provided input.
- CreateTranscription Response Json_ Logprobs 
- CreateTranscription Response Verbose Json 
- Represents a verbose json transcription response returned by model, based on the provided input.
- CreateTranslation Request 
- CreateTranslation Response Json 
- CreateTranslation Response Verbose Json 
- CreateUpload Request 
- CreateVector Store File Batch Request 
- CreateVector Store File Request 
- CreateVector Store Request 
- CreateVector Store Request_ Chunking Strategy 
- The chunking strategy used to chunk the file(s).
- DeleteAssistant Response 
- DeleteCertificate Response 
- DeleteFile Response 
- DeleteFine Tuning Checkpoint Permission Response 
- DeleteMessage Response 
- DeleteModel Response 
- DeleteThread Response 
- DeleteVector Store File Response 
- DeleteVector Store Response 
- DoneEvent 
- Occurs when a stream ends.
- DoubleClick 
- A double click action.
- Drag
- A drag action.
- EasyInput Message 
- 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.
- EvalCustom Data Source Config 
- A CustomDataSourceConfig which specifies the schema of your itemand optionallysamplenamespaces.
- EvalCustom Data Source Config_ 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.
- EvalJsonl File Content Source 
- EvalJsonl File Content Source_ Content 
- EvalJsonl File Content Source_ Content_ Item 
- EvalJsonl File Content Source_ Content_ Sample 
- EvalJsonl File IdSource 
- EvalLabel Model Grader 
- A LabelModelGrader object which uses a model to assign labels to each item in the evaluation.
- EvalList 
- An object representing a list of evals.
- EvalPython Grader 
- A PythonGrader object that runs a python script on the input.
- EvalResponses Source 
- A EvalResponsesSource object describing a run data source configuration.
- EvalResponses Source_ Metadata 
- Metadata filter for the responses.
- EvalRun
- A schema representing an evaluation run.
- EvalRunList 
- An object representing a list of runs for an evaluation.
- EvalRunOutput Item 
- A schema representing an evaluation run output item.
- EvalRunOutput Item List 
- An object representing a list of output items for an evaluation run.
- EvalRunOutput Item_ Datasource Item 
- Details of the input data source item.
- EvalRunOutput Item_ Results_ Item 
- A result object.
- EvalRunOutput Item_ Sample 
- A sample containing the input and output of the evaluation run.
- EvalRunOutput Item_ Sample_ Input 
- An input message.
- EvalRunOutput Item_ Sample_ Output 
- EvalRunOutput Item_ Sample_ Usage 
- Token usage details for the sample.
- EvalRun_ Data Source 
- Information about the run’s data source.
- EvalRun_ PerModel Usage 
- EvalRun_ PerTesting Criteria Results 
- EvalRun_ Result Counts 
- Counters summarizing the outcomes of the evaluation run.
- EvalScore Model Grader 
- A ScoreModelGrader object that uses a model to assign a score to the input.
- EvalScore Model Grader_ Sampling Params 
- The sampling parameters for the model.
- EvalStored Completions Data Source Config 
- A StoredCompletionsDataSourceConfig which specifies the metadata property of your stored completions query.
- EvalStored Completions Data Source Config_ Schema 
- The json schema for the run data source items.
- EvalStored Completions Source 
- A StoredCompletionsRunDataSource configuration describing a set of filters
- EvalString Check Grader 
- A StringCheckGrader object that performs a string comparison between input and reference using a specified operation.
- EvalText Similarity Grader 
- A TextSimilarityGrader object which grades text based on similarity metrics.
- Eval_Data Source Config 
- Configuration of data sources used in runs of the evaluation.
- FileCitation Body 
- A citation to a file.
- FilePath 
- A path to a file.
- FileSearch Ranker 
- The ranker to use for the file search.
- FileSearch Ranking Options 
- The ranking options for the file search.
- FileSearch Tool 
- A tool that searches for relevant content from uploaded files.
- FileSearch Tool Call 
- The results of a file search tool call.
- FileSearch Tool Call_ Results 
- FineTune Chat Completion Request Assistant Message 
- FineTune Chat Completion Request Assistant Message_ Variant1 
- FineTune Chat Request Input 
- The per-line training example of a fine-tuning input file for chat models using the supervised method.
- FineTune Completion Request Input 
- The per-line training example of a fine-tuning input file for completions models
- FineTuneDPO Method 
- Configuration for the DPO fine-tuning method.
- FineTuneDPO Method_ Hyperparameters 
- The hyperparameters used for the fine-tuning job.
- FineTune Method 
- The method used for fine-tuning.
- FineTune Preference Request Input 
- The per-line training example of a fine-tuning input file for chat models using the dpo method.
- FineTune Preference Request Input_ Input 
- FineTune Preference Request Input_ NonPreferred Completion 
- FineTune Preference Request Input_ Preferred Completion 
- FineTune Supervised Method 
- Configuration for the supervised fine-tuning method.
- FineTune Supervised Method_ Hyperparameters 
- The hyperparameters used for the fine-tuning job.
- FineTuning Checkpoint Permission 
- The checkpoint.permissionobject represents a permission for a fine-tuned model checkpoint.
- FineTuning Integration 
- FineTuning Integration_ Wandb 
- The settings for your integration with Weights and Biases.
- FineTuning Job 
- The fine_tuning.jobobject represents a fine-tuning job that has been created through the API.
- FineTuning JobCheckpoint 
- The fine_tuning.job.checkpointobject represents a model checkpoint for a fine-tuning job that is ready to use.
- FineTuning JobCheckpoint_ Metrics 
- Metrics at the step number during the fine-tuning job.
- FineTuning JobEvent 
- Fine-tuning job event object
- FineTuning JobEvent_ Data 
- The data associated with the event.
- FineTuning Job_ Error 
- For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.
- FineTuning Job_ Hyperparameters 
- The hyperparameters used for the fine-tuning job.
- FineTuning Job_ Integrations 
- FunctionCall Output Item Param 
- 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.
- FunctionTool Call 
- A tool call to run a function.
- FunctionTool Call Output 
- The output of a function tool call.
- FunctionTool Call Output Resource 
- FunctionTool Call Output Resource_ Variant2 
- FunctionTool Call Resource 
- FunctionTool Call Resource_ 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-1only, the token usage information for the image generation.
- ImagesResponse_ Usage_ Input Tokens Details 
- The input tokens detailed information for the image generation.
- Includable
- Specify additional output data to include in the model response.
- InputAudio 
- An audio input to the model.
- InputFile Content 
- A file input to the model.
- InputImage Content 
- An image input to the model.
- InputMessage 
- A message input to the model with a role indicating instruction following hierarchy.
- InputMessage Content List 
- A list of one or many input items to the model, containing different content types.
- InputMessage Resource 
- InputMessage Resource_ Variant2 
- InputText Content 
- A text input to the model.
- Invite
- Represents an individual inviteto the organization.
- InviteDelete Response 
- InviteList Response 
- InviteRequest 
- InviteRequest_ Projects 
- Invite_Projects 
- Item
- Content item used to generate a response.
- ItemReference Param 
- An internal identifier for an item to reference.
- KeyPress
- A collection of keypresses the model would like to perform.
- ListAssistants Response 
- ListAudit Logs Response 
- ListBatches Response 
- ListCertificates Response 
- ListFiles Response 
- ListFine Tuning Checkpoint Permission Response 
- ListFine Tuning JobCheckpoints Response 
- ListFine Tuning JobEvents Response 
- ListMessages Response 
- ListModels Response 
- ListPaginated Fine Tuning Jobs Response 
- ListRunSteps Response 
- ListRuns Response 
- ListVector Store Files Response 
- ListVector Stores Response 
- LogProbProperties 
- A log probability object.
- MessageContent Image File Object 
- References an image File in the content of a message.
- MessageContent Image File Object_ Image File 
- MessageContent Image UrlObject 
- References an image URL in the content of a message.
- MessageContent Image UrlObject_ Image Url 
- MessageContent Refusal Object 
- The refusal content generated by the assistant.
- MessageContent Text Annotations File Citation Object 
- A citation within the message that points to a specific quote from a specific File associated with the assistant or the message.
- MessageContent Text Annotations File Citation Object_ File Citation 
- MessageContent Text Annotations File Path Object 
- A URL for the file that’s generated when the assistant used the
code_interpretertool to generate a file.
- MessageContent Text Annotations File Path Object_ File Path 
- MessageContent Text Object 
- The text content that is part of a message.
- MessageContent Text Object_ Text 
- MessageDelta Content Image File Object 
- References an image File in the content of a message.
- MessageDelta Content Image File Object_ Image File 
- MessageDelta Content Image UrlObject 
- References an image URL in the content of a message.
- MessageDelta Content Image UrlObject_ Image Url 
- MessageDelta Content Refusal Object 
- The refusal content that is part of a message.
- MessageDelta Content Text Annotations File Citation Object 
- A citation within the message that points to a specific quote from a specific File associated with the assistant or the message.
- MessageDelta Content Text Annotations File Citation Object_ File Citation 
- MessageDelta Content Text Annotations File Path Object 
- A URL for the file that’s generated when the assistant used the
code_interpretertool to generate a file.
- MessageDelta Content Text Annotations File Path Object_ File Path 
- MessageDelta Content Text Object 
- The text content that is part of a message.
- MessageDelta Content Text Object_ Text 
- MessageDelta Object 
- Represents a message delta i.e.
- MessageDelta Object_ Delta 
- The delta containing the fields that have changed on the Message.
- MessageObject 
- Represents a message within a thread.
- MessageObject_ Attachments 
- MessageObject_ Incomplete Details 
- On an incomplete message, details about why the message is incomplete.
- MessageRequest Content Text Object 
- The text content that is part of a message.
- MessageStream Event_ Variant1 
- Occurs when a message is created.
- MessageStream Event_ Variant2 
- Occurs when a message moves to an
in_progressstate.
- MessageStream Event_ Variant3 
- Occurs when parts of a Message are being streamed.
- MessageStream Event_ Variant4 
- Occurs when a message is completed.
- MessageStream Event_ 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.
- ModelResponse Properties 
- ModifyAssistant Request 
- ModifyAssistant Request_ Tool Resources 
- A set of resources that are used by the assistant’s tools.
- ModifyAssistant Request_ Tool Resources_ Code Interpreter 
- ModifyAssistant Request_ Tool Resources_ File Search 
- ModifyCertificate Request 
- ModifyMessage Request 
- ModifyRunRequest 
- ModifyThread Request 
- ModifyThread Request_ Tool Resources 
- A set of resources that are made available to the assistant’s tools in this thread.
- ModifyThread Request_ Tool Resources_ Code Interpreter 
- ModifyThread Request_ Tool Resources_ File Search 
- Move
- A mouse move action.
- OpenAIFile 
- The Fileobject represents a document that has been uploaded to OpenAI.
- OtherChunking Strategy Response Param 
- This is returned when the chunking strategy is unknown.
- OutputAudio 
- An audio output from the model.
- OutputMessage 
- An output message from the model.
- OutputText Content 
- A text output from the model.
- ParallelTool Calls 
- Whether to enable parallel function calling during tool use.
- 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.
- ProjectApiKey Delete Response 
- ProjectApiKey List Response 
- ProjectApiKey_ Owner 
- ProjectCreate Request 
- ProjectList Response 
- ProjectRate Limit 
- Represents a project rate limit config.
- ProjectRate Limit List Response 
- ProjectRate Limit Update Request 
- ProjectService Account 
- Represents an individual service account in a project.
- ProjectService Account ApiKey 
- ProjectService Account Create Request 
- ProjectService Account Create Response 
- ProjectService Account Delete Response 
- ProjectService Account List Response 
- ProjectUpdate Request 
- ProjectUser 
- Represents an individual user in a project.
- ProjectUser Create Request 
- ProjectUser Delete Response 
- ProjectUser List Response 
- ProjectUser Update Request 
- RankingOptions 
- RealtimeClient Event Conversation Item Create 
- Add a new Item to the Conversation’s context, including messages, function calls, and function call responses.
- RealtimeClient Event Conversation Item Delete 
- Send this event when you want to remove any item from the conversation history.
- RealtimeClient Event Conversation Item Retrieve 
- Send this event when you want to retrieve the server’s representation of a specific item in the conversation history.
- RealtimeClient Event Conversation Item Truncate 
- Send this event to truncate a previous assistant message’s audio.
- RealtimeClient Event Input Audio Buffer Append 
- Send this event to append audio bytes to the input audio buffer.
- RealtimeClient Event Input Audio Buffer Clear 
- Send this event to clear the audio bytes in the buffer.
- RealtimeClient Event Input Audio Buffer Commit 
- Send this event to commit the user input audio buffer, which will create a new user message item in the conversation.
- RealtimeClient Event Output Audio Buffer Clear 
- WebRTC Only: Emit to cut off the current audio response.
- RealtimeClient Event Response Cancel 
- Send this event to cancel an in-progress response.
- RealtimeClient Event Response Create 
- This event instructs the server to create a Response, which means triggering model inference.
- RealtimeClient Event Session Update 
- Send this event to update the session’s default configuration.
- RealtimeClient Event Transcription Session Update 
- Send this event to update a transcription session.
- RealtimeConversation Item 
- The item to add to the conversation.
- RealtimeConversation Item With Reference 
- The item to add to the conversation.
- RealtimeConversation Item With Reference_ Content 
- RealtimeConversation Item_ Content 
- RealtimeResponse 
- The response resource.
- RealtimeResponse Create Params 
- Create a new Realtime response with these parameters
- RealtimeResponse Create Params_ Tools 
- RealtimeResponse Create Params_ Tools_ Parameters 
- Parameters of the function in JSON Schema.
- RealtimeResponse_ Status Details 
- Additional details about the status.
- RealtimeResponse_ Status Details_ Error 
- A description of the error that caused the response to fail, populated when
the statusisfailed.
- RealtimeResponse_ Usage 
- Usage statistics for the Response, this will correspond to billing.
- RealtimeResponse_ Usage_ Input Token Details 
- Details about the input tokens used in the Response.
- RealtimeResponse_ Usage_ Output Token Details 
- Details about the output tokens used in the Response.
- RealtimeServer Event Conversation Created 
- Returned when a conversation is created.
- RealtimeServer Event Conversation Created_ Conversation 
- The conversation resource.
- RealtimeServer Event Conversation Item Created 
- Returned when a conversation item is created.
- RealtimeServer Event Conversation Item Deleted 
- Returned when an item in the conversation is deleted by the client with a
conversation.item.deleteevent.
- RealtimeServer Event Conversation Item Input Audio Transcription Completed 
- This event is the output of audio transcription for user audio written to the user audio buffer.
- RealtimeServer Event Conversation Item Input Audio Transcription Delta 
- Returned when the text value of an input audio transcription content part is updated.
- RealtimeServer Event Conversation Item Input Audio Transcription Failed 
- Returned when input audio transcription is configured, and a transcription request for a user message failed.
- RealtimeServer Event Conversation Item Input Audio Transcription Failed_ Error 
- Details of the transcription error.
- RealtimeServer Event Conversation Item Retrieved 
- Returned when a conversation item is retrieved with
conversation.item.retrieve.
- RealtimeServer Event Conversation Item Truncated 
- Returned when an earlier assistant audio message item is truncated by the
client with a conversation.item.truncateevent.
- RealtimeServer Event Error 
- Returned when an error occurs, which could be a client problem or a server problem.
- RealtimeServer Event Error_ Error 
- Details of the error.
- RealtimeServer Event Input Audio Buffer Cleared 
- Returned when the input audio buffer is cleared by the client with a
input_audio_buffer.clearevent.
- RealtimeServer Event Input Audio Buffer Committed 
- Returned when an input audio buffer is committed, either by the client or automatically in server VAD mode.
- RealtimeServer Event Input Audio Buffer Speech Started 
- Sent by the server when in server_vadmode to indicate that speech has been detected in the audio buffer.
- RealtimeServer Event Input Audio Buffer Speech Stopped 
- Returned in server_vadmode when the server detects the end of speech in the audio buffer.
- RealtimeServer Event Output Audio Buffer Cleared 
- WebRTC Only: Emitted when the output audio buffer is cleared.
- RealtimeServer Event Output Audio Buffer Started 
- WebRTC Only: Emitted when the server begins streaming audio to the client.
- RealtimeServer Event Output Audio Buffer Stopped 
- WebRTC Only: Emitted when the output audio buffer has been completely drained on the server, and no more audio is forthcoming.
- RealtimeServer Event Rate Limits Updated 
- Emitted at the beginning of a Response to indicate the updated rate limits.
- RealtimeServer Event Rate Limits Updated_ Rate Limits 
- RealtimeServer Event Response Audio Delta 
- Returned when the model-generated audio is updated.
- RealtimeServer Event Response Audio Done 
- Returned when the model-generated audio is done.
- RealtimeServer Event Response Audio Transcript Delta 
- Returned when the model-generated transcription of audio output is updated.
- RealtimeServer Event Response Audio Transcript Done 
- Returned when the model-generated transcription of audio output is done streaming.
- RealtimeServer Event Response Content Part Added 
- Returned when a new content part is added to an assistant message item during response generation.
- RealtimeServer Event Response Content Part Added_ Part 
- The content part that was added.
- RealtimeServer Event Response Content Part Done 
- Returned when a content part is done streaming in an assistant message item.
- RealtimeServer Event Response Content Part Done_ Part 
- The content part that is done.
- RealtimeServer Event Response Created 
- Returned when a new Response is created.
- RealtimeServer Event Response Done 
- Returned when a Response is done streaming.
- RealtimeServer Event Response Function Call Arguments Delta 
- Returned when the model-generated function call arguments are updated.
- RealtimeServer Event Response Function Call Arguments Done 
- Returned when the model-generated function call arguments are done streaming.
- RealtimeServer Event Response Output Item Added 
- Returned when a new Item is created during Response generation.
- RealtimeServer Event Response Output Item Done 
- Returned when an Item is done streaming.
- RealtimeServer Event Response Text Delta 
- Returned when the text value of a “text” content part is updated.
- RealtimeServer Event Response Text Done 
- Returned when the text value of a “text” content part is done streaming.
- RealtimeServer Event Session Created 
- Returned when a Session is created.
- RealtimeServer Event Session Updated 
- Returned when a session is updated with a session.updateevent, unless there is an error.
- RealtimeServer Event Transcription Session Updated 
- Returned when a transcription session is updated with a
transcription_session.updateevent, unless there is an error.
- RealtimeSession 
- Realtime session object configuration.
- RealtimeSession Create Request 
- Realtime session object configuration.
- RealtimeSession Create Request_ Input Audio Noise Reduction 
- Configuration for input audio noise reduction.
- RealtimeSession Create Request_ Input Audio Transcription 
- Configuration for input audio transcription, defaults to off and can be  set
to nullto turn off once on.
- RealtimeSession Create Request_ Tools 
- RealtimeSession Create Request_ Tools_ Parameters 
- Parameters of the function in JSON Schema.
- RealtimeSession Create Request_ Turn Detection 
- Configuration for turn detection, ether Server VAD or Semantic VAD.
- RealtimeSession Create Response 
- A new Realtime session configuration, with an ephermeral key.
- RealtimeSession Create Response_ Client Secret 
- Ephemeral key returned by the API.
- RealtimeSession Create Response_ Input Audio Transcription 
- Configuration for input audio transcription, defaults to off and can be set
to nullto turn off once on.
- RealtimeSession Create Response_ Tools 
- RealtimeSession Create Response_ Tools_ Parameters 
- Parameters of the function in JSON Schema.
- RealtimeSession Create Response_ Turn Detection 
- Configuration for turn detection.
- RealtimeSession_ Input Audio Noise Reduction 
- Configuration for input audio noise reduction.
- RealtimeSession_ Input Audio Transcription 
- Configuration for input audio transcription, defaults to off and can be  set
to nullto turn off once on.
- RealtimeSession_ Tools 
- RealtimeSession_ Tools_ Parameters 
- Parameters of the function in JSON Schema.
- RealtimeSession_ Turn Detection 
- Configuration for turn detection, ether Server VAD or Semantic VAD.
- RealtimeTranscription Session Create Request 
- Realtime transcription session object configuration.
- RealtimeTranscription Session Create Request_ Input Audio Noise Reduction 
- Configuration for input audio noise reduction.
- RealtimeTranscription Session Create Request_ Input Audio Transcription 
- Configuration for input audio transcription.
- RealtimeTranscription Session Create Request_ Turn Detection 
- Configuration for turn detection, ether Server VAD or Semantic VAD.
- RealtimeTranscription Session Create Response 
- A new Realtime transcription session configuration.
- RealtimeTranscription Session Create Response_ Client Secret 
- Ephemeral key returned by the API.
- RealtimeTranscription Session Create Response_ Input Audio Transcription 
- Configuration of the transcription model.
- RealtimeTranscription Session Create Response_ Turn Detection 
- Configuration for turn detection.
- Reasoning
- o-series models only Configuration options for reasoning models.
- ReasoningEffort 
- o-series models only Constrains effort on reasoning 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
- ResponseAudio Delta Event 
- Emitted when there is a partial audio response.
- ResponseAudio Done Event 
- Emitted when the audio response is complete.
- ResponseAudio Transcript Delta Event 
- Emitted when there is a partial transcript of audio.
- ResponseAudio Transcript Done Event 
- Emitted when the full audio transcript is completed.
- ResponseCode Interpreter Call Code Delta Event 
- Emitted when a partial code snippet is added by the code interpreter.
- ResponseCode Interpreter Call Code Done Event 
- Emitted when code snippet output is finalized by the code interpreter.
- ResponseCode Interpreter Call Completed Event 
- Emitted when the code interpreter call is completed.
- ResponseCode Interpreter Call InProgress Event 
- Emitted when a code interpreter call is in progress.
- ResponseCode Interpreter Call Interpreting Event 
- Emitted when the code interpreter is actively interpreting the code snippet.
- ResponseCompleted Event 
- Emitted when the model response is complete.
- ResponseContent Part Added Event 
- Emitted when a new content part is added.
- ResponseContent Part Done Event 
- Emitted when a content part is done.
- ResponseCreated Event 
- An event that is emitted when a response is created.
- ResponseError 
- An error object returned when the model fails to generate a Response.
- ResponseError Code 
- The error code for the response.
- ResponseError Event 
- Emitted when an error occurs.
- ResponseFailed Event 
- An event that is emitted when a response fails.
- ResponseFile Search Call Completed Event 
- Emitted when a file search call is completed (results found).
- ResponseFile Search Call InProgress Event 
- Emitted when a file search call is initiated.
- ResponseFile Search Call Searching Event 
- Emitted when a file search is currently searching.
- ResponseFormat Json Object 
- JSON object response format.
- ResponseFormat Json Schema 
- JSON Schema response format.
- ResponseFormat Json Schema Schema 
- The schema for the response format, described as a JSON Schema object.
- ResponseFormat Json Schema_ Json Schema 
- Structured Outputs configuration options, including a JSON Schema.
- ResponseFormat Text 
- Default response format.
- ResponseFunction Call Arguments Delta Event 
- Emitted when there is a partial function-call arguments delta.
- ResponseFunction Call Arguments Done Event 
- Emitted when function-call arguments are finalized.
- ResponseInProgress Event 
- Emitted when the response is in progress.
- ResponseIncomplete Event 
- An event that is emitted when a response finishes as incomplete.
- ResponseItem List 
- A list of Response items.
- ResponseModalities 
- Output types that you would like the model to generate.
- ResponseOutput Item Added Event 
- Emitted when a new output item is added.
- ResponseOutput Item Done Event 
- Emitted when an output item is marked done.
- ResponseProperties 
- ResponseProperties_ Text 
- Configuration options for a text response from the model.
- ResponseReasoning Summary Part Added Event 
- Emitted when a new reasoning summary part is added.
- ResponseReasoning Summary Part Added Event_ Part 
- The summary part that was added.
- ResponseReasoning Summary Part Done Event 
- Emitted when a reasoning summary part is completed.
- ResponseReasoning Summary Part Done Event_ Part 
- The completed summary part.
- ResponseReasoning Summary Text Delta Event 
- Emitted when a delta is added to a reasoning summary text.
- ResponseReasoning Summary Text Done Event 
- Emitted when a reasoning summary text is completed.
- ResponseRefusal Delta Event 
- Emitted when there is a partial refusal text.
- ResponseRefusal Done Event 
- Emitted when refusal text is finalized.
- ResponseText Annotation Delta Event 
- Emitted when a text annotation is added.
- ResponseText Delta Event 
- Emitted when there is an additional text delta.
- ResponseText Done Event 
- 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_ Input Tokens Details 
- A detailed breakdown of the input tokens.
- ResponseUsage_ Output Tokens Details 
- A detailed breakdown of the output tokens.
- ResponseWebSearch Call Completed Event 
- Emitted when a web search call is completed.
- ResponseWebSearch Call InProgress Event 
- Emitted when a web search call is initiated.
- ResponseWebSearch Call Searching Event 
- Emitted when a web search call is executing.
- Response_Variant3 
- Response_Variant3_ Incomplete Details 
- Details about why the response is incomplete.
- RunCompletionUsage 
- Usage statistics related to the run.
- RunObject
- Represents an execution run on a thread.
- RunObject_Incomplete Details 
- Details on why the run is incomplete.
- RunObject_Last Error 
- The last error associated with this run.
- RunObject_Required Action 
- Details on the action required to continue the run.
- RunObject_Required Action_ Submit Tool Outputs 
- Details on the tool outputs needed for this run to continue.
- RunObject_Tool Choice 
- RunObject_Truncation Strategy 
- RunStepCompletion Usage 
- Usage statistics related to the run step.
- RunStepDelta Object 
- Represents a run step delta i.e.
- RunStepDelta Object_ Delta 
- The delta containing the fields that have changed on the run step.
- RunStepDelta Object_ Delta_ Step Details 
- The details of the run step.
- RunStepDelta Step Details Message Creation Object 
- Details of the message creation by the run step.
- RunStepDelta Step Details Message Creation Object_ Message Creation 
- RunStepDelta Step Details Tool Calls Code Object 
- Details of the Code Interpreter tool call the run step was involved in.
- RunStepDelta Step Details Tool Calls Code Object_ Code Interpreter 
- The Code Interpreter tool call definition.
- RunStepDelta Step Details Tool Calls Code Object_ Code Interpreter_ Outputs 
- RunStepDelta Step Details Tool Calls Code Output Image Object 
- RunStepDelta Step Details Tool Calls Code Output Image Object_ Image 
- RunStepDelta Step Details Tool Calls Code Output Logs Object 
- Text output from the Code Interpreter tool call as part of a run step.
- RunStepDelta Step Details Tool Calls File Search Object 
- RunStepDelta Step Details Tool Calls File Search Object_ File Search 
- For now, this is always going to be an empty object.
- RunStepDelta Step Details Tool Calls Function Object 
- RunStepDelta Step Details Tool Calls Function Object_ Function 
- The definition of the function that was called.
- RunStepDelta Step Details Tool Calls Object 
- Details of the tool call.
- RunStepDetails Message Creation Object 
- Details of the message creation by the run step.
- RunStepDetails Message Creation Object_ Message Creation 
- RunStepDetails Tool Calls Code Object 
- Details of the Code Interpreter tool call the run step was involved in.
- RunStepDetails Tool Calls Code Object_ Code Interpreter 
- The Code Interpreter tool call definition.
- RunStepDetails Tool Calls Code Object_ Code Interpreter_ Outputs 
- RunStepDetails Tool Calls Code Output Image Object 
- RunStepDetails Tool Calls Code Output Image Object_ Image 
- RunStepDetails Tool Calls Code Output Logs Object 
- Text output from the Code Interpreter tool call as part of a run step.
- RunStepDetails Tool Calls File Search Object 
- RunStepDetails Tool Calls File Search Object_ File Search 
- For now, this is always going to be an empty object.
- RunStepDetails Tool Calls File Search Ranking Options Object 
- The ranking options for the file search.
- RunStepDetails Tool Calls File Search Result Object 
- A result instance of the file search.
- RunStepDetails Tool Calls File Search Result Object_ Content 
- RunStepDetails Tool Calls Function Object 
- RunStepDetails Tool Calls Function Object_ Function 
- The definition of the function that was called.
- RunStepDetails Tool Calls Object 
- Details of the tool call.
- RunStepObject 
- Represents a step in execution of a run.
- RunStepObject_ Last Error 
- The last error associated with this run step.
- RunStepObject_ Step Details 
- The details of the run step.
- RunStepStream Event_ Variant1 
- Occurs when a run step is created.
- RunStepStream Event_ Variant2 
- Occurs when a run step moves to
an in_progressstate.
- RunStepStream Event_ Variant3 
- Occurs when parts of a run step are being streamed.
- RunStepStream Event_ Variant4 
- Occurs when a run step is completed.
- RunStepStream Event_ Variant5 
- Occurs when a run step fails.
- RunStepStream Event_ Variant6 
- Occurs when a run step is cancelled.
- RunStepStream Event_ 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 queuedstatus.
- RunStreamEvent_ Variant3 
- Occurs when a run moves to an
in_progressstatus.
- RunStreamEvent_ Variant4 
- Occurs when a run moves to a
requires_actionstatus.
- 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 cancellingstatus.
- RunStreamEvent_ Variant9 
- Occurs when a run is cancelled.
- RunStreamEvent_ Variant10 
- Occurs when a run expires.
- RunToolCall Object 
- Tool call objects
- RunToolCall Object_ Function 
- The function definition.
- Screenshot
- A screenshot action.
- Scroll
- A scroll action.
- ServiceTier 
- Specifies the latency tier to use for processing the request.
- StaticChunking Strategy 
- StaticChunking Strategy Request Param 
- Customize your own chunking strategy by setting chunk size and chunk overlap.
- StaticChunking Strategy Response Param 
- SubmitTool Outputs RunRequest 
- SubmitTool Outputs RunRequest_ Tool Outputs 
- TextResponse Format Json Schema 
- JSON Schema response format.
- ThreadObject 
- Represents a thread that contains messages.
- ThreadObject_ Tool Resources 
- A set of resources that are made available to the assistant’s tools in this thread.
- ThreadObject_ Tool Resources_ Code Interpreter 
- ThreadObject_ Tool Resources_ File Search 
- ToggleCertificates Request 
- ToolChoice Function 
- Use this option to force the model to call a specific function.
- ToolChoice Options 
- Controls which (if any) tool is called by the model.
- ToolChoice Types 
- Indicates that the model should use a built-in tool to generate a response.
- TranscriptText Delta Event 
- Emitted when there is an additional text delta.
- TranscriptText Delta Event_ Logprobs 
- TranscriptText Done Event 
- Emitted when the transcription is complete.
- TranscriptText Done Event_ Logprobs 
- TranscriptionInclude 
- TranscriptionSegment 
- TranscriptionWord 
- TruncationObject 
- Controls for how a thread will be truncated prior to the run.
- Type
- An action to type in text.
- UpdateVector Store File Attributes Request 
- UpdateVector Store Request 
- UpdateVector Store Request_ Expires After 
- Upload
- The Upload object can accept byte chunks in the form of Parts.
- UploadCertificate Request 
- UploadPart 
- The upload Part represents a chunk of bytes we can add to an Upload object.
- Upload_File 
- UrlCitationBody 
- A citation for a web resource used to generate a model response.
- UsageAudio Speeches Result 
- The aggregated audio speeches usage details of the specific time bucket.
- UsageAudio Transcriptions Result 
- The aggregated audio transcriptions usage details of the specific time bucket.
- UsageCode Interpreter Sessions Result 
- The aggregated code interpreter sessions usage details of the specific time bucket.
- UsageCompletions Result 
- The aggregated completions usage details of the specific time bucket.
- UsageEmbeddings Result 
- The aggregated embeddings usage details of the specific time bucket.
- UsageImages Result 
- The aggregated images usage details of the specific time bucket.
- UsageModerations Result 
- The aggregated moderations usage details of the specific time bucket.
- UsageResponse 
- UsageTime Bucket 
- UsageVector Stores Result 
- The aggregated vector stores usage details of the specific time bucket.
- User
- Represents an individual userwithin an organization.
- UserDelete Response 
- UserList Response 
- UserRole Update Request 
- VectorStore Expiration After 
- The expiration policy for a vector store.
- VectorStore File Attributes 
- Set of 16 key-value pairs that can be attached to an object.
- VectorStore File Batch Object 
- A batch of files attached to a vector store.
- VectorStore File Batch Object_ File Counts 
- VectorStore File Content Response 
- Represents the parsed content of a vector store file.
- VectorStore File Content Response_ Data 
- VectorStore File Object 
- A list of files attached to a vector store.
- VectorStore File Object_ Chunking Strategy 
- The strategy used to chunk the file.
- VectorStore File Object_ Last Error 
- The last error associated with this vector store file.
- VectorStore Object 
- A vector store is a collection of processed files can be used by the
file_searchtool.
- VectorStore Object_ File Counts 
- VectorStore Search Request 
- VectorStore Search Request_ Ranking Options 
- Ranking options for search.
- VectorStore Search Result Content Object 
- VectorStore Search Result Item 
- VectorStore Search Results Page 
- Wait
- A wait action.
- WebSearchContext Size 
- High level guidance for the amount of context window space to use for the search.
- WebSearchLocation 
- Approximate location parameters for the search.
- WebSearchPreview Tool 
- This tool searches the web for relevant results to use in a response.
- WebSearchTool Call 
- The results of a web search tool call.
Enums§
- Annotation
- AssistantObject_ Tools 
- AssistantStream Event 
- Represents an event emitted when streaming a Run.
- AssistantsApiResponse Format Option 
- Specifies the format that the model must output.
- AssistantsApiTool Choice Option 
- Controls which (if any) tool is called by the model.
- ChatCompletion Request Assistant Message Content Part 
- ChatCompletion Request Assistant Message_ Content 
- The contents of the assistant message.
- ChatCompletion Request Developer Message_ Content 
- The contents of the developer message.
- ChatCompletion Request Message 
- ChatCompletion Request System Message_ Content 
- The contents of the system message.
- ChatCompletion Request Tool Message_ Content 
- The contents of the tool message.
- ChatCompletion Request User Message Content Part 
- ChatCompletion Request User Message_ Content 
- The contents of the user message.
- ChatCompletion Tool Choice Option 
- Controls which (if any) tool is called by the model.
- CodeInterpreter Tool Output 
- ComparisonFilter_ Value 
- The value to compare against the attribute key; supports string, number, or boolean types.
- CompoundFilter_ Filters 
- ComputerAction 
- ComputerCall Output Item Param_ Acknowledged Safety Checks 
- Content
- Multi-modal input and output contents.
- CreateAssistant Request_ Model 
- ID of the model to use.
- CreateAssistant Request_ Tools 
- CreateChat Completion Request_ Variant2_ Function Call 
- Deprecated in favor of tool_choice.
- CreateChat Completion Request_ Variant2_ Response Format 
- An object specifying the format that the model must output.
- CreateCompletion Request_ Prompt 
- The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.
- CreateEmbedding Request_ Input 
- Input text to embed, encoded as a string or array of tokens.
- CreateEval Completions RunData Source_ Input Messages 
- CreateEval Completions RunData Source_ Input Messages_ Variant1_ Template 
- CreateEval Completions RunData Source_ Source 
- CreateEval Jsonl RunData Source_ Source 
- CreateEval Request_ Testing Criteria 
- CreateEval Responses RunData Source_ Input Messages 
- CreateEval Responses RunData Source_ Input Messages_ Variant1_ Template 
- CreateEval Responses RunData Source_ Source 
- CreateFine Tuning JobRequest_ Hyperparameters_ Batch Size 
- Number of examples in each batch.
- CreateFine Tuning JobRequest_ Hyperparameters_ Learning Rate Multiplier 
- Scaling factor for the learning rate.
- CreateFine Tuning JobRequest_ Hyperparameters_ NEpochs 
- The number of epochs to train the model for.
- CreateImage Edit Request_ Image 
- The image(s) to edit.
- CreateMessage Request_ Attachments_ Tools 
- CreateMessage Request_ Content 
- CreateMessage Request_ Content_ Variant2 
- CreateModeration Request_ Input 
- Input (or inputs) to classify.
- CreateModeration Request_ 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 
- CreateThread AndRun Request_ Tools 
- CreateTranscription Response Stream Event 
- EasyInput Message_ 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.
- Eval_Testing Criteria 
- FileSearch Tool_ Filters 
- Filters
- FineTune Chat Request Input_ Messages 
- FineTuneDPO Method_ Hyperparameters_ Batch Size 
- Number of examples in each batch.
- FineTuneDPO Method_ Hyperparameters_ Beta 
- The beta value for the DPO method.
- FineTuneDPO Method_ Hyperparameters_ Learning Rate Multiplier 
- Scaling factor for the learning rate.
- FineTuneDPO Method_ Hyperparameters_ NEpochs 
- The number of epochs to train the model for.
- FineTune Preference Request Input_ Input_ Messages 
- FineTune Supervised Method_ Hyperparameters_ Batch Size 
- Number of examples in each batch.
- FineTune Supervised Method_ Hyperparameters_ Learning Rate Multiplier 
- Scaling factor for the learning rate.
- FineTune Supervised Method_ Hyperparameters_ NEpochs 
- The number of epochs to train the model for.
- FineTuning Job_ Hyperparameters_ Batch Size 
- Number of examples in each batch.
- FineTuning Job_ Hyperparameters_ Learning Rate Multiplier 
- Scaling factor for the learning rate.
- FineTuning Job_ Hyperparameters_ NEpochs 
- The number of epochs to train the model for.
- FunctionTool_ Parameters 
- FunctionTool_ Strict 
- InputContent 
- InputItem 
- ItemResource 
- Content item used to generate a response.
- MessageContent Text Object_ Text_ Annotations 
- MessageDelta Content Text Object_ Text_ Annotations 
- MessageDelta Object_ Delta_ Content 
- MessageObject_ Attachments_ Tools 
- MessageObject_ Content 
- MessageStream Event 
- ModelIds 
- ModelIdsResponses 
- ModifyAssistant Request_ Model 
- ID of the model to use.
- ModifyAssistant Request_ Tools 
- OutputContent 
- OutputItem 
- PredictionContent_ Content 
- The content that should be matched when generating a model response.
- RealtimeClient Event 
- A realtime client event.
- RealtimeResponse Create Params_ MaxResponse Output Tokens 
- Maximum number of output tokens for a single assistant response, inclusive of tool calls.
- RealtimeResponse_ MaxOutput Tokens 
- Maximum number of output tokens for a single assistant response, inclusive of tool calls, that was used in this response.
- RealtimeServer Event 
- A realtime server event.
- RealtimeSession Create Request_ MaxResponse Output Tokens 
- Maximum number of output tokens for a single assistant response, inclusive of tool calls.
- RealtimeSession Create Response_ MaxResponse Output Tokens 
- Maximum number of output tokens for a single assistant response, inclusive of tool calls.
- RealtimeSession_ MaxResponse Output Tokens 
- Maximum number of output tokens for a single assistant response, inclusive of tool calls.
- ResponseProperties_ Tool Choice 
- How the model should select which tool (or tools) to use when generating a response.
- ResponseStream Event 
- RunObject_Tools 
- RunStepDelta Step Details Tool Calls Object_ Tool Calls 
- RunStepDetails Tool Calls Object_ Tool Calls 
- RunStepStream Event 
- RunStreamEvent 
- StopConfiguration 
- Not supported with latest reasoning models o3ando4-mini.
- TextResponse Format Configuration 
- An object specifying the format that the model must output.
- ThreadStream Event 
- Tool
- UsageTime Bucket_ Result 
- VectorStore Search Request_ Filters 
- A filter to apply based on file attributes.
- VectorStore Search Request_ Query 
- A query string for a search
- WebSearchPreview Tool_ User Location 
Type Aliases§
- ApproximateLocation_ City 
- ApproximateLocation_ Country 
- ApproximateLocation_ Region 
- ApproximateLocation_ Timezone 
- ComputerCall Output Item Param_ Id 
- ComputerCall Output Item Param_ Status 
- ComputerCall Safety Check Param_ Code 
- ComputerCall Safety Check Param_ Message 
- CreateCompletion Request_ Model 
- ID of the model to use.
- CreateEmbedding Request_ Model 
- ID of the model to use.
- CreateFine Tuning JobRequest_ Model 
- The name of the model to fine-tune.
- CreateImage Edit Request_ Model 
- The model to use for image generation.
- CreateImage Request_ Model 
- The model to use for image generation.
- CreateImage Variation Request_ Model 
- The model to use for image generation.
- CreateModeration Request_ Model 
- The content moderation model you would like to use.
- CreateSpeech Request_ Model 
- One of the available TTS models: tts-1,tts-1-hdorgpt-4o-mini-tts.
- CreateThread AndRun Request_ Model 
- The ID of the Model to be used to execute this run.
- CreateTranscription Request_ Model 
- ID of the model to use.
- CreateTranslation Request_ Model 
- ID of the model to use.
- FunctionCall Output Item Param_ Id 
- FunctionCall Output Item Param_ Status 
- FunctionTool_ Description 
- InputFile Content_ File Id 
- InputImage Content_ File Id 
- InputImage Content_ Image Url 
- ItemReference Param_ Type 
- ModelIdsShared 
- RealtimeResponse Create Params_ Conversation 
- Controls which conversation the response is added to.
- VoiceIdsShared