Model ID
Use with the Workers AI binding, the AI Gateway REST API, or the Unified API.
Calling the provider directly? Use the provider's model name instead, including with provider-native endpoints or the provider's own SDK. For example, Anthropic's name for anthropic/claude-opus-4.8 is claude-opus-4-8.
- Third-party
- Zero data retention
Claude Sonnet 4.6 is Anthropic's latest balanced model offering strong coding, reasoning, and agentic capabilities with improved instruction following.
| Model Info | |
|---|---|
| Context Window ↗ | 200,000 tokens |
| Terms and License | link ↗ |
| More information | link ↗ |
| Zero data retention | Yes |
| Request formats | Anthropic Messages |
| Pricing |
|
const response = await env.AI.run(
'anthropic/claude-sonnet-4.6',
{
max_tokens: 1024,
messages: [{ content: 'What are the three laws of thermodynamics?', role: 'user' }],
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "anthropic/claude-sonnet-4.6",
"max_tokens": 1024,
"messages": [
{
"content": "What are the three laws of thermodynamics?",
"role": "user"
}
]
}'There are actually **four** laws of thermodynamics (including the Zeroth Law): ## The Laws of Thermodynamics **Zeroth Law** If two systems are each in thermal equilibrium with a third system, they are in thermal equilibrium with each other. (This establishes the concept of temperature.) **First Law** Energy cannot be created or destroyed, only converted from one form to another. (Conservation of energy) **Second Law** Entropy of an isolated system tends to increase over time. Heat naturally flows from hot to cold, not the reverse. (No perfectly efficient engine is possible.) **Third Law** As temperature approaches absolute zero, the entropy of a perfect crystal approaches zero. It is impossible to reach absolute zero in a finite number of steps. --- The laws are often summarized humorously as: - **You can't win** (can't get more energy out than you put in) - **You can't break even** (you always lose some energy to entropy) - **You can't quit the game** (you can never reach absolute zero) Would you like more detail on any of these?
{
"id": "msg_015bDPjJ5vm4gY4EH7pALCsh",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "There are actually **four** laws of thermodynamics (including the Zeroth Law):\n\n## The Laws of Thermodynamics\n\n**Zeroth Law**\nIf two systems are each in thermal equilibrium with a third system, they are in thermal equilibrium with each other. (This establishes the concept of temperature.)\n\n**First Law**\nEnergy cannot be created or destroyed, only converted from one form to another. (Conservation of energy)\n\n**Second Law**\nEntropy of an isolated system tends to increase over time. Heat naturally flows from hot to cold, not the reverse. (No perfectly efficient engine is possible.)\n\n**Third Law**\nAs temperature approaches absolute zero, the entropy of a perfect crystal approaches zero. It is impossible to reach absolute zero in a finite number of steps.\n\n---\n\nThe laws are often summarized humorously as:\n- **You can't win** (can't get more energy out than you put in)\n- **You can't break even** (you always lose some energy to entropy)\n- **You can't quit the game** (you can never reach absolute zero)\n\nWould you like more detail on any of these?"
}
],
"model": "claude-sonnet-4-6",
"stop_reason": "end_turn",
"usage": {
"input_tokens": 17,
"output_tokens": 252
},
"stop_sequence": null,
"stop_details": null,
"gatewayMetadata": {
"keySource": "Unified"
}
}With System Message — Using a system message to set context
const response = await env.AI.run(
'anthropic/claude-sonnet-4.6',
{
max_tokens: 1024,
messages: [{ content: 'How do I read a JSON file in Python?', role: 'user' }],
system: 'You are a helpful coding assistant specializing in Python.',
temperature: 0.3,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "anthropic/claude-sonnet-4.6",
"max_tokens": 1024,
"messages": [
{
"content": "How do I read a JSON file in Python?",
"role": "user"
}
],
"system": "You are a helpful coding assistant specializing in Python.",
"temperature": 0.3
}'## Reading a JSON File in Python
### Basic Method using `json` module
```python
import json
# Open and read the JSON file
with open('data.json', 'r') as file:
data = json.load(file)
print(data)
```
### Common Approaches
**1. Read as a dictionary/list (most common)**
```python
import json
with open('data.json', 'r') as file:
data = json.load(file) # Returns a Python dict or list
# Access values
print(data['name'])
print(data['age'])
```
**2. Read JSON string manually**
```python
import json
with open('data.json', 'r') as file:
content = file.read() # Read as string
data = json.loads(content) # Parse the string (note the 's')
```
**3. Handle encoding (for special characters)**
```python
import json
with open('data.json', 'r', encoding='utf-8') as file:
data = json.load(file)
```
### Error Handling (Recommended)
```python
import json
try:
with open('data.json', 'r') as file:
data = json.load(file)
except FileNotFoundError:
print("File not found")
except json.JSONDecodeError:
print("Invalid JSON format")
```
### Key Differences
| Function | Use Case |
|----------|----------|
| `json.load(file)` | Read directly from a **file object** |
| `json.loads(string)` | Parse a **JSON string** |
### Example JSON file (`data.json`)
```json
{
"name": "Alice",
"age": 30,
"hobbies": ["reading", "coding"]
}
```
**Output:**
```python
data['name'] # → "Alice"
data['age'] # → 30
data['hobbies'] # → ["reading", "coding"]
```
> **Tip:** Use `with open()` to ensure the file is automatically closed after reading.{
"id": "msg_015vWQKd15N4szFzUuNwum2W",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "## Reading a JSON File in Python\n\n### Basic Method using `json` module\n\n```python\nimport json\n\n# Open and read the JSON file\nwith open('data.json', 'r') as file:\n data = json.load(file)\n\nprint(data)\n```\n\n### Common Approaches\n\n**1. Read as a dictionary/list (most common)**\n```python\nimport json\n\nwith open('data.json', 'r') as file:\n data = json.load(file) # Returns a Python dict or list\n\n# Access values\nprint(data['name'])\nprint(data['age'])\n```\n\n**2. Read JSON string manually**\n```python\nimport json\n\nwith open('data.json', 'r') as file:\n content = file.read() # Read as string\n data = json.loads(content) # Parse the string (note the 's')\n```\n\n**3. Handle encoding (for special characters)**\n```python\nimport json\n\nwith open('data.json', 'r', encoding='utf-8') as file:\n data = json.load(file)\n```\n\n### Error Handling (Recommended)\n```python\nimport json\n\ntry:\n with open('data.json', 'r') as file:\n data = json.load(file)\nexcept FileNotFoundError:\n print(\"File not found\")\nexcept json.JSONDecodeError:\n print(\"Invalid JSON format\")\n```\n\n### Key Differences\n\n| Function | Use Case |\n|----------|----------|\n| `json.load(file)` | Read directly from a **file object** |\n| `json.loads(string)` | Parse a **JSON string** |\n\n### Example JSON file (`data.json`)\n```json\n{\n \"name\": \"Alice\",\n \"age\": 30,\n \"hobbies\": [\"reading\", \"coding\"]\n}\n```\n\n**Output:**\n```python\ndata['name'] # → \"Alice\"\ndata['age'] # → 30\ndata['hobbies'] # → [\"reading\", \"coding\"]\n```\n\n> **Tip:** Use `with open()` to ensure the file is automatically closed after reading."
}
],
"model": "claude-sonnet-4-6",
"stop_reason": "end_turn",
"usage": {
"input_tokens": 29,
"output_tokens": 508
},
"stop_sequence": null,
"stop_details": null,
"gatewayMetadata": {
"keySource": "Unified"
}
}Multi-turn Conversation — Continuing a conversation with context
const response = await env.AI.run(
'anthropic/claude-sonnet-4.6',
{
max_tokens: 1024,
messages: [
{
content: 'I need help planning a road trip from San Francisco to Los Angeles.',
role: 'user',
},
{
content:
"I'd be happy to help! The drive is about 380 miles and takes roughly 5-6 hours. Would you like suggestions for scenic routes or interesting stops along the way?",
role: 'assistant',
},
{ content: 'Yes, what are some good places to stop?', role: 'user' },
],
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "anthropic/claude-sonnet-4.6",
"max_tokens": 1024,
"messages": [
{
"content": "I need help planning a road trip from San Francisco to Los Angeles.",
"role": "user"
},
{
"content": "I'\''d be happy to help! The drive is about 380 miles and takes roughly 5-6 hours. Would you like suggestions for scenic routes or interesting stops along the way?",
"role": "assistant"
},
{
"content": "Yes, what are some good places to stop?",
"role": "user"
}
]
}'Here are some great stops depending on which route you take: **Pacific Coast Highway (Highway 1) - Scenic Route** - **Santa Cruz** - Fun boardwalk and beach town - **Monterey** - Great aquarium and Cannery Row - **Big Sur** - Stunning coastal views and hiking - **San Simeon** - Hearst Castle tours - **Morro Bay** - Charming harbor town - **Santa Barbara** - Beautiful city with great food and beaches **Highway 101 - Middle Route** - **San Jose** - Tech museums and good food - **Paso Robles** - Wine country and wineries - **San Luis Obispo** - Charming college town - **Santa Barbara** - connects with PCH route **Interstate 5 - Fastest Route** - This is the most direct but least scenic - Good if you just want to get there quickly **Some Tips:** - The PCH route adds several hours but is worth it for the views - Big Sur can have road closures, so check conditions ahead of time - Santa Barbara is a great overnight stop - Try to drive Big Sur during daylight for the best views Would you like more details about any specific stop or help planning an overnight itinerary?
{
"id": "msg_015gJCs45CLVWFpG9swxLY1h",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "Here are some great stops depending on which route you take:\n\n**Pacific Coast Highway (Highway 1) - Scenic Route**\n- **Santa Cruz** - Fun boardwalk and beach town\n- **Monterey** - Great aquarium and Cannery Row\n- **Big Sur** - Stunning coastal views and hiking\n- **San Simeon** - Hearst Castle tours\n- **Morro Bay** - Charming harbor town\n- **Santa Barbara** - Beautiful city with great food and beaches\n\n**Highway 101 - Middle Route**\n- **San Jose** - Tech museums and good food\n- **Paso Robles** - Wine country and wineries\n- **San Luis Obispo** - Charming college town\n- **Santa Barbara** - connects with PCH route\n\n**Interstate 5 - Fastest Route**\n- This is the most direct but least scenic\n- Good if you just want to get there quickly\n\n**Some Tips:**\n- The PCH route adds several hours but is worth it for the views\n- Big Sur can have road closures, so check conditions ahead of time\n- Santa Barbara is a great overnight stop\n- Try to drive Big Sur during daylight for the best views\n\nWould you like more details about any specific stop or help planning an overnight itinerary?"
}
],
"model": "claude-sonnet-4-6",
"stop_reason": "end_turn",
"usage": {
"input_tokens": 76,
"output_tokens": 290
},
"stop_sequence": null,
"stop_details": null,
"gatewayMetadata": {
"keySource": "Unified"
}
}Creative Writing — Higher temperature for creative output
const response = await env.AI.run(
'anthropic/claude-sonnet-4.6',
{
max_tokens: 512,
messages: [
{
content: 'Write a short story opening about a detective finding an unusual clue.',
role: 'user',
},
],
temperature: 0.8,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "anthropic/claude-sonnet-4.6",
"max_tokens": 512,
"messages": [
{
"content": "Write a short story opening about a detective finding an unusual clue.",
"role": "user"
}
],
"temperature": 0.8
}'# The Weight of Paper Detective Mara Osei had seen plenty of strange things in fourteen years on the job. She had once found a murder weapon wrapped in a birthday cake. She had once interviewed a parrot that knew the killer's name. But this was different. The victim's apartment was ordinary enough — takeout containers, a dying fern, furniture that looked purchased in a single defeated afternoon at a discount store. Nothing about Leonard Voss suggested a man with enemies. Nothing suggested a man with much of anything. Except the paper. Mara crouched beside the coffee table and studied it without touching it. A single sheet, handwritten, covered edge to edge in the same two words repeated hundreds of times in shrinking letters, spiraling inward like a drain. *I remember. I remember. I remember.* The handwriting started bold and confident at the outer edge. By the center, the letters were barely visible, scratched by what must have been a nearly dead pen — or a nearly dead hand. The medical examiner appeared in the doorway. "No signs of struggle. No forced entry." He paused. "Honestly, Mara, it looks like he just *stopped*." She stood up slowly, slipping her hands into her pockets. "Then what," she said quietly, "was he trying so hard not to forget?" --- *The fern, she noticed, had been recently watered.*
{
"id": "msg_01BfiLNfgBobjw33wuZDP9as",
"type": "message",
"role": "assistant",
"content": [
{
"type": "text",
"text": "# The Weight of Paper\n\nDetective Mara Osei had seen plenty of strange things in fourteen years on the job. She had once found a murder weapon wrapped in a birthday cake. She had once interviewed a parrot that knew the killer's name.\n\nBut this was different.\n\nThe victim's apartment was ordinary enough — takeout containers, a dying fern, furniture that looked purchased in a single defeated afternoon at a discount store. Nothing about Leonard Voss suggested a man with enemies. Nothing suggested a man with much of anything.\n\nExcept the paper.\n\nMara crouched beside the coffee table and studied it without touching it. A single sheet, handwritten, covered edge to edge in the same two words repeated hundreds of times in shrinking letters, spiraling inward like a drain.\n\n*I remember. I remember. I remember.*\n\nThe handwriting started bold and confident at the outer edge. By the center, the letters were barely visible, scratched by what must have been a nearly dead pen — or a nearly dead hand.\n\nThe medical examiner appeared in the doorway. \"No signs of struggle. No forced entry.\" He paused. \"Honestly, Mara, it looks like he just *stopped*.\"\n\nShe stood up slowly, slipping her hands into her pockets.\n\n\"Then what,\" she said quietly, \"was he trying so hard not to forget?\"\n\n---\n\n*The fern, she noticed, had been recently watered.*"
}
],
"model": "claude-sonnet-4-6",
"stop_reason": "end_turn",
"usage": {
"input_tokens": 21,
"output_tokens": 317
},
"stop_sequence": null,
"stop_details": null,
"gatewayMetadata": {
"keySource": "Unified"
}
}Streaming Response — Enable streaming for real-time output
const response = await env.AI.run(
'anthropic/claude-sonnet-4.6',
{
max_tokens: 1024,
messages: [{ content: 'Explain the concept of recursion with a simple example.', role: 'user' }],
stream: true,
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "anthropic/claude-sonnet-4.6",
"max_tokens": 1024,
"messages": [
{
"content": "Explain the concept of recursion with a simple example.",
"role": "user"
}
],
"stream": true
}'# Recursion
## Core Concept
Recursion is when a **function calls itself** to solve a smaller version of the same problem, until it reaches a simple base case it can solve directly.
Think of it like Russian nesting dolls — each doll contains a smaller version of itself, until you reach the smallest one.
---
## Two Essential Parts
| Part | Purpose |
|------|---------|
| **Base Case** | Stops the recursion (prevents infinite loop) |
| **Recursive Case** | Breaks the problem into a smaller version |
---
## Simple Example: Countdown
```python
def countdown(n):
# Base case — stop here
if n == 0:
print("Go!")
return
# Recursive case — call itself with a smaller value
print(n)
countdown(n - 1) # ← calls itself
countdown(3)
```
**Output:**
```
3
2
1
Go!
```
---
## How It Executes Step by Step
```
countdown(3)
→ prints 3, calls countdown(2)
→ prints 2, calls countdown(1)
→ prints 1, calls countdown(0)
→ prints "Go!", returns ✓ BASE CASE
```
---
## Classic Example: Factorial
```python
def factorial(n):
if n == 0: # base case
return 1
return n * factorial(n - 1) # recursive case
print(factorial(4)) # → 24
```
**Why it works:**
```
factorial(4)
= 4 × factorial(3)
= 4 × 3 × factorial(2)
= 4 × 3 × 2 × factorial(1)
= 4 × 3 × 2 × 1 × factorial(0)
= 4 × 3 × 2 × 1 × 1
= 24
```
---
## ⚠️ Common Mistake: Missing Base Case
```python
def broken(n):
print(n)
broken(n - 1) # never stops → stack overflow!
```
---
## When to Use Recursion
✅ **Good fit for:**
- Tree/folder traversal
- Sorting algorithms (merge sort)
- Problems naturally defined recursively (Fibonacci, factorials)
⚠️ **Be careful of:**
- Deep recursion causing stack overflow
- Repeated calculations (use memoization to fix)
---
**The key insight:** Trust that your function works for a smaller input, use that result to solve the current input, and define where to stop.[
{
"type": "message_start",
"message": {
"model": "claude-sonnet-4-6",
"id": "msg_01JqufFVcarQ73V8GUn3XSSC",
"type": "message",
"role": "assistant",
"content": [],
"stop_reason": null,
"stop_sequence": null,
"stop_details": null,
"usage": {
"input_tokens": 19,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"cache_creation": {
"ephemeral_5m_input_tokens": 0,
"ephemeral_1h_input_tokens": 0
},
"output_tokens": 1,
"service_tier": "standard",
"inference_geo": "global"
}
}
},
{
"type": "content_block_start",
"index": 0,
"content_block": {
"type": "text",
"text": ""
}
},
"... 28 more chunks omitted ...",
{
"type": "message_stop"
}
]Web Search — Letting Claude use Anthropic's server-side web search tool to answer with current information
const response = await env.AI.run(
'anthropic/claude-sonnet-4.6',
{
max_tokens: 4096,
messages: [
{
content:
'What were the top news stories about Cloudflare this week? Summarise in three bullets.',
role: 'user',
},
],
tools: [{ max_uses: 3, name: 'web_search', type: 'web_search_20250305' }],
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/messages \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "anthropic/claude-sonnet-4.6",
"max_tokens": 4096,
"messages": [
{
"content": "What were the top news stories about Cloudflare this week? Summarise in three bullets.",
"role": "user"
}
],
"tools": [
{
"max_uses": 3,
"name": "web_search",
"type": "web_search_20250305"
}
]
}'Here's a summary of the top Cloudflare news stories this week: --- • **AI Agent Verification in Bot Management** —
{
"id": "msg_011aLAk6hWx3649oMeuJBm4w",
"type": "message",
"role": "assistant",
"content": [
{
"type": "server_tool_use",
"id": "srvtoolu_017fsFRbkfUvtAZDtsdHQHpk",
"name": "web_search",
"input": {
"query": "Cloudflare news June 2026"
}
},
{
"type": "web_search_tool_result",
"tool_use_id": "srvtoolu_017fsFRbkfUvtAZDtsdHQHpk",
"content": [
{
"type": "web_search_result",
"title": "Cloudflare Release Notes - June 2026 Latest Updates - Releasebot",
"url": "https://releasebot.io/updates/cloudflare",
"encrypted_content": "EswgCioIEBgCIiQ5ODY2MTIzNC03NmUwLTRlMGQtYTgyMS1iZThmOGMzNDc0ZDYSDKsEJxlMa3qQO5JUqBoMFHieeMBm3CiIabVQIjAfi4M7ZSs5NHd7t5JTmrvM/Hf4BrDdFLHQNRjsKoMTfEdwgUt3WHqQUKElEQ3YSjYqzx9YqRMA+faNEhIbKT4P14UT03NEBVT7WCJyTdZpXJKQXE/7QDZrpJZb8aPvIFeJwIs+SZUiMN7M2CVLwElfhPhhWdAXT8o3asJn8/TNOPu4fU6X4vIPkff/gWW3Y8tDhZqXLFJbUrF57FnEsVpRpTyEa6znwLy+VY2MsjTtWYBesOGQlfFPPh+lZgVrcKRPAF5ii5C2IwsDhmm4nZ5esVCZcutrskWWx6rzLyPdVyUVWIVAaYqONAsKqwPu/L9SlhMcHGSppOGW0qYZOoUas+p9qxoOs6QvVyz8rWLc3cFrGmL75DxpJRSIThwHfj7/CPGV8c13VzcK3+pQsd4Y/MNhGpl+CDQtbfftz4bgNcTeXVWYR8kesHMD+EmXh/kpf9fkeGM4GiHMbtf5bFnJYvU00F03kedkErE3GCfBcot8A1zUW6wI1zaS7oCB14JsjR6fMqLvV8YLdXMICIz0pmiuUMtxyLmLZMPTQ0AkAqf7gnDD9FGMTR8EXRlYZBsf+FU4yQ8fQZCUyWqkr2xu3DZxmRcgFm1w3MLPNsk+gXonNV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C9W+yRJuca38QghmnlNfv6Q4NPFaOMboOzyFZ88gLbD0Nf3Brr6njXH2Z7OAqE8zZHutpbtwAyRPm84ng9hPGX2fbnFO+xhTX/9MIxv66mL4dkJpGZBS2VBjaNJX/rNv9CxbO6vzMxT8AaYO3xmmUBIUwSKNSsNOr0PeaHkG+xVSsrSwbJio7+aLaiNE7ouV43PheAiNQnWvIIATcgRvS1/Cjy08QGv8qYQ+fF/4M+BjPPu3vclnZqbUcPj9eYlHKEBPmKq/X6OcPMswY/ttnI0UMT0F1vGj6Fn0EmeG8mwfkD+toWBiCPND6PeydyswoVrLhFbT/eRK2vD6UZ/JOiSX4/I820l3LykHF0d/2czYlHy1mFo1N6bBQ908x0lj1eeMfGFhHhBGlrWg+Ips1D1zQBytO8DxLWfIzu2yhYckPJgHet7SovioK5yMq4RWLtE2bk+oSTRalJ+15YNWCK3LEjuGHEFOjP7iWzCRVZbJ4gA0UZATud5C0TuDuAQ1gkIEYAw==",
"page_age": "2 days ago"
},
{
"type": "web_search_result",
"title": "Press Overview | Cloudflare",
"url": "https://www.cloudflare.com/press/press-releases/",
"encrypted_content": "EvMCCioIEBgCIiQ5ODY2MTIzNC03NmUwLTRlMGQtYTgyMS1iZThmOGMzNDc0ZDYSDCch0SONkciDkIjZyBoMkaSPWo3PaVWy00JBIjDLEt1nqEXoy8JuNkVrddRulYfFkaynmdMj81PTz0pFdNp1JPzH2ivOUIULTwUEnTcq9gHOoLsuFECd+94wuNXYT3y5mDi4JwIF6cgad1D5l1/XcU+IlGgv81XpGKA5mI1bkG8ra1enXlkazfHxp5tRYVKEhAIxK4TZqzxANK0TMXpVIT6HXY6g02RHaguLV01oP59VZ9bcesPf4vju8lNkfcVS/3gi2taiKViTgb5NUzKMmuSdqdmATzHmnPbmTxeTQmvmHYayBxRYCWasF7CyGHeWAYb6VF9c9uPmgOQaNJHotZRlupWt32iJhjuYq2F8JvWLkMvTwzOIRC7q0J5VpRGK/KboVxwkpqN5mQPo1IUcLvcusTdCxr6YaZmbxGZvD+sdbB+0O00YAw==",
"page_age": null
},
{
"type": "web_search_result",
"title": "Cloudflare News | June, 2026 (STARTUP EDITION)",
"url": "https://blog.mean.ceo/cloudflare-news-june-2026/",
"encrypted_content": "EvsgCioIEBgCIiQ5ODY2MTIzNC03NmUwLTRlMGQtYTgyMS1iZThmOGMzNDc0ZDYSDN26YfZgx/3x0lmOBRoMzq0xt+da8XlijBmDIjB608J6yuZ/UpIKBQOUMOlaVHOlbjbRNbgjzTg0h8xL4genq6mxH+csLIh9yqSzEE0q/h+JhNm+c6ZKmYIENTMAvFBsmTolxan/ZL9gXPkkEnqR+8aIIWUr/r9UropurUX8aH/gCUD0Fu8YDz/rRTHZtNEfg/HSNLV/vDBsOWSAY/A+OxF0jC6imZtDUBxi4rYZX3Fn6rECrY4jK9TEoZMQPIwAfqfc3w8laAdzkwcrHgNHIWmum1aHtV/Rd6ISvJHThsbiXa5URNOVkqFaCJ68hu5UX7e3a4+5OHKw+x3HLJ5gynP3cA6eKlVerDuePP+ukD2MUppA0jZY1tyd5CEdwsIxfs9qPwjvUP+dar9tuOSnD4Jn0itbndLANq68v/nNKohRmvKn2GZOjDDBzYu4AF+E0bKF+2DfHxWq0BlJsXB8cWI3aZ2YcafpwwQPcmR0EpJnzQ4YX/9IAYE9r5OwDxzOaXzYhMsgl4lYPQSaLxdm1pHiSvJN91QWaXGuNRUlpU/fIUDsNMw9NmrSBHQ2nH1vvNJCwuTpfrppkD1bosFVwLG73xYymVr2Zbj+K0Qyb+MXJw8Dbwd9jvkpu6JA/sbPTonMYvRI50NrRrsWN/2KjnpsrKwUq1AsTd6D/f+mnseiI7FJEGYralzKn64IdY0CP
... response truncated ...▶messages[]
arrayrequiredmax_tokens
numberrequiredexclusiveMinimum: 0▶system
one oftemperature
numberminimum: 0maximum: 1top_p
numberminimum: 0maximum: 1top_k
numberexclusiveMinimum: 0stream
boolean▶metadata{}
objectid
stringtype
stringconst: messagerole
stringconst: assistant▶content[]
arraymodel
stringstop_reason
string▶usage{}
object