gpt-4o-search-preview
Model Overview
How to Make a Call
API Schema
post
Body
modelstring · enumRequiredPossible values:
max_tokensnumber · min: 1Optional
The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
streambooleanOptionalDefault:
If set to True, the model response data will be streamed to the client as it is generated using server-sent events.
falseResponses
200Success
idstringRequiredExample:
A unique identifier for the chat completion.
chatcmpl-CQ9FPg3osank0dx0k46Z53LTqtXMlobjectstring · enumRequiredExample:
The object type.
chat.completionPossible values: creatednumberRequiredExample:
The Unix timestamp (in seconds) of when the chat completion was created.
1762343744modelstringRequiredExample:
The model used for the chat completion.
gpt-4o-search-previewpost
/v1/chat/completions200Success
Code Example
Last updated
Was this helpful?