> ## Documentation Index
> Fetch the complete documentation index at: https://openai-hd4n6.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Create chat completion

> Use the Create chat completion endpoint to create a new chat completion.

export const SectionHeading = ({title, options, children}) => {
  const [activeOptionIndex, setActiveOptionIndex] = useState(0);
  const handleOptionChange = index => {
    setActiveOptionIndex(index);
  };
  const selectedOptionChildren = children[activeOptionIndex];
  return <div className="flex flex-col gap-y-4 w-full">
      <div className="flex items-baseline border-b pb-2.5 border-gray-100 dark:border-gray-800 w-full">
        <h4 className="flex-1 mb-0">{title}</h4>

        <div className="flex items-center gap-1">
          <label className="flex items-center cursor-pointer">
            <select aria-label="section heading select" className="bg-transparent text-sm text-gray-600 dark:text-gray-400 outline-none cursor-pointer hover:text-gray-900 dark:hover:text-gray-300 text-right appearance-none pr-4" onChange={e => handleOptionChange(options.indexOf(e.target.value))}>
              {options.map(option => <option key={option} value={option}>
                  {option}
                </option>)}
            </select>

            <svg className="h-2.5 w-2.5 bg-gray-500 dark:bg-gray-400 shrink-0 ml-1.5 pointer-events-none absolute right-0" style={{
    maskImage: "url(https://mintlify.b-cdn.net/v6.6.0/solid/angle-down.svg)",
    maskRepeat: "no-repeat",
    maskPosition: "center center"
  }}></svg>
          </label>
        </div>
      </div>

      {selectedOptionChildren}
    </div>;
};

export const ApiExampleTabs = ({tabs, children}) => {
  const [isClient, setIsClient] = useState(false);
  const [isDark, setIsDark] = useState(false);
  const [activeTabIndex, setActiveTabIndex] = useState(0);
  const [animationsEnabled, setAnimationsEnabled] = useState(false);
  const tabRefs = useRef([]);
  const [highlightStyle, setHighlightStyle] = useState({
    width: 0,
    left: 0
  });
  const containerRef = useRef(null);
  useEffect(() => {
    tabRefs.current = tabRefs.current.slice(0, tabs.length);
    while (tabRefs.current.length < tabs.length) {
      tabRefs.current.push(React.createRef());
    }
  }, [tabs]);
  useEffect(() => {
    setIsClient(true);
    setIsDark(document.documentElement.classList.contains('dark'));
    const observer = new MutationObserver(mutations => {
      mutations.forEach(mutation => {
        if (mutation.attributeName === 'class') {
          setIsDark(document.documentElement.classList.contains('dark'));
        }
      });
    });
    observer.observe(document.documentElement, {
      attributes: true
    });
    const timer = setTimeout(() => {
      setAnimationsEnabled(true);
    }, 100);
    return () => {
      clearTimeout(timer);
      observer.disconnect();
    };
  }, []);
  useEffect(() => {
    if (isClient && tabRefs.current[activeTabIndex]?.current) {
      updateHighlightPosition();
    }
  }, [activeTabIndex, isClient]);
  useEffect(() => {
    if (isClient) {
      window.addEventListener('resize', updateHighlightPosition);
      return () => {
        window.removeEventListener('resize', updateHighlightPosition);
      };
    }
  }, [isClient]);
  const updateHighlightPosition = () => {
    const activeTab = tabRefs.current[activeTabIndex].current;
    if (activeTab) {
      setHighlightStyle({
        width: activeTab.offsetWidth,
        left: activeTab.offsetLeft
      });
    }
  };
  const handleTabClick = index => {
    setActiveTabIndex(index);
  };
  if (!isClient) return null;
  const request = children[activeTabIndex].props.children[0];
  const response = children[activeTabIndex].props.children[1];
  return <>
      <div ref={containerRef} role="group" dir="ltr" className="mt-0 lg:mt-8 xl:mt-0 relative flex items-center bg-gray-100 dark:bg-black px-1 py-0.5 rounded-lg w-fit max-w-full overflow-x-auto whitespace-nowrap" aria-label="Content switcher" tabIndex="0">
        <div className={`absolute rounded ${animationsEnabled ? 'transition-all duration-200 ease-out' : ''}`} style={{
    ...highlightStyle,
    height: '80%',
    backgroundColor: isDark ? '#353740' : 'white'
  }} />

        {tabs.map((tab, index) => <button key={tab} ref={el => tabRefs.current[index] = {
    current: el
  }} type="button" role="radio" aria-checked={activeTabIndex === index} className={`relative z-10 w-fit px-3 py-1.5 font-semibold text-sm rounded-lg whitespace-nowrap ${animationsEnabled ? 'transition-colors duration-200' : ''}`} style={{
    color: activeTabIndex === index ? isDark ? 'white' : 'black' : isDark ? '#acacbe' : '#6e6e80'
  }} onClick={() => handleTabClick(index)} tabIndex={activeTabIndex === index ? 0 : -1}>
            <span className="relative z-10">{tab}</span>
          </button>)}
      </div>
      
      <div className="mt-2 grid grid-rows gap-3 rounded-lg max-h-1/2" style={{
    height: 'calc(100% - 4rem)',
    gridTemplateRows: 'repeat(auto-fit,minmax(0,min-content))'
  }}>
        {request}
        {response}
      </div>
    </>;
};

