GPT-5.5·续
</details>
<details>
<summary>Streaming Response — Enable streaming for real-time output</summary>
const response = await env.AI.run(
'openai/gpt-5.5',
{
messages: [{ content: 'Explain the concept of recursion with a simple example.', role: 'user' }],
stream: true,
stream_options: { include_usage: true },
},
)
console.log(response)
curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "openai/gpt-5.5",
"messages": [
{
"content": "Explain the concept of recursion with a simple example.",
"role": "user"
}
],
"stream": true,
"stream_options": {
"include_usage": true
}
}'
Recursion is when a function solves a problem by calling itself with a smaller or simpler version of the same problem.
A recursion usually has two parts:
1. **Base case**: when to stop calling itself.
2. **Recursive case**: the part where the function calls itself.
Example: counting down from a number.
```python
def countdown(n):
if n == 0: # base case
print("Done!")
else:
print(n)
countdown(n - 1) # recursive case
countdown(3)
```
Output:
```text
3
2
1
Done!
```
Here is what happens:
- `countdown(3)` prints `3`, then calls `countdown(2)`
- `countdown(2)` prints `2`, then calls `countdown(1)`
- `countdown(1)` prints `1`, then calls `countdown(0)`
- `countdown(0)` reaches the base case and stops
So, recursion is like breaking a problem into smaller versions of itself until reaching a stopping point.
[
{
"choices": [
{
"delta": {
"content": "",
"refusal": null,
"role": "assistant"
},
"finish_reason": null,
"index": 0
}
],
"created": 1777055295,
"id": "chatcmpl-DYFY7TPENOUYNWL4XUE07mP4N37Jp",
"model": "gpt-5.5-2026-04-23",
"obfuscation": "5EGG4gGR",
"object": "chat.completion.chunk",
"service_tier": "default",
"system_fingerprint": null,
"usage": null
},
{
"choices": [
{
"delta": {
"content": "Rec"
},
"finish_reason": null,
"index": 0
}
],
"created": 1777055295,
"id": "chatcmpl-DYFY7TPENOUYNWL4XUE07mP4N37Jp",
"model": "gpt-5.5-2026-04-23",
"obfuscation": "PC9MLZ9",
"object": "chat.completion.chunk",
"service_tier": "default",
"system_fingerprint": null,
"usage": null
},
"... 225 more chunks omitted ...",
{
"choices": [],
"created": 1777055295,
"id": "chatcmpl-DYFY7TPENOUYNWL4XUE07mP4N37Jp",
"model": "gpt-5.5-2026-04-23",
"obfuscation": "0lMavgk",
"object": "chat.completion.chunk",
"service_tier": "default",
"system_fingerprint": null,
"usage": {
"completion_tokens": 228,
"completion_tokens_details": {
"accepted_prediction_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0,
"rejected_prediction_tokens": 0
},
"prompt_tokens": 16,
"prompt_tokens_details": {
"audio_tokens": 0,
"cached_tokens": 0
},
"total_tokens": 244
}
}
]
</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/gpt-5.5',
{
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/gpt-5.5",
"input": "What were the top news stories about Cloudflare this week? Summarise in three bullets.",
"max_output_tokens": 4096,
"tools": [
{
"type": "web_search_preview"
}
]
}'
Treating “this week” as **June 15–22, 2026**:
- **Cloudflare had a North America/Europe-impacting service incident on June 22.** Its status page said increased error rates and latency began at **13:35 UTC**, affecting **Analytics, CDN/Cache, and Durable Objects**; Cloudflare later pointed to a **fiber cut in Eastern North America** and said traffic-engineering work had mitigated most congestion/packet drops by the afternoon. ([cloudflarestatus.com](https://www.cloudflarestatus.com/incidents/v3yl7jqmqj51))
- **Cloudflare pushed harder into AI-assisted Zero Trust/SASE deployments.** It launched the **Cloudflare One Stack**, a set of agent “skills” for configuring, migrating, and managing Zero Trust environments, alongside a new **Cloudflare One Design Partner** initiative aimed at partners helping customers move from legacy security architectures; early named partners included Arctiq, Consortium, CMT, Presidio, and The Missing Link. ([blog.cloudflare.com](https://blog.cloudflare.com/cloudflare-one-stack/))
- **Cloudflare advanced its “AI agents can build and deploy” strategy.** It introduced **Temporary Cloudflare Accounts for AI agents**, letting agents use `wrangler deploy --temporary` to ship Workers without a prior account for a 60-minute claim window, and also opened more Agents SDK primitives to frameworks such as **Flue** for durable, production-grade agent workflows. ([blog.cloudflare.com](https://blog.cloudflare.com/temporary-accounts/))
{
"id": "resp_04a2eb20ce6ad6f8016a3999229868819ba43a3002b7e5e301",
"object": "response",
"created_at": 1782159650,
"model": "gpt-5.5-2026-04-23",
"output": [
{
"id": "rs_04a2eb20ce6ad6f8016a399923112c819bbabc8ec848f597e2",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a399923ced4819b94eb840567ee5fc1",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "search",
"queries": [
"Cloudflare news this week June 2026 Cloudflare",
"Cloudflare latest news June 2026",
"site:blog.cloudflare.com Cloudflare June 2026",
"Cloudflare stock news this week June 2026"
],
"query": "Cloudflare news this week June 2026 Cloudflare"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a3999282ad8819ba080a8ddfee09e0e",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a39992838d8819b82979350fb85558b",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "search",
"queries": [
"Cloudflare outage June 22 2026 status incident",
"Cloudflare June 22 2026 outage",
"Cloudflare launches partner initiative AI SASE adoption June 18 2026",
"Cloudflare news June 17 2026"
],
"query": "Cloudflare outage June 22 2026 status incident"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a39992b85b8819b8494e22e7f1ade54",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a39992b9090819b868cc4de44726b49",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "search",
"queries": [
"site:blog.cloudflare.com June 18 2026 Cloudflare blog",
"site:blog.cloudflare.com June 17 2026 Cloudflare blog",
"site:blog.cloudflare.com June 16 2026 Cloudflare blog",
"site:blog.cloudflare.com June 15 2026 Cloudflare blog"
],
"query": "site:blog.cloudflare.com June 18 2026 Cloudflare blog"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a39992d42b8819b91e73be8db39cf7f",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a39992d7720819bb7a20bb6db6d12a7",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "open_page",
"url": "https://www.cloudflarestatus.com/uptime"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a39992eccb0819ba2f60db633880269",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a39992f55d4819b90baed7dcc1189b4",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "open_page",
"url": "https://www.cloudflarestatus.com/incidents/v3yl7jqmqj51"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a3999317194819b8aa69341a57c7022",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a3999321808819b8065a8f50825261d",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "search",
"queries": [
"Cloudflare after:2026-06-15 before:2026-06-23 news",
"Cloudflare site:reuters.com after:2026-06-15 before:2026-06-23",
"Cloudflare site:finance.yahoo.com after:2026-06-15 before:2026-06-23",
"Cloudflare site:investors.com after:2026-06-15 before:2026-06-23"
],
"query": "Cloudflare after:2026-06-15 before:2026-06-23 news"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a3999393be8819bb6199dd097e3c451",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a39993a4038819bb990a96c3388c97f",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "search",
"queries": [
"Cloudflare Flue agent harnesses frameworks June 2026",
"site:blog.cloudflare.com Flue Cloudflare June 2026",
"\"Bringing more agent harnesses\" Cloudflare",
"Cloudflare AI Agents SDK Flue June 2026"
],
"query": "Cloudflare Flue agent harnesses frameworks June 2026"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a399941a9ec819b9772297dbafe616a",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a399941c820819b9c737c5bbac428a5",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "open_page",
"url": "https://noise.getoto.net/2026/06/17/bringing-more-agent-harnesses-and-frameworks-to-cloudflare-starting-with-flue/"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a399943832c819bb678926f11223a00",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a399943e4d0819bbfeb601cd55a683d",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "open_page",
"url": "https://blog.cloudflare.com/agents-platform-flue-sdk/"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a399945c25c819b8329904bba285bd7",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a3999491ed0819b8c1623b7545fca7a",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "open_page",
"url": "https://blog.cloudflare.com/temporary-cloudflare-accounts-for-ai-agents/"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a39994b78d0819b8e663097a07806c8",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a39994bb2c4819bb73593fb0cf46293",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "open_page",
"url": "https://blog.cloudflare.com/agents-platform-flue-sdk/"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a39994f2f9c819b9088ecfeb3e06e00",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "ws_04a2eb20ce6ad6f8016a39994f902c819bb852d31e550d7771",
"type": "web_search_call",
"status": "completed",
"action": {
"type": "open_page",
"url": "https://blog.cloudflare.com/temporary-accounts/"
}
},
{
"id": "rs_04a2eb20ce6ad6f8016a399950fae4819ba302f413d4bfaf40",
"type": "reasoning",
"content": [],
"summary": []
},
{
"id": "msg_04a2eb20ce6ad6f8016a399953b544819ba7651b7966a4cb7e",
"type": "message",
"status": "completed",
"content": [
{
"type": "output_text",
"annotations": [
{
"type": "url_citation",
"end_index": 511,
"start_index": 430,
"title": "Cloudflare Status - Increased Error Rates",
"url": "https://www.cloudflarestatus.com/incidents/v3yl7jqmqj51"
},
{
"type": "url_citation",
"end_index": 1021,
"start_index": 947,
"title": "Introducing the Cloudflare One stack: agent-powered deployment",
"url": "https://blog.cloudflare.com/cloudflare-one-stack/"
},
{
"type": "url_citation",
"end_index": 1471,
"start_index": 1399,
"title": "Temporary Cloudflare Accounts for AI agents",
"url": "https://blog.cloudflare.com/temporary-accounts/"
}
],
"logprobs": [],
"text": "Treating “this week” as **June 15–22, 2026**:\n\n- **Cloudflare
... 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)
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai/models/openai/gpt-5.5/#page","headline":"GPT-5.5","description":"GPT-5.5 is OpenAI's flagship model with strong coding, reasoning, and multimodal capabilities.","url":"https://developers.cloudflare.com/ai/models/openai/gpt-5.5/","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: GPT-5.5 pro uses OpenAI's Responses API with built-in tools, improved reasoning, and stateful context management. title: GPT-5.5 pro image: https://developers.cloudflare.com/og-docs.png
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.

