For NDJSON:·续2

</details>

<details>

<summary>Web Search — Letting the model use OpenAI's built-in web search tool to answer with current information</summary>

const response = await env.AI.run(
  'openai/o3',
  {
    input: 'What were the top news stories about Cloudflare this week? Summarise in three bullets.',
    max_output_tokens: 4096,
    tools: [{ type: 'web_search_preview' }],
  },
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/responses \
  --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
  "model": "openai/o3",
  "input": "What were the top news stories about Cloudflare this week? Summarise in three bullets.",
  "max_output_tokens": 4096,
  "tools": [
    {
      "type": "web_search_preview"
    }
  ]
}'
• June 22, 2026 – A major Cloudflare network disruption rippled across the internet for several hours, knocking sites and apps such as X, Reddit, Zoom and Microsoft Teams offline worldwide.  Downdetector showed tens of thousands of outage reports before Cloudflare identified the root cause and began rolling out a fix. ([harianbasis.co](https://www.harianbasis.co/en/cloudflare-network-disruption-internet-outage))

• June 20, 2026 – Cloudflare confirmed it has completed the acquisition of VoidZero, the open-source team behind the Vite JavaScript build tool.  The deal folds Vite, Vitest and other high-performance developer utilities into Cloudflare’s Workers platform and edge network, with Cloudflare pledging to keep the tooling open-source and seeding a $1 million Vite ecosystem fund. ([harianbasis.co](https://www.harianbasis.co/en/cloudflare-acquires-voidzero-enhance-developer-tools))

• June 18, 2026 – The company launched a “Cloudflare One Design Partner” designation and an AI-powered deployment toolkit to help channel partners speed up Secure Access Service Edge (SASE) and Zero-Trust migrations.  Initial partners include Arctiq, Consortium, CMT, Presidio and The Missing Link, signalling deeper co-investment in partner-led security projects. ([itpro.com](https://www.itpro.com/technology/artificial-intelligence/cloudflare-launches-new-partner-initiative-to-support-ai-and-sase-adoption))
{
  "id": "resp_0e3c03908b88cc21016a399b47cc30819b8238762306128bad",
  "object": "response",
  "created_at": 1782160199,
  "model": "o3-2025-04-16",
  "output": [
    {
      "id": "rs_0e3c03908b88cc21016a399b488764819b816bc9d4cf79f6f1",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b48e084819b82268938a45565d2",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "search",
        "queries": [
          "Cloudflare news June 2026",
          "Cloudflare announces June 2026",
          "Cloudflare outage June 2026"
        ],
        "query": "Cloudflare news June 2026"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b4a2bc8819bbad43fa6282be05d",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b4b2adc819b914b6d039f72e7e4",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "search",
        "queries": [
          "Cloudflare outage June 20 2026"
        ],
        "query": "Cloudflare outage June 20 2026"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b4c4bac819bb1b53eb7cccd99c2",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b4c7170819bb3d0139a67899225",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "search",
        "queries": [
          "Cloudflare investor day June 2026 New York Stock Exchange",
          "Cloudflare AI security partner June 17 2026",
          "Cloudflare threat intelligence report 2026"
        ],
        "query": "Cloudflare investor day June 2026 New York Stock Exchange"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b4e29ac819baa943cc991c126e4",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b4e9464819b8eed3b9bb4b7ccb9",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "search",
        "queries": [
          "June 21 2026 Cloudflare",
          "June 22 2026 Cloudflare network disruption"
        ],
        "query": "June 21 2026 Cloudflare"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b505be0819bb23d59a0a7d12a01",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b5066b0819baa7bea052770d18f",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "open_page",
        "url": "https://www.harianbasis.co/en/cloudflare-network-disruption-internet-outage"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b512518819b8541cae697a2aae8",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b517544819b9aec941bfbb141de",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "search",
        "queries": [
          "Cloudflare outage June 22 2026 Reddit down"
        ],
        "query": "Cloudflare outage June 22 2026 Reddit down"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b53d520819b935ec374a95af017",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b5406fc819ba5032e5b6d5d5eb2",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "open_page",
        "url": "https://brandergroup.net/2026/06/cloudflares-ipv6-route-leak-exposed-routing-gaps/"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b54ffcc819ba4768f93b1a56964",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b5547b4819b9be06625da300d90",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "open_page",
        "url": "https://www.itpro.com/technology/artificial-intelligence/cloudflare-launches-new-partner-initiative-to-support-ai-and-sase-adoption"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b56169c819babddc29f78583f91",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b562c1c819b9149894d84b930c8",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "open_page",
        "url": "https://www.channele2e.com/brief/cloudflare-adds-design-partner-designation-for-sase-and-ai-security"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b56efa8819bb02217b18a3e8138",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b574c8c819ba0deefda3eaf09b8",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "search",
        "queries": [
          "Cloudflare stock June 19 2026 restructuring charge"
        ],
        "query": "Cloudflare stock June 19 2026 restructuring charge"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b5a8ffc819b8543d55709b897cb",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b5ac598819bb6c2c56a0a709731",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "open_page",
        "url": "https://www.investing.com/news/insider-trading-news/cloudflare-president-zatlyn-sells-175m-in-company-stock-93CH-4751078"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b5b9d6c819bb763557fd2291d72",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b5bb3f0819b96bd37a897758396",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "find_in_page",
        "pattern": "sold a total",
        "url": "https://www.investing.com/news/insider-trading-news/cloudflare-president-zatlyn-sells-175m-in-company-stock-93CH-4751078"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b5cc124819ba8a75c28875a8710",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b5dd75c819ba8eb3635a87e461c",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "search",
        "queries": [
          "Cloudflare acquires June 2026"
        ],
        "query": "Cloudflare acquires June 2026"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b60d610819b9f002ec12a155d11",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "ws_0e3c03908b88cc21016a399b61ea40819ba99cc8d1e20cf113",
      "type": "web_search_call",
      "status": "completed",
      "action": {
        "type": "open_page",
        "url": "https://www.harianbasis.co/en/cloudflare-acquires-voidzero-enhance-developer-tools"
      }
    },
    {
      "id": "rs_0e3c03908b88cc21016a399b646190819bb4cd09ac04932b9e",
      "type": "reasoning",
      "content": [],
      "summary": []
    },
    {
      "id": "msg_0e3c03908b88cc21016a399b6820bc819bb3680bc388bee072",
      "type": "message",
      "status": "completed",
      "content": [
        {
          "type": "output_text",
          "annotations": [
            {
              "type": "url_citation",
              "end_index": 415,
              "start_index": 320,
              "title": "Cloudflare Network Disruption Triggers Widespread Internet Outages",
              "url": "https://www.harianbasis.co/en/cloudflare-network-disruption-internet-outage"
            },
            {
              "type": "url_citation",
              "end_index": 896,
              "start_index": 794,
              "title": "Cloudflare Acquires VoidZero to Enhance G
... response truncated ...

</details>

Parameters

Schema variant

ResponsesChat Completions

▶input

one ofrequired

instructions

string

temperature

numberminimum: 0maximum: 2

max_output_tokens

numberexclusiveMinimum: 0

top_p

numberminimum: 0maximum: 1

stream

boolean

▶tools[]

array

tool_choice

▶text{}

object

▶reasoning{}

object

▶messages[]

arrayrequired

temperature

numberminimum: 0maximum: 2

max_tokens

numberexclusiveMinimum: 0

max_completion_tokens

numberexclusiveMinimum: 0

top_p

numberminimum: 0maximum: 1

frequency_penalty

numberminimum: -2maximum: 2

presence_penalty

numberminimum: -2maximum: 2

stream

boolean

▶stream_options{}

object

▶tools[]

array

tool_choice

response_format

▶modalities[]

array

▶audio{}

object

reasoning_effort

stringOptional reasoning control; availability and accepted values are model-dependent.

id

string

object

stringconst: response

created_at

number

model

string

▶output[]

array

output_text

string

status

stringenum: in_progress, completed, failed, incomplete

▶usage{}

object

id

string

object

string

created

number

model

string

▶choices[]

array

▶usage{}

object

API Schemas (Raw)

Input Open Download

Output Open Download

Was this helpful?

YesNo

On this page

For NDJSON:·续2 - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai/models/openai/o3/#page","headline":"o3","description":"o3 is OpenAI’s general-purpose reasoning model, balancing strong analytical performance with reasonable latency and cost.","url":"https://developers.cloudflare.com/ai/models/openai/o3/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: o3-mini is the lightweight, low-cost reasoning variant of o3, well suited to quick analytical tasks at scale. title: o3-mini image: https://developers.cloudflare.com/og-docs.png


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/llms.txt
Use this file to discover all available pages before exploring further.

OpenAI logo