Azure OpenAI Service · Schema
OpenAI.CreateResponse
Artificial IntelligenceEmbeddingsGPTGenerative AILLMOpenAI
Properties
| Name | Type | Description |
|---|---|---|
| metadata | object | |
| top_logprobs | object | |
| temperature | object | |
| top_p | object | |
| user | string | This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations. A stable identifier for your end-users. Used to boost cach |
| safety_identifier | string | A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies. The IDs should be a string that uniquely identifies each user, with a maximum length of |
| prompt_cache_key | string | Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching). |
| prompt_cache_retention | object | |
| previous_response_id | object | |
| model | string | Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [model guid |
| reasoning | object | |
| background | object | |
| max_tool_calls | object | |
| text | object | |
| tools | object | An array of tools the model may call while generating a response. You can specify which tool to use by setting the `tool_choice` parameter. The two categories of tools you can provide the model are: - |
| tool_choice | object | |
| prompt | object | |
| truncation | object | |
| input | object | |
| include | object | |
| parallel_tool_calls | object | |
| store | object | |
| instructions | object | |
| stream | object | |
| stream_options | object | |
| conversation | object | |
| context_management | object | Context management configuration for this request. |
| max_output_tokens | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/microsoft-azure-openai/json-schema/microsoft-azure-openai-open-ai-create-response-schema.json",
"title": "OpenAI.CreateResponse",
"x-generated": "2026-11-04",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/microsoft-azure-openai-v1-openapi.yml#/components/schemas/OpenAI.CreateResponse",
"type": "object",
"properties": {
"metadata": {
"anyOf": [
{
"$ref": "#/$defs/OpenAI.Metadata"
},
{
"type": "null"
}
]
},
"top_logprobs": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"temperature": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": 1
},
"top_p": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": 1
},
"user": {
"type": "string",
"description": "This field is being replaced by `safety_identifier` and `prompt_cache_key`. Use `prompt_cache_key` instead to maintain caching optimizations.\n A stable identifier for your end-users.\n Used to boost cache hit rates by better bucketing similar requests and to help OpenAI detect and prevent abuse. [Learn more](/docs/guides/safety-best-practices#safety-identifiers).",
"deprecated": true
},
"safety_identifier": {
"type": "string",
"maxLength": 64,
"description": "A stable identifier used to help detect users of your application that may be violating OpenAI's usage policies.\n The IDs should be a string that uniquely identifies each user, with a maximum length of 64 characters. We recommend hashing their username or email address, in order to avoid sending us any identifying information. [Learn more](/docs/guides/safety-best-practices#safety-identifiers)."
},
"prompt_cache_key": {
"type": "string",
"description": "Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the `user` field. [Learn more](/docs/guides/prompt-caching)."
},
"prompt_cache_retention": {
"anyOf": [
{
"type": "string",
"enum": [
"in_memory",
"24h"
]
},
{
"type": "null"
}
]
},
"previous_response_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"model": {
"type": "string",
"description": "Model ID used to generate the response, like `gpt-4o` or `o3`. OpenAI\n offers a wide range of models with different capabilities, performance\n characteristics, and price points. Refer to the [model guide](/docs/models)\n to browse and compare available models."
},
"reasoning": {
"anyOf": [
{
"$ref": "#/$defs/OpenAI.Reasoning"
},
{
"type": "null"
}
]
},
"background": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"max_tool_calls": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
},
"text": {
"$ref": "#/$defs/OpenAI.ResponseTextParam"
},
"tools": {
"$ref": "#/$defs/OpenAI.ToolsArray",
"description": "An array of tools the model may call while generating a response. You\ncan specify which tool to use by setting the `tool_choice` parameter.\n\nThe two categories of tools you can provide the model are:\n\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\n model's capabilities, like file search.\n- **Function calls (custom tools)**: Functions that are defined by you,\n enabling the model to call your own code."
},
"tool_choice": {
"oneOf": [
{
"$ref": "#/$defs/OpenAI.ToolChoiceOptions"
},
{
"$ref": "#/$defs/OpenAI.ToolChoiceParam"
}
]
},
"prompt": {
"$ref": "#/$defs/OpenAI.Prompt"
},
"truncation": {
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"disabled"
]
},
{
"type": "null"
}
],
"default": "disabled"
},
"input": {
"$ref": "#/$defs/OpenAI.InputParam"
},
"include": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/OpenAI.IncludeEnum"
}
},
{
"type": "null"
}
]
},
"parallel_tool_calls": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": true
},
"store": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
],
"default": true
},
"instructions": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"stream": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "null"
}
]
},
"stream_options": {
"anyOf": [
{
"$ref": "#/$defs/OpenAI.ResponseStreamOptions"
},
{
"type": "null"
}
]
},
"conversation": {
"anyOf": [
{
"$ref": "#/$defs/OpenAI.ConversationParam"
},
{
"type": "null"
}
]
},
"context_management": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/$defs/OpenAI.ContextManagementParam"
}
},
{
"type": "null"
}
],
"description": "Context management configuration for this request."
},
"max_output_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"$defs": {
"OpenAI.ContextManagementParam": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"description": "The context management entry type. Currently only 'compaction' is supported."
},
"compact_threshold": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
}
},
"OpenAI.ConversationParam": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/OpenAI.ConversationParam-2"
}
],
"description": "The conversation that this response belongs to. Items from this conversation are prepended to `input_items` for this response request.\nInput items and output items from this response are automatically added to this conversation after this response completes."
},
"OpenAI.ConversationParam-2": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The unique ID of the conversation."
}
},
"description": "The conversation that this response belongs to.",
"title": "Conversation object"
},
"OpenAI.FileInputDetail": {
"type": "string",
"enum": [
"low",
"high"
]
},
"OpenAI.ImageDetail": {
"type": "string",
"enum": [
"low",
"high",
"auto",
"original"
]
},
"OpenAI.IncludeEnum": {
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"file_search_call.results",
"web_search_call.results",
"web_search_call.action.sources",
"message.input_image.image_url",
"computer_call_output.output.image_url",
"code_interpreter_call.outputs",
"reasoning.encrypted_content",
"message.output_text.logprobs"
]
}
],
"description": "Specify additional output data to include in the model response. Currently supported values are:\n- `web_search_call.results`: Include the search results of the web search tool call.\n- `web_search_call.action.sources`: Include the sources of the web search tool call.\n- `code_interpreter_call.outputs`: Includes the outputs of python code execution in code interpreter tool call items.\n- `computer_call_output.output.image_url`: Include image urls from the computer call output.\n- `file_search_call.results`: Include the search results of the file search tool call.\n- `message.input_image.image_url`: Include image urls from the input message.\n- `message.output_text.logprobs`: Include logprobs with assistant messages.\n- `reasoning.encrypted_content`: Includes an encrypted version of reasoning tokens in reasoning item outputs. This enables reasoning items to be used in multi-turn conversations when using the Responses API statelessly (like when the `store` parameter is set to `false`, or when an organization is enrolled in the zero data retention program)."
},
"OpenAI.InputFileContent": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"enum": [
"input_file"
],
"description": "The type of the input item. Always `input_file`.",
"x-stainless-const": true,
"default": "input_file"
},
"file_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"filename": {
"type": "string",
"description": "The name of the file to be sent to the model."
},
"file_data": {
"type": "string",
"description": "The content of the file to be sent to the model."
},
"file_url": {
"type": "string",
"format": "uri",
"description": "The URL of the file to be sent to the model."
},
"detail": {
"allOf": [
{
"$ref": "#/$defs/OpenAI.FileInputDetail"
}
],
"description": "The detail level of the file to be sent to the model. Use `low` for the default rendering behavior, or `high` to render the file at higher quality. Defaults to `low`."
}
},
"description": "A file input to the model.",
"title": "Input file"
},
"OpenAI.InputImageContent": {
"type": "object",
"required": [
"type",
"detail"
],
"properties": {
"type": {
"type": "string",
"enum": [
"input_image"
],
"description": "The type of the input item. Always `input_image`.",
"x-stainless-const": true,
"default": "input_image"
},
"image_url": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
},
"file_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"detail": {
"allOf": [
{
"$ref": "#/$defs/OpenAI.ImageDetail"
}
],
"description": "The detail level of the image to be sent to the model. One of `high`, `low`, `auto`, or `original`. Defaults to `auto`."
}
},
"description": "An image input to the model. Learn about [image inputs](/docs/guides/vision).",
"title": "Input image"
},
"OpenAI.InputItem": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"$ref": "#/$defs/OpenAI.InputItemType"
}
},
"description": "An item representing part of the context for the response to be\ngenerated by the model. Can contain text, images, and audio inputs,\nas well as previous assistant responses and tool call outputs."
},
"OpenAI.InputItemType": {
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"message",
"output_message",
"file_search_call",
"computer_call",
"computer_call_output",
"web_search_call",
"function_call",
"function_call_output",
"tool_search_call",
"tool_search_output",
"reasoning",
"compaction",
"image_generation_call",
"code_interpreter_call",
"local_shell_call",
"local_shell_call_output",
"shell_call",
"shell_call_output",
"apply_patch_call",
"apply_patch_call_output",
"mcp_list_tools",
"mcp_approval_request",
"mcp_approval_response",
"mcp_call",
"custom_tool_call_output",
"custom_tool_call",
"item_reference",
"tool_approval_response"
]
}
]
},
"OpenAI.InputParam": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/OpenAI.InputItem"
}
}
],
"description": "Text, image, or file inputs to the model, used to generate a response.\nLearn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Image inputs](/docs/guides/images)\n- [File inputs](/docs/guides/pdf-files)\n- [Conversation state](/docs/guides/conversation-state)\n- [Function calling](/docs/guides/function-calling)"
},
"OpenAI.InputTextContent": {
"type": "object",
"required": [
"type",
"text"
],
"properties": {
"type": {
"type": "string",
"enum": [
"input_text"
],
"description": "The type of the input item. Always `input_text`.",
"x-stainless-const": true,
"default": "input_text"
},
"text": {
"type": "string",
"description": "The text input to the model."
}
},
"description": "A text input to the model.",
"title": "Input text"
},
"OpenAI.Metadata": {
"type": "object",
"unevaluatedProperties": {
"type": "string"
},
"description": "Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.",
"x-oaiTypeLabel": "map"
},
"OpenAI.Prompt": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of the prompt template to use."
},
"version": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"variables": {
"anyOf": [
{
"$ref": "#/$defs/OpenAI.ResponsePromptVariables"
},
{
"type": "null"
}
]
}
},
"description": "Reference to a prompt template and its variables.\n[Learn more](/docs/guides/text?api-mode=responses#reusable-prompts)."
},
"OpenAI.Reasoning": {
"type": "object",
"properties": {
"effort": {
"$ref": "#/$defs/OpenAI.ReasoningEffort"
},
"summary": {
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"concise",
"detailed"
]
},
{
"type": "null"
}
]
},
"generate_summary": {
"anyOf": [
{
"type": "string",
"enum": [
"auto",
"concise",
"detailed"
]
},
{
"type": "null"
}
]
}
},
"description": "**gpt-5 and o-series models only**\nConfiguration options for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).",
"title": "Reasoning"
},
"OpenAI.ReasoningEffort": {
"anyOf": [
{
"type": "string",
"enum": [
"none",
"minimal",
"low",
"medium",
"high",
"xhigh"
]
},
{
"type": "null"
}
],
"description": "Constrains effort on reasoning for\n[reasoning models](https://platform.openai.com/docs/guides/reasoning).\nCurrently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing\nreasoning effort can result in faster responses and fewer tokens used\non reasoning in a response.\n- `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.\n- All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.\n- The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.\n- `xhigh` is supported for all models after `gpt-5.1-codex-max`."
},
"OpenAI.ResponsePromptVariables": {
"type": "object",
"unevaluatedProperties": {
"anyOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/OpenAI.InputTextContent"
},
{
"$ref": "#/$defs/OpenAI.InputImageContent"
},
{
"$ref": "#/$defs/OpenAI.InputFileContent"
}
]
},
"description": "Optional map of values to substitute in for variables in your\nprompt. The substitution values can either be strings, or other\nResponse input types like images or files.",
"title": "Prompt Variables",
"x-oaiExpandable": true,
"x-oaiTypeLabel": "map"
},
"OpenAI.ResponseStreamOptions": {
"type": "object",
"properties": {
"include_obfuscation": {
"type": "boolean",
"description": "When true, stream obfuscation will be enabled. Stream obfuscation adds\n random characters to an `obfuscation` field on streaming delta events to\n normalize payload sizes as a mitigation to certain side-channel attacks.\n These obfuscation fields are included by default, but add a small amount\n of overhead to the data stream. You can set `include_obfuscation` to\n false to optimize for bandwidth if you trust the network links between\n your application and the OpenAI API."
}
},
"description": "Options for streaming responses. Only set this when you set `stream: true`."
},
"OpenAI.ResponseTextParam": {
"type": "object",
"properties": {
"format": {
"$ref": "#/$defs/OpenAI.TextResponseFormatConfiguration"
},
"verbosity": {
"$ref": "#/$defs/OpenAI.Verbosity"
}
},
"description": "Configuration options for a text response from the model. Can be plain\ntext or structured JSON data. Learn more:\n- [Text inputs and outputs](/docs/guides/text)\n- [Structured Outputs](/docs/guides/structured-outputs)"
},
"OpenAI.TextResponseFormatConfiguration": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"$ref": "#/$defs/OpenAI.TextResponseFormatConfigurationType"
}
},
"description": "An object specifying the format that the model must output.\nConfiguring `{ \"type\": \"json_schema\" }` enables Structured Outputs,\nwhich ensures the model will match your supplied JSON schema. Learn more in the\n[Structured Outputs guide](/docs/guides/structured-outputs).\nThe default format is `{ \"type\": \"text\" }` with no additional options.\n*Not recommended for gpt-4o and newer models:**\nSetting to `{ \"type\": \"json_object\" }` enables the older JSON mode, which\nensures the message the model generates is valid JSON. Using `json_schema`\nis preferred for models that support it."
},
"OpenAI.TextResponseFormatConfigurationType": {
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"text",
"json_schema",
"json_object"
]
}
]
},
"OpenAI.Tool": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"$ref": "#/$defs/OpenAI.ToolType"
}
},
"description": "A tool that can be used to generate a response."
},
"OpenAI.ToolChoiceOptions": {
"type": "string",
"enum": [
"none",
"auto",
"required"
],
"description": "Controls which (if any) tool is called by the model.\n`none` means the model will not call any tool and instead generates a message.\n`auto` means the model can pick between generating a message or calling one or\nmore tools.\n`required` means the model must call one or more tools.",
"title": "Tool choice mode"
},
"OpenAI.ToolChoiceParam": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"$ref": "#/$defs/OpenAI.ToolChoiceParamType"
}
},
"description": "How the model should select which tool (or tools) to use when generating\na response. See the `tools` parameter to see how to specify which tools\nthe model can call."
},
"OpenAI.ToolChoiceParamType": {
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"allowed_tools",
"function",
"mcp",
"custom",
"apply_patch",
"shell",
"file_search",
"web_search_preview",
"computer_use_preview",
"web_search_preview_2025_03_11",
"image_generation",
"code_interpreter",
"computer",
"computer_use"
]
}
]
},
"OpenAI.ToolType": {
"anyOf": [
{
"type": "string"
},
{
"type": "string",
"enum": [
"function",
"file_search",
"computer",
"computer_use_preview",
"web_search",
"mcp",
"code_interpreter",
"image_generation",
"local_shell",
"shell",
"custom",
"namespace",
"tool_search",
"web_search_preview",
"apply_patch"
]
}
]
},
"OpenAI.ToolsArray": {
"type": "array",
"items": {
"$ref": "#/$defs/OpenAI.Tool"
},
"description": "An array of tools the model may call while generating a response. You\ncan specify which tool to use by setting the `tool_choice` parameter.\nWe support the following categories of tools:\n- **Built-in tools**: Tools that are provided by OpenAI that extend the\nmodel's capabilities, like [web search](/docs/guides/tools-web-search)\nor [file search](/docs/guides/tools-file-search). Learn more about\n[built-in tools](/docs/guides/tools).\n- **MCP Tools**: Integrations with third-party systems via custom MCP servers\nor predefined connectors such as Google Drive and SharePoint. Learn more about\n[MCP Tools](/docs/guides/tools-connectors-mcp).\n- **Function calls (custom tools)**: Functions that are defined by you,\nenabling the model to call your own code with strongly typed arguments\nand outputs. Learn more about\n[function calling](/docs/guides/function-calling). You can also use\ncustom tools to call your own code."
},
"OpenAI.Verbosity": {
"anyOf": [
{
"type": "string",
"enum": [
"low",
"medium",
"high"
]
},
{
"type": "null"
}
],
"description": "Constrains the verbosity of the model's response. Lower values will result in\nmore concise responses, while higher values will result in more verbose responses.\nCurrently supported values are `low`, `medium`, and `high`."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/microsoft-azure-openai-open-ai-create-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.