Create a model response
Creates a model response. Provide text or image inputs to generate text or JSON outputs. Have the model call your own custom code or use built-in tools like web search or file search to use your own data as input for the model's response.
Headers
Optional beta features to enable for this request.
Request body
Response
OK
Changes
Changed in 4 of the 31 revisions of this API.241411
- ●
added the new
fastenum value to theallOf[BetaModelResponseProperties]/service_tier/anyOf[subschema #1]/response property for the response status200(media type: application/json)response-property-enum-value-added
- ●
added the new
fastenum value to theanyOf[BetaResponseCompletedEvent]/response/allOf[BetaModelResponseProperties]/service_tier/anyOf[subschema #1]/response property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
fastenum value to theanyOf[BetaResponseCreatedEvent]/response/allOf[BetaModelResponseProperties]/service_tier/anyOf[subschema #1]/response property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
fastenum value to theanyOf[BetaResponseFailedEvent]/response/allOf[BetaModelResponseProperties]/service_tier/anyOf[subschema #1]/response property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
fastenum value to theanyOf[BetaResponseInProgressEvent]/response/allOf[BetaModelResponseProperties]/service_tier/anyOf[subschema #1]/response property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
fastenum value to theanyOf[BetaResponseIncompleteEvent]/response/allOf[BetaModelResponseProperties]/service_tier/anyOf[subschema #1]/response property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
fastenum value to theanyOf[subschema #51: ResponseQueuedEvent]/response/allOf[BetaModelResponseProperties]/service_tier/anyOf[subschema #1]/response property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ○
added the new
fastenum value to the request propertyallOf[BetaCreateModelResponseProperties]/allOf[BetaModelResponseProperties]/service_tier/anyOf[subschema #1]/request-property-enum-value-added
- ●
- ▲
response property
allOf[BetaModelResponseProperties]/prompt_cache_keylist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
allOf[BetaModelResponseProperties]/safety_identifierlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseCompletedEvent]/response/allOf[BetaModelResponseProperties]/prompt_cache_keylist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseCompletedEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierlist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseCreatedEvent]/response/allOf[BetaModelResponseProperties]/prompt_cache_keylist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseCreatedEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierlist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseFailedEvent]/response/allOf[BetaModelResponseProperties]/prompt_cache_keylist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseFailedEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierlist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseInProgressEvent]/response/allOf[BetaModelResponseProperties]/prompt_cache_keylist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseInProgressEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierlist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseIncompleteEvent]/response/allOf[BetaModelResponseProperties]/prompt_cache_keylist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[BetaResponseIncompleteEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierlist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #51: ResponseQueuedEvent]/response/allOf[BetaModelResponseProperties]/prompt_cache_keylist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
response property
anyOf[subschema #51: ResponseQueuedEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierlist-of-types was widened by adding typesnullto media typetext/event-streamof response200response-property-list-of-types-widened
- ▲
the
allOf[BetaModelResponseProperties]/safety_identifierresponse property's maxLength was unset from64for the response status200(media type: application/json)response-property-max-length-unset
- ▲
the
anyOf[BetaResponseCompletedEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierresponse property's maxLength was unset from64for the response status200(media type: text/event-stream)response-property-max-length-unset
- ▲
the
anyOf[BetaResponseCreatedEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierresponse property's maxLength was unset from64for the response status200(media type: text/event-stream)response-property-max-length-unset
- ▲
the
anyOf[BetaResponseFailedEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierresponse property's maxLength was unset from64for the response status200(media type: text/event-stream)response-property-max-length-unset
- ▲
the
anyOf[BetaResponseInProgressEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierresponse property's maxLength was unset from64for the response status200(media type: text/event-stream)response-property-max-length-unset
- ▲
the
anyOf[BetaResponseIncompleteEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierresponse property's maxLength was unset from64for the response status200(media type: text/event-stream)response-property-max-length-unset
- ▲
the
anyOf[subschema #51: ResponseQueuedEvent]/response/allOf[BetaModelResponseProperties]/safety_identifierresponse property's maxLength was unset from64for the response status200(media type: text/event-stream)response-property-max-length-unset
- ●
added the new
data_residency_mismatchenum value to theallOf[subschema #3]/error/anyOf[subschema #1]/coderesponse property for the response status200(media type: application/json)response-property-enum-value-added
- ●
added the new
data_residency_mismatchenum value to theanyOf[BetaResponseCompletedEvent]/response/allOf[subschema #3]/error/anyOf[subschema #1]/coderesponse property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
data_residency_mismatchenum value to theanyOf[BetaResponseCreatedEvent]/response/allOf[subschema #3]/error/anyOf[subschema #1]/coderesponse property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
data_residency_mismatchenum value to theanyOf[BetaResponseFailedEvent]/response/allOf[subschema #3]/error/anyOf[subschema #1]/coderesponse property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
data_residency_mismatchenum value to theanyOf[BetaResponseInProgressEvent]/response/allOf[subschema #3]/error/anyOf[subschema #1]/coderesponse property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
data_residency_mismatchenum value to theanyOf[BetaResponseIncompleteEvent]/response/allOf[subschema #3]/error/anyOf[subschema #1]/coderesponse property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ●
added the new
data_residency_mismatchenum value to theanyOf[subschema #51: ResponseQueuedEvent]/response/allOf[subschema #3]/error/anyOf[subschema #1]/coderesponse property for the response status200(media type: text/event-stream)response-property-enum-value-added
- ○
request property
allOf[BetaCreateModelResponseProperties]/allOf[BetaModelResponseProperties]/prompt_cache_keylist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ○
request property
allOf[BetaCreateModelResponseProperties]/allOf[BetaModelResponseProperties]/safety_identifierlist-of-types was widened by adding typesnullto media typeapplication/jsonrequest-property-list-of-types-widened
- ▲
- ▲
removed
subschema #1subschema #2subschema #3from theallOf[subschema #3]/input/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsrequest propertyanyOflistrequest-property-any-of-removed
- ▲
the
allOf[subschema #3]/input/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsrequest property type/format changed from/toarray/request-property-type-changed
- ▲
the
allOf[subschema #3]/instructions/anyOf[subschema #1]/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsresponse's property type/format changed from/toarray/for status200(media type: application/json)response-property-type-changed
- ○
removed
subschema #1subschema #2subschema #3from theallOf[subschema #3]/instructions/anyOf[subschema #1]/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsresponse propertyanyOflist for the response status200(media type: application/json)response-property-any-of-removed
- ○
removed
subschema #1subschema #2subschema #3from theanyOf[BetaResponseCompletedEvent]/response/allOf[subschema #3]/instructions/anyOf[subschema #1]/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsresponse propertyanyOflist for the response status200(media type: text/event-stream)response-property-any-of-removed
- ○
removed
subschema #1subschema #2subschema #3from theanyOf[BetaResponseCreatedEvent]/response/allOf[subschema #3]/instructions/anyOf[subschema #1]/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsresponse propertyanyOflist for the response status200(media type: text/event-stream)response-property-any-of-removed
- ○
removed
subschema #1subschema #2subschema #3from theanyOf[BetaResponseFailedEvent]/response/allOf[subschema #3]/instructions/anyOf[subschema #1]/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsresponse propertyanyOflist for the response status200(media type: text/event-stream)response-property-any-of-removed
- ○
removed
subschema #1subschema #2subschema #3from theanyOf[BetaResponseInProgressEvent]/response/allOf[subschema #3]/instructions/anyOf[subschema #1]/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsresponse propertyanyOflist for the response status200(media type: text/event-stream)response-property-any-of-removed
- ○
removed
subschema #1subschema #2subschema #3from theanyOf[BetaResponseIncompleteEvent]/response/allOf[subschema #3]/instructions/anyOf[subschema #1]/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsresponse propertyanyOflist for the response status200(media type: text/event-stream)response-property-any-of-removed
- ○
removed
subschema #1subschema #2subschema #3from theanyOf[subschema #51: ResponseQueuedEvent]/response/allOf[subschema #3]/instructions/anyOf[subschema #1]/anyOf[subschema #2: Input item list]/items/anyOf[subschema #2: Item]/anyOf[BetaMultiAgentCallOutputItemParam]/output/items/annotationsresponse propertyanyOflist for the response status200(media type: text/event-stream)response-property-any-of-removed
- ▲
- ○
endpoint added
endpoint-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○