**Starting a new project?** We recommend trying [Responses](https://platform.openai.com/docs/api-reference/responses) to take advantage of the latest OpenAI platform features. [Compare Chat Completions with Responses](https://platform.openai.com/docs/guides/responses-vs-chat-completions?api-mode=responses).

Creates a model response for the given chat conversation. Learn more in the text generation, vision, and audio guides.

Parameter support can differ depending on the model used to generate the response, particularly for newer reasoning models. Parameters that are only supported for reasoning models are noted below. For the current state of unsupported parameters in reasoning models, [refer to the reasoning guide](https://platform.openai.com/docs/guides/reasoning).

<SectionHeading title="Request body" options={['Request body', 'Response']}>
  <ParamField body="messages" type="array" required>
    A list of messages comprising the conversation so far. Depending on the model you use, different message types (modalities) are supported, like text, images, and audio.
  </ParamField>

  <ParamField body="model" type="string" required>
    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 guide](/docs/models) to browse and compare available models.
  </ParamField>
</SectionHeading>

<ParamField body="audio" type="object or null">
  Parameters for audio output. Required when audio output is requested with modalities: \["audio"]. Learn more.
</ParamField>

<ParamField body="frequency_penalty" type="number or null" default={0}>
  Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
</ParamField>

export const apiExamples = ['Text input', 'Image input', 'Web search', 'File search', 'Streaming', 'Functions', 'Reasoning'];

<Panel>
  <ApiExampleTabs tabs={apiExamples}>
    <>
      ```js theme={"system"}
      import OpenAI from "openai";

      const openai = new OpenAI();

      const response = await openai.responses.create({
          model: "gpt-4.1",
          input: "Tell me a three sentence bedtime story about a unicorn."
      });

      console.log(response);
      ```

      ```json theme={"system"}
      {
        "id": "resp_67ccd2bed1ec8190b14f964abc0542670bb6a6b452d3795b",
        "object": "response",
        "created_at": 1741476542,
        "status": "completed",
        "error": null,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": null,
        "model": "gpt-4.1-2025-04-14",
        "output": [
          {
            "type": "message",
            "id": "msg_67ccd2bf17f0819081ff3bb2cf6508e60bb6a6b452d3795b",
            "status": "completed",
            "role": "assistant",
            "content": [
              {
                "type": "output_text",
                "text": "In a peaceful grove beneath a silver moon, a unicorn named Lumina discovered a hidden pool that reflected the stars. As she dipped her horn into the water, the pool began to shimmer, revealing a pathway to a magical realm of endless night skies. Filled with wonder, Lumina whispered a wish for all who dream to find their own hidden magic, and as she glanced back, her hoofprints sparkled like stardust.",
                "annotations": []
              }
            ]
          }
        ],
        "parallel_tool_calls": true,
        "previous_response_id": null,
        "reasoning": {
          "effort": null,
          "summary": null
        },
        "store": true,
        "temperature": 1.0,
        "text": {
          "format": {
            "type": "text"
          }
        },
        "tool_choice": "auto",
        "tools": [],
        "top_p": 1.0,
        "truncation": "disabled",
        "usage": {
          "input_tokens": 36,
          "input_tokens_details": {
            "cached_tokens": 0
          },
          "output_tokens": 87,
          "output_tokens_details": {
            "reasoning_tokens": 0
          },
          "total_tokens": 123
        },
        "user": null,
        "metadata": {}
      }
      ```
    </>

    <>
      ```js theme={"system"}
      import OpenAI from "openai";

      const openai = new OpenAI();

      const response = await openai.responses.create({
          model: "gpt-4.1",
          input: [
              {
                  role: "user",
                  content: [
                      { type: "input_text", text: "what is in this image?" },
                      {
                          type: "input_image",
                          image_url:
                              "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg",
                      },
                  ],
              },
          ],
      });

      console.log(response);
      ```

      ```json theme={"system"}
      {
        "id": "resp_67ccd3a9da748190baa7f1570fe91ac604becb25c45c1d41",
        "object": "response",
        "created_at": 1741476777,
        "status": "completed",
        "error": null,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": null,
        "model": "gpt-4.1-2025-04-14",
        "output": [
          {
            "type": "message",
            "id": "msg_67ccd3acc8d48190a77525dc6de64b4104becb25c45c1d41",
            "status": "completed",
            "role": "assistant",
            "content": [
              {
                "type": "output_text",
                "text": "The image depicts a scenic landscape with a wooden boardwalk or pathway leading through lush, green grass under a blue sky with some clouds. The setting suggests a peaceful natural area, possibly a park or nature reserve. There are trees and shrubs in the background.",
                "annotations": []
              }
            ]
          }
        ],
        "parallel_tool_calls": true,
        "previous_response_id": null,
        "reasoning": {
          "effort": null,
          "summary": null
        },
        "store": true,
        "temperature": 1.0,
        "text": {
          "format": {
            "type": "text"
          }
        },
        "tool_choice": "auto",
        "tools": [],
        "top_p": 1.0,
        "truncation": "disabled",
        "usage": {
          "input_tokens": 328,
          "input_tokens_details": {
            "cached_tokens": 0
          },
          "output_tokens": 52,
          "output_tokens_details": {
            "reasoning_tokens": 0
          },
          "total_tokens": 380
        },
        "user": null,
        "metadata": {}
      }
      ```
    </>

    <>
      ```js theme={"system"}
      import OpenAI from "openai";

      const openai = new OpenAI();

      const response = await openai.responses.create({
          model: "gpt-4.1",
          tools: [{ type: "web_search_preview" }],
          input: "What was a positive news story from today?",
      });

      console.log(response);
      ```

      ```json theme={"system"}
      {
        "id": "resp_67ccf18ef5fc8190b16dbee19bc54e5f087bb177ab789d5c",
        "object": "response",
        "created_at": 1741484430,
        "status": "completed",
        "error": null,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": null,
        "model": "gpt-4.1-2025-04-14",
        "output": [
          {
            "type": "web_search_call",
            "id": "ws_67ccf18f64008190a39b619f4c8455ef087bb177ab789d5c",
            "status": "completed"
          },
          {
            "type": "message",
            "id": "msg_67ccf190ca3881909d433c50b1f6357e087bb177ab789d5c",
            "status": "completed",
            "role": "assistant",
            "content": [
              {
                "type": "output_text",
                "text": "As of today, March 9, 2025, one notable positive news story...",
                "annotations": [
                  {
                    "type": "url_citation",
                    "start_index": 442,
                    "end_index": 557,
                    "url": "https://.../?utm_source=chatgpt.com",
                    "title": "..."
                  },
                  {
                    "type": "url_citation",
                    "start_index": 962,
                    "end_index": 1077,
                    "url": "https://.../?utm_source=chatgpt.com",
                    "title": "..."
                  },
                  {
                    "type": "url_citation",
                    "start_index": 1336,
                    "end_index": 1451,
                    "url": "https://.../?utm_source=chatgpt.com",
                    "title": "..."
                  }
                ]
              }
            ]
          }
        ],
        "parallel_tool_calls": true,
        "previous_response_id": null,
        "reasoning": {
          "effort": null,
          "summary": null
        },
        "store": true,
        "temperature": 1.0,
        "text": {
          "format": {
            "type": "text"
          }
        },
        "tool_choice": "auto",
        "tools": [
          {
            "type": "web_search_preview",
            "domains": [],
            "search_context_size": "medium",
            "user_location": {
              "type": "approximate",
              "city": null,
              "country": "US",
              "region": null,
              "timezone": null
            }
          }
        ],
        "top_p": 1.0,
        "truncation": "disabled",
        "usage": {
          "input_tokens": 328,
          "input_tokens_details": {
            "cached_tokens": 0
          },
          "output_tokens": 356,
          "output_tokens_details": {
            "reasoning_tokens": 0
          },
          "total_tokens": 684
        },
        "user": null,
        "metadata": {}
      }
      ```
    </>

    <>
      ```js theme={"system"}
      import OpenAI from "openai";

      const openai = new OpenAI();

      const response = await openai.responses.create({
          model: "gpt-4.1",
          tools: [{
            type: "file_search",
            vector_store_ids: ["vs_1234567890"],
            max_num_results: 20
          }],
          input: "What are the attributes of an ancient brown dragon?",
      });

      console.log(response);
      ```

      ```json theme={"system"}
      {
        "id": "resp_67ccf4c55fc48190b71bd0463ad3306d09504fb6872380d7",
        "object": "response",
        "created_at": 1741485253,
        "status": "completed",
        "error": null,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": null,
        "model": "gpt-4.1-2025-04-14",
        "output": [
          {
            "type": "file_search_call",
            "id": "fs_67ccf4c63cd08190887ef6464ba5681609504fb6872380d7",
            "status": "completed",
            "queries": [
              "attributes of an ancient brown dragon"
            ],
            "results": null
          },
          {
            "type": "message",
            "id": "msg_67ccf4c93e5c81909d595b369351a9d309504fb6872380d7",
            "status": "completed",
            "role": "assistant",
            "content": [
              {
                "type": "output_text",
                "text": "The attributes of an ancient brown dragon include...",
                "annotations": [
                  {
                    "type": "file_citation",
                    "index": 320,
                    "file_id": "file-4wDz5b167pAf72nx1h9eiN",
                    "filename": "dragons.pdf"
                  },
                  {
                    "type": "file_citation",
                    "index": 576,
                    "file_id": "file-4wDz5b167pAf72nx1h9eiN",
                    "filename": "dragons.pdf"
                  },
                  {
                    "type": "file_citation",
                    "index": 815,
                    "file_id": "file-4wDz5b167pAf72nx1h9eiN",
                    "filename": "dragons.pdf"
                  },
                  {
                    "type": "file_citation",
                    "index": 815,
                    "file_id": "file-4wDz5b167pAf72nx1h9eiN",
                    "filename": "dragons.pdf"
                  },
                  {
                    "type": "file_citation",
                    "index": 1030,
                    "file_id": "file-4wDz5b167pAf72nx1h9eiN",
                    "filename": "dragons.pdf"
                  },
                  {
                    "type": "file_citation",
                    "index": 1030,
                    "file_id": "file-4wDz5b167pAf72nx1h9eiN",
                    "filename": "dragons.pdf"
                  },
                  {
                    "type": "file_citation",
                    "index": 1156,
                    "file_id": "file-4wDz5b167pAf72nx1h9eiN",
                    "filename": "dragons.pdf"
                  },
                  {
                    "type": "file_citation",
                    "index": 1225,
                    "file_id": "file-4wDz5b167pAf72nx1h9eiN",
                    "filename": "dragons.pdf"
                  }
                ]
              }
            ]
          }
        ],
        "parallel_tool_calls": true,
        "previous_response_id": null,
        "reasoning": {
          "effort": null,
          "summary": null
        },
        "store": true,
        "temperature": 1.0,
        "text": {
          "format": {
            "type": "text"
          }
        },
        "tool_choice": "auto",
        "tools": [
          {
            "type": "file_search",
            "filters": null,
            "max_num_results": 20,
            "ranking_options": {
              "ranker": "auto",
              "score_threshold": 0.0
            },
            "vector_store_ids": [
              "vs_1234567890"
            ]
          }
        ],
        "top_p": 1.0,
        "truncation": "disabled",
        "usage": {
          "input_tokens": 18307,
          "input_tokens_details": {
            "cached_tokens": 0
          },
          "output_tokens": 348,
          "output_tokens_details": {
            "reasoning_tokens": 0
          },
          "total_tokens": 18655
        },
        "user": null,
        "metadata": {}
      }      
      ```
    </>

    <>
      ```js theme={"system"}
      import OpenAI from "openai";

      const openai = new OpenAI();

      const response = await openai.responses.create({
          model: "gpt-4.1",
          instructions: "You are a helpful assistant.",
          input: "Hello!",
          stream: true,
      });

      for await (const event of response) {
          console.log(event);
      }
      ```

      ```json theme={"system"}
      event: response.created
      data: {"type":"response.created","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-4.1-2025-04-14","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}

      event: response.in_progress
      data: {"type":"response.in_progress","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"in_progress","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-4.1-2025-04-14","output":[],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":null,"user":null,"metadata":{}}}

      event: response.output_item.added
      data: {"type":"response.output_item.added","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"in_progress","role":"assistant","content":[]}}

      event: response.content_part.added
      data: {"type":"response.content_part.added","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"","annotations":[]}}

      event: response.output_text.delta
      data: {"type":"response.output_text.delta","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"delta":"Hi"}

      ...

      event: response.output_text.done
      data: {"type":"response.output_text.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"text":"Hi there! How can I assist you today?"}

      event: response.content_part.done
      data: {"type":"response.content_part.done","item_id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","output_index":0,"content_index":0,"part":{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}}

      event: response.output_item.done
      data: {"type":"response.output_item.done","output_index":0,"item":{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}}

      event: response.completed
      data: {"type":"response.completed","response":{"id":"resp_67c9fdcecf488190bdd9a0409de3a1ec07b8b0ad4e5eb654","object":"response","created_at":1741290958,"status":"completed","error":null,"incomplete_details":null,"instructions":"You are a helpful assistant.","max_output_tokens":null,"model":"gpt-4.1-2025-04-14","output":[{"id":"msg_67c9fdcf37fc8190ba82116e33fb28c507b8b0ad4e5eb654","type":"message","status":"completed","role":"assistant","content":[{"type":"output_text","text":"Hi there! How can I assist you today?","annotations":[]}]}],"parallel_tool_calls":true,"previous_response_id":null,"reasoning":{"effort":null,"summary":null},"store":true,"temperature":1.0,"text":{"format":{"type":"text"}},"tool_choice":"auto","tools":[],"top_p":1.0,"truncation":"disabled","usage":{"input_tokens":37,"output_tokens":11,"output_tokens_details":{"reasoning_tokens":0},"total_tokens":48},"user":null,"metadata":{}}}
      ```
    </>

    <>
      ```js theme={"system"}
      import OpenAI from "openai";

      const openai = new OpenAI();

      const tools = [
          {
              type: "function",
              name: "get_current_weather",
              description: "Get the current weather in a given location",
              parameters: {
                  type: "object",
                  properties: {
                      location: {
                          type: "string",
                          description: "The city and state, e.g. San Francisco, CA",
                      },
                      unit: { type: "string", enum: ["celsius", "fahrenheit"] },
                  },
                  required: ["location", "unit"],
              },
          },
      ];

      const response = await openai.responses.create({
          model: "gpt-4.1",
          tools: tools,
          input: "What is the weather like in Boston today?",
          tool_choice: "auto",
      });

      console.log(response);
      ```

      ```json theme={"system"}
      {
        "id": "resp_67ca09c5efe0819096d0511c92b8c890096610f474011cc0",
        "object": "response",
        "created_at": 1741294021,
        "status": "completed",
        "error": null,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": null,
        "model": "gpt-4.1-2025-04-14",
        "output": [
          {
            "type": "function_call",
            "id": "fc_67ca09c6bedc8190a7abfec07b1a1332096610f474011cc0",
            "call_id": "call_unLAR8MvFNptuiZK6K6HCy5k",
            "name": "get_current_weather",
            "arguments": "{\"location\":\"Boston, MA\",\"unit\":\"celsius\"}",
            "status": "completed"
          }
        ],
        "parallel_tool_calls": true,
        "previous_response_id": null,
        "reasoning": {
          "effort": null,
          "summary": null
        },
        "store": true,
        "temperature": 1.0,
        "text": {
          "format": {
            "type": "text"
          }
        },
        "tool_choice": "auto",
        "tools": [
          {
            "type": "function",
            "description": "Get the current weather in a given location",
            "name": "get_current_weather",
            "parameters": {
              "type": "object",
              "properties": {
                "location": {
                  "type": "string",
                  "description": "The city and state, e.g. San Francisco, CA"
                },
                "unit": {
                  "type": "string",
                  "enum": [
                    "celsius",
                    "fahrenheit"
                  ]
                }
              },
              "required": [
                "location",
                "unit"
              ]
            },
            "strict": true
          }
        ],
        "top_p": 1.0,
        "truncation": "disabled",
        "usage": {
          "input_tokens": 291,
          "output_tokens": 23,
          "output_tokens_details": {
            "reasoning_tokens": 0
          },
          "total_tokens": 314
        },
        "user": null,
        "metadata": {}
      }
      ```
    </>

    <>
      ```js theme={"system"}
      import OpenAI from "openai";
      const openai = new OpenAI();

      const response = await openai.responses.create({
          model: "o3-mini",
          input: "How much wood would a woodchuck chuck?",
          reasoning: {
            effort: "high"
          }
      });

      console.log(response);
      ```

      ```json theme={"system"}
      {
        "id": "resp_67ccd7eca01881908ff0b5146584e408072912b2993db808",
        "object": "response",
        "created_at": 1741477868,
        "status": "completed",
        "error": null,
        "incomplete_details": null,
        "instructions": null,
        "max_output_tokens": null,
        "model": "o1-2024-12-17",
        "output": [
          {
            "type": "message",
            "id": "msg_67ccd7f7b5848190a6f3e95d809f6b44072912b2993db808",
            "status": "completed",
            "role": "assistant",
            "content": [
              {
                "type": "output_text",
                "text": "The classic tongue twister...",
                "annotations": []
              }
            ]
          }
        ],
        "parallel_tool_calls": true,
        "previous_response_id": null,
        "reasoning": {
          "effort": "high",
          "summary": null
        },
        "store": true,
        "temperature": 1.0,
        "text": {
          "format": {
            "type": "text"
          }
        },
        "tool_choice": "auto",
        "tools": [],
        "top_p": 1.0,
        "truncation": "disabled",
        "usage": {
          "input_tokens": 81,
          "input_tokens_details": {
            "cached_tokens": 0
          },
          "output_tokens": 1035,
          "output_tokens_details": {
            "reasoning_tokens": 832
          },
          "total_tokens": 1116
        },
        "user": null,
        "metadata": {}
      }
      ```
    </>
  </ApiExampleTabs>
</Panel>
