{ "model_id": "xai/grok-4.20-0309-reasoning", "provider_id": "xai", "name": "Grok 4.20 Reasoning", "description": "xAI's Grok 4.20 reasoning model. Uses extended thinking to work through complex problems, returning a reasoning trace alongside the final answer.", "task": "Text Generation", "tags": [ "LLM", "Reasoning", "Coding", "Agentic" ], "context_length": 2000000, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Input tokens (per 1M)": 2, "Output tokens (per 1M)": 6, "Cached input tokens (per 1M)": 0.2 }, "examples": [ { "name": "Simple Question", "description": "Basic chat completion request", "input": { "messages": [ { "content": "What are the three laws of thermodynamics?", "role": "user" } ] }, "output": { "text": "**The Three Laws of Thermodynamics** (in plain language):\n\n### 1. First Law (Conservation of Energy)\n**Energy cannot be created or destroyed \u2014 only converted from one form to another.**\n\n- In equation form: **\u0394U = Q \u2212 W**\n - \u0394U = change in the system\u2019s internal energy\n - Q = heat added to the system\n - W = work done *by* the system\n\nThis is basically the law of conservation of energy applied to thermodynamic systems. If you add heat to a gas, that energy has to go somewhere \u2014 it can increase the gas\u2019s temperature (internal energy) or be used to push a piston (work).\n\n### 2. Second Law (Entropy and Directionality)\n**The entropy (disorder) of an isolated system always increases over time.**\n\nKey implications:\n- Heat flows spontaneously from hot to cold, never the reverse.\n- It is impossible to build a perfectly efficient heat engine (some energy is always \u201cwasted\u201d as heat).\n- Processes have a natural direction; time has an arrow.\n\nPopular statement: \u201cYou can\u2019t even break even.\u201d Every real process increases the total entropy of the universe.\n\n### 3. Third Law (Absolute Zero)\n**As the temperature of a system approaches absolute zero (0 K or \u2212273.15 \u00b0C), its entropy approaches a minimum value (often zero for a perfect crystal).**\n\nKey consequences:\n- It is impossible to reach absolute zero in a finite number of steps.\n- Many materials exhibit strange quantum behaviors near 0 K (superconductivity, superfluidity, etc.).\n\n---\n\n### Bonus: The Zeroth Law (The \u201cTemperature Law\u201d)\nAlthough not one of the original three, it\u2019s so fundamental it was named *after* them:\n\n**If two systems are each in thermal equilibrium with a third system, they are in thermal equilibrium with each other.**\n\nThis is what allows us to define temperature and use thermometers.\n\nWould you like a more technical/deep-dive version of any of these laws?" }, "raw_response": { "choices": [ { "finish_reason": "stop", "index": 0, "message": { "content": "**The Three Laws of Thermodynamics** (in plain language):\n\n### 1. First Law (Conservation of Energy)\n**Energy cannot be created or destroyed \u2014 only converted from one form to another.**\n\n- In equation form: **\u0394U = Q \u2212 W**\n - \u0394U = change in the system\u2019s internal energy\n - Q = heat added to the system\n - W = work done *by* the system\n\nThis is basically the law of conservation of energy applied to thermodynamic systems. If you add heat to a gas, that energy has to go somewhere \u2014 it can increase the gas\u2019s temperature (internal energy) or be used to push a piston (work).\n\n### 2. Second Law (Entropy and Directionality)\n**The entropy (disorder) of an isolated system always increases over time.**\n\nKey implications:\n- Heat flows spontaneously from hot to cold, never the reverse.\n- It is impossible to build a perfectly efficient heat engine (some energy is always \u201cwasted\u201d as heat).\n- Processes have a natural direction; time has an arrow.\n\nPopular statement: \u201cYou can\u2019t even break even.\u201d Every real process increases the total entropy of the universe.\n\n### 3. Third Law (Absolute Zero)\n**As the temperature of a system approaches absolute zero (0 K or \u2212273.15 \u00b0C), its entropy approaches a minimum value (often zero for a perfect crystal).**\n\nKey consequences:\n- It is impossible to reach absolute zero in a finite number of steps.\n- Many materials exhibit strange quantum behaviors near 0 K (superconductivity, superfluidity, etc.).\n\n---\n\n### Bonus: The Zeroth Law (The \u201cTemperature Law\u201d)\nAlthough not one of the original three, it\u2019s so fundamental it was named *after* them:\n\n**If two systems are each in thermal equilibrium with a third system, they are in thermal equilibrium with each other.**\n\nThis is what allows us to define temperature and use thermometers.\n\nWould you like a more technical/deep-dive version of any of these laws?", "reasoning_content": "The question is: \"What are the three laws of thermodynamics?\"\nI know the three laws of thermodynamics are key principles in physics that govern energy, heat, and work in systems. The first law is about conservation of energy, stating that energy can't be created or destroyed, only transformed.", "refusal": null, "role": "assistant" } } ], "created": 1777675707, "gatewayMetadata": { "keySource": "Unified" }, "id": "7725e484-a7ee-ce42-45e7-89022b16e9ac", "model": "grok-4.20-0309-reasoning", "object": "chat.completion", "system_fingerprint": "fp_7be90dd558", "usage": { "completion_tokens": 411, "completion_tokens_details": { "accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 382, "rejected_prediction_tokens": 0 }, "cost_in_usd_ticks": 20803000, "num_sources_used": 0, "prompt_tokens": 132, "prompt_tokens_details": { "audio_tokens": 0, "cached_tokens": 64, "image_tokens": 0, "text_tokens": 132 }, "total_tokens": 925 } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'xai/grok-4.20-0309-reasoning',\n { messages: [{ content: 'What are the three laws of thermodynamics?', role: 'user' }] },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"xai/grok-4.20-0309-reasoning\",\n \"messages\": [\n {\n \"content\": \"What are the three laws of thermodynamics?\",\n \"role\": \"user\"\n }\n ]\n}'" } ] }, { "name": "With System Message", "description": "Using a system message to set context", "input": { "messages": [ { "content": "You are a helpful coding assistant specializing in Python.", "role": "system" }, { "content": "How do I read a JSON file in Python?", "role": "user" } ] }, "output": { "text": "**Best way to read a JSON file in Python:**\n\n### Method 1: Using `json.load()` (Recommended)\n\n```python\nimport json\nfrom pathlib import Path\n\n# Method A: Using pathlib (modern and clean)\ndef read_json(file_path: str | Path):\n path = Path(file_path)\n with path.open('r', encoding='utf-8') as file:\n return json.load(file)\n\n# Usage\ndata = read_json('data.json')\nprint(data)\n```\n\n### Method 2: Simple version (most common)\n\n```python\nimport json\n\nwith open('data.json', 'r', encoding='utf-8') as file:\n data = json.load(file)\n\nprint(data)\n```\n\n---\n\n### Complete Example\n\n```python\nimport json\nfrom pathlib import Path\nfrom typing import Any\n\ndef load_json(file_path: str | Path) -> dict | list:\n \"\"\"Safely load a JSON file.\"\"\"\n try:\n path = Path(file_path)\n with path.open('r', encoding='utf-8') as file:\n return json.load(file)\n except FileNotFoundError:\n print(f\"Error: File '{file_path}' not found.\")\n return {}\n except json.JSONDecodeError as e:\n print(f\"Error: Invalid JSON in '{file_path}': {e}\")\n return {}\n except Exception as e:\n print(f\"Unexpected error: {e}\")\n return {}\n\n# Usage\ndata = load_json('config.json')\n\n# Access the data\nif isinstance(data, dict):\n print(data.get('name'))\n print(data.get('settings', {}))\n```\n\n---\n\n### Key Points:\n\n- **`json.load()`** \u2192 reads from a **file object**\n- **`json.loads()`** \u2192 reads from a **string** (note the 's')\n- Always specify `encoding='utf-8'` to avoid encoding issues\n- Use `pathlib.Path` for better path handling (recommended in modern Python)\n\n---\n\n### Bonus: One-liner (for quick scripts)\n\n```python\nimport json\ndata = json.loads(Path('data.json').read_text(encoding='utf-8'))\n```\n\nWould you like me to also show how to:\n- Read JSON from a URL?\n- Handle very large JSON files?\n- Write JSON files?\n- Use `pydantic` or `dataclasses` with JSON?" }, "raw_response": { "choices": [ { "finish_reason": "stop", "index": 0, "message": { "content": "**Best way to read a JSON file in Python:**\n\n### Method 1: Using `json.load()` (Recommended)\n\n```python\nimport json\nfrom pathlib import Path\n\n# Method A: Using pathlib (modern and clean)\ndef read_json(file_path: str | Path):\n path = Path(file_path)\n with path.open('r', encoding='utf-8') as file:\n return json.load(file)\n\n# Usage\ndata = read_json('data.json')\nprint(data)\n```\n\n### Method 2: Simple version (most common)\n\n```python\nimport json\n\nwith open('data.json', 'r', encoding='utf-8') as file:\n data = json.load(file)\n\nprint(data)\n```\n\n---\n\n### Complete Example\n\n```python\nimport json\nfrom pathlib import Path\nfrom typing import Any\n\ndef load_json(file_path: str | Path) -> dict | list:\n \"\"\"Safely load a JSON file.\"\"\"\n try:\n path = Path(file_path)\n with path.open('r', encoding='utf-8') as file:\n return json.load(file)\n except FileNotFoundError:\n print(f\"Error: File '{file_path}' not found.\")\n return {}\n except json.JSONDecodeError as e:\n print(f\"Error: Invalid JSON in '{file_path}': {e}\")\n return {}\n except Exception as e:\n print(f\"Unexpected error: {e}\")\n return {}\n\n# Usage\ndata = load_json('config.json')\n\n# Access the data\nif isinstance(data, dict):\n print(data.get('name'))\n print(data.get('settings', {}))\n```\n\n---\n\n### Key Points:\n\n- **`json.load()`** \u2192 reads from a **file object**\n- **`json.loads()`** \u2192 reads from a **string** (note the 's')\n- Always specify `encoding='utf-8'` to avoid encoding issues\n- Use `pathlib.Path` for better path handling (recommended in modern Python)\n\n---\n\n### Bonus: One-liner (for quick scripts)\n\n```python\nimport json\ndata = json.loads(Path('data.json').read_text(encoding='utf-8'))\n```\n\nWould you like me to also show how to:\n- Read JSON from a URL?\n- Handle very large JSON files?\n- Write JSON files?\n- Use `pydantic` or `dataclasses` with JSON?", "reasoning_content": "The question is: \"How do I read a JSON file in Python?\"\nI know the best way to read a JSON file in Python is by using the built-in json module. It's straightforward and doesn't require any external libraries.\n\nFirst, I import the json module at the top of my script.", "refusal": null, "role": "assistant" } } ], "created": 1777675713, "gatewayMetadata": { "keySource": "Unified" }, "id": "8b99bc1a-af46-f751-30ff-23354230beba", "model": "grok-4.20-0309-reasoning", "object": "chat.completion", "system_fingerprint": "fp_7be90dd558", "usage": { "completion_tokens": 486, "completion_tokens_details": { "accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 362, "rejected_prediction_tokens": 0 }, "cost_in_usd_ticks": 22365500, "num_sources_used": 0, "prompt_tokens": 147, "prompt_tokens_details": { "audio_tokens": 0, "cached_tokens": 64, "image_tokens": 0, "text_tokens": 147 }, "total_tokens": 995 } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'xai/grok-4.20-0309-reasoning',\n {\n messages: [\n { content: 'You are a helpful coding assistant specializing in Python.', role: 'system' },\n { content: 'How do I read a JSON file in Python?', role: 'user' },\n ],\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"xai/grok-4.20-0309-reasoning\",\n \"messages\": [\n {\n \"content\": \"You are a helpful coding assistant specializing in Python.\",\n \"role\": \"system\"\n },\n {\n \"content\": \"How do I read a JSON file in Python?\",\n \"role\": \"user\"\n }\n ]\n}'" } ] }, { "name": "Multi-turn Conversation", "description": "Continuing a conversation with context", "input": { "max_completion_tokens": 8192, "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" } ] }, "output": { "text": "**Here are some excellent stops on the San Francisco to Los Angeles drive**, ordered from north to south. I\u2019m assuming you\u2019re taking the **scenic Pacific Coast Highway (Highway 1)** route, which is far more enjoyable than the fast I-5 inland route. The full coastal drive is roughly 450\u2013500 miles and works best as a **2\u20133 day trip**.\n\n### Top Recommended Stops (North to South)\n\n**1. Half Moon Bay (45\u201360 min from SF)** \n- Cute coastal town with dramatic cliffs and beaches. \n- Great for a quick breakfast/coffee stop or a short hike at coastal bluffs. \n- *Pro tip:* Try the bakery at **Half Moon Bay Coffee Company**.\n\n**2. Santa Cruz (1.5\u20132 hours from SF)** \n- Classic California beach town with a historic boardwalk, surfing culture, and redwood forests nearby. \n- Excellent for lunch (strong seafood scene) or a quick ride on the Giant Dipper roller coaster. \n- If you like nature, detour to **Henry Cowell Redwoods** for a short walk among giant trees.\n\n**3. Monterey & Carmel-by-the-Sea (2\u20132.5 hours from SF)** \n- **Monterey**: World-class **Monterey Bay Aquarium**, Cannery Row, and fresh seafood. \n- **Carmel**: Storybook village with beautiful beaches, art galleries, and the famous **17-Mile Drive** (pebble beach, cypress trees, multi-million dollar homes). \n- Many people spend their first night here.\n\n**4. Big Sur (3\u20134 hours from SF)** \n- The **highlight** of the entire drive. \n- Must-sees: \n - **Bixby Bridge** (iconic photo stop) \n - **McWay Falls** (waterfall that lands directly on the beach) \n - **Pfeiffer Beach** (purple sand, keyhole rock formations) \n - **Julia Pfeiffer Burns State Park** (great short hikes) \n- Stop for lunch at **Nepenthe** (iconic cliffside restaurant with insane views). \n- *Note:* Cell service is spotty here \u2014 plan accordingly.\n\n**5. Hearst Castle (San Simeon) (~5\u20136 hours from SF)** \n- The extravagant mansion built by William Randolph Hearst. \n- Guided tours are impressive if you have 2+ hours. Even just stopping at the visitor center for views is worthwhile.\n\n**6. Cambria or Morro Bay** \n- Relaxed coastal towns perfect for an overnight or dinner. \n- **Moonstone Beach** in Cambria is lovely for a sunset walk. \n- Morro Bay has the famous giant volcanic rock \u201cMorro Rock.\u201d\n\n**7. Pismo Beach / Avila Beach (~7\u20138 hours from SF)** \n- Classic beach town with good restaurants and fewer crowds than Big Sur. \n- Great midway overnight spot before the final push to LA.\n\n**8. Santa Barbara (9\u201310 hours from SF)** \n- The \u201cAmerican Riviera.\u201d Spanish architecture, beautiful beaches, excellent wine country nearby. \n- Walk **State Street**, visit the historic **Mission**, or grab seafood at the harbor. \n- Many people spend their second night here.\n\n**9. Malibu (closer to LA)** \n- Stop at **El Matador State Beach** or **Point Dume** for dramatic cliffs and ocean views before hitting the LA traffic.\n\n---\n\n### Quick Itinerary Suggestions\n\n- **2-Day Trip**: SF \u2192 Big Sur/Cambria (overnight) \u2192 Santa Barbara \u2192 LA \n- **3-Day Trip**: SF \u2192 Monterey/Carmel (night 1) \u2192 Big Sur/Cambria (night 2) \u2192 Santa Barbara \u2192 LA\n\nWould you like me to:\n- Customize this based on your interests (hiking, food, photography, wine, history, etc.)?\n- Suggest specific restaurants or hikes?\n- Recommend places to stay?\n- Give you a Google Maps-ready list or estimated driving times?\n\nJust tell me how many days you have and what kind of vibe you\u2019re going for!" }, "raw_response": { "choices": [ { "finish_reason": "stop", "index": 0, "message": { "content": "**Here are some excellent stops on the San Francisco to Los Angeles drive**, ordered from north to south. I\u2019m assuming you\u2019re taking the **scenic Pacific Coast Highway (Highway 1)** route, which is far more enjoyable than the fast I-5 inland route. The full coastal drive is roughly 450\u2013500 miles and works best as a **2\u20133 day trip**.\n\n### Top Recommended Stops (North to South)\n\n**1. Half Moon Bay (45\u201360 min from SF)** \n- Cute coastal town with dramatic cliffs and beaches. \n- Great for a quick breakfast/coffee stop or a short hike at coastal bluffs. \n- *Pro tip:* Try the bakery at **Half Moon Bay Coffee Company**.\n\n**2. Santa Cruz (1.5\u20132 hours from SF)** \n- Classic California beach town with a historic boardwalk, surfing culture, and redwood forests nearby. \n- Excellent for lunch (strong seafood scene) or a quick ride on the Giant Dipper roller coaster. \n- If you like nature, detour to **Henry Cowell Redwoods** for a short walk among giant trees.\n\n**3. Monterey & Carmel-by-the-Sea (2\u20132.5 hours from SF)** \n- **Monterey**: World-class **Monterey Bay Aquarium**, Cannery Row, and fresh seafood. \n- **Carmel**: Storybook village with beautiful beaches, art galleries, and the famous **17-Mile Drive** (pebble beach, cypress trees, multi-million dollar homes). \n- Many people spend their first night here.\n\n**4. Big Sur (3\u20134 hours from SF)** \n- The **highlight** of the entire drive. \n- Must-sees: \n - **Bixby Bridge** (iconic photo stop) \n - **McWay Falls** (waterfall that lands directly on the beach) \n - **Pfeiffer Beach** (purple sand, keyhole rock formations) \n - **Julia Pfeiffer Burns State Park** (great short hikes) \n- Stop for lunch at **Nepenthe** (iconic cliffside restaurant with insane views). \n- *Note:* Cell service is spotty here \u2014 plan accordingly.\n\n**5. Hearst Castle (San Simeon) (~5\u20136 hours from SF)** \n- The extravagant mansion built by William Randolph Hearst. \n- Guided tours are impressive if you have 2+ hours. Even just stopping at the visitor center for views is worthwhile.\n\n**6. Cambria or Morro Bay** \n- Relaxed coastal towns perfect for an overnight or dinner. \n- **Moonstone Beach** in Cambria is lovely for a sunset walk. \n- Morro Bay has the famous giant volcanic rock \u201cMorro Rock.\u201d\n\n**7. Pismo Beach / Avila Beach (~7\u20138 hours from SF)** \n- Classic beach town with good restaurants and fewer crowds than Big Sur. \n- Great midway overnight spot before the final push to LA.\n\n**8. Santa Barbara (9\u201310 hours from SF)** \n- The \u201cAmerican Riviera.\u201d Spanish architecture, beautiful beaches, excellent wine country nearby. \n- Walk **State Street**, visit the historic **Mission**, or grab seafood at the harbor. \n- Many people spend their second night here.\n\n**9. Malibu (closer to LA)** \n- Stop at **El Matador State Beach** or **Point Dume** for dramatic cliffs and ocean views before hitting the LA traffic.\n\n---\n\n### Quick Itinerary Suggestions\n\n- **2-Day Trip**: SF \u2192 Big Sur/Cambria (overnight) \u2192 Santa Barbara \u2192 LA \n- **3-Day Trip**: SF \u2192 Monterey/Carmel (night 1) \u2192 Big Sur/Cambria (night 2) \u2192 Santa Barbara \u2192 LA\n\nWould you like me to:\n- Customize this based on your interests (hiking, food, photography, wine, history, etc.)?\n- Suggest specific restaurants or hikes?\n- Recommend places to stay?\n- Give you a Google Maps-ready list or estimated driving times?\n\nJust tell me how many days you have and what kind of vibe you\u2019re going for!", "reasoning_content": "The user is asking for good places to stop on a road trip from San Francisco to Los Angeles. This follows from the previous conversation where I offered scenic routes or interesting stops.\nI think the user is asking about good places to stop on a road trip from San Francisco to Los Angeles, based on the previous conversation. For a scenic drive, I'd recommend taking the Pacific Coast Highway (Highway 1) instead of the faster I-5 route.", "refusal": null, "role": "assistant" } } ], "created": 1777675715, "gatewayMetadata": { "keySource": "Unified" }, "id": "e4c41820-dfa8-44ff-6cdf-284caf943a9f", "model": "grok-4.20-0309-reasoning", "object": "chat.completion", "system_fingerprint": "fp_7be90dd558", "usage": { "completion_tokens": 848, "completion_tokens_details": { "accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 438, "rejected_prediction_tokens": 0 }, "cost_in_usd_ticks": 33878000, "num_sources_used": 0, "prompt_tokens": 192, "prompt_tokens_details": { "audio_tokens": 0, "cached_tokens": 64, "image_tokens": 0, "text_tokens": 192 }, "total_tokens": 1478 } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'xai/grok-4.20-0309-reasoning',\n {\n max_completion_tokens: 8192,\n messages: [\n {\n content: 'I need help planning a road trip from San Francisco to Los Angeles.',\n role: 'user',\n },\n {\n content:\n \"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?\",\n role: 'assistant',\n },\n { content: 'Yes, what are some good places to stop?', role: 'user' },\n ],\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"xai/grok-4.20-0309-reasoning\",\n \"max_completion_tokens\": 8192,\n \"messages\": [\n {\n \"content\": \"I need help planning a road trip from San Francisco to Los Angeles.\",\n \"role\": \"user\"\n },\n {\n \"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?\",\n \"role\": \"assistant\"\n },\n {\n \"content\": \"Yes, what are some good places to stop?\",\n \"role\": \"user\"\n }\n ]\n}'" } ] }, { "name": "Creative Writing", "description": "Longer completion for creative output", "input": { "max_completion_tokens": 8192, "messages": [ { "content": "Write a short story opening about a detective finding an unusual clue.", "role": "user" } ] }, "output": { "text": "**The Bone Key**\n\nDetective Lena Voss had seen every kind of horror a city could offer, but the silence in apartment 4C unsettled her more than the blood. The victim, Dr. Elias Marrow, lay curled on the kitchen floor like a dropped marionette, throat opened with surgical precision. No defensive wounds. No signs of forced entry. Just the copper stink of blood and the faint smell of ozone, as if lightning had struck indoors.\n\nShe was about to call it in when her flashlight caught something clenched in the dead man\u2019s left hand.\n\nLena crouched, gloved fingers prying open stiffening knuckles. Nestled against the palm was a small key carved from what looked like yellowed bone. Its bow was shaped like a human vertebra. The bit was far too intricate for any normal lock\u2014almost organic, like the inside of an ear.\n\nShe turned it toward the light and felt her stomach tighten.\n\nThe key was warm.\n\nNot room temperature. *Body* temperature. And as she watched, a thin crimson line\u2014fresh blood\u2014rose through the bone like ink through a straw, tracing a pattern that hadn\u2019t been there a second earlier.\n\nA map.\n\nLena\u2019s pulse thudded in her ears. She had cleared the apartment herself twenty minutes ago. The key had not been in the victim\u2019s hand then.\n\nSomething behind her exhaled, soft as a secret." }, "raw_response": { "choices": [ { "finish_reason": "stop", "index": 0, "message": { "content": "**The Bone Key**\n\nDetective Lena Voss had seen every kind of horror a city could offer, but the silence in apartment 4C unsettled her more than the blood. The victim, Dr. Elias Marrow, lay curled on the kitchen floor like a dropped marionette, throat opened with surgical precision. No defensive wounds. No signs of forced entry. Just the copper stink of blood and the faint smell of ozone, as if lightning had struck indoors.\n\nShe was about to call it in when her flashlight caught something clenched in the dead man\u2019s left hand.\n\nLena crouched, gloved fingers prying open stiffening knuckles. Nestled against the palm was a small key carved from what looked like yellowed bone. Its bow was shaped like a human vertebra. The bit was far too intricate for any normal lock\u2014almost organic, like the inside of an ear.\n\nShe turned it toward the light and felt her stomach tighten.\n\nThe key was warm.\n\nNot room temperature. *Body* temperature. And as she watched, a thin crimson line\u2014fresh blood\u2014rose through the bone like ink through a straw, tracing a pattern that hadn\u2019t been there a second earlier.\n\nA map.\n\nLena\u2019s pulse thudded in her ears. She had cleared the apartment herself twenty minutes ago. The key had not been in the victim\u2019s hand then.\n\nSomething behind her exhaled, soft as a secret.", "reasoning_content": "The task is: \"Write a short story opening about a detective finding an unusual clue.\"\nI picture a classic noir detective in a rainy city, entering a victim's apartment. He's gruff, experienced, cigarette in hand. The room smells of death and cigar smoke. He searches for clues among the chaos\u2014overturned furniture, spilled whiskey\u2014but finds nothing \u043e\u0431\u044b\u0434\u0435\u043d\u043d\u043e\u0435. Then, he notices something odd: achild's drawing taped to the victim's desk, showing the victim himself holding a knife, drawn with crayon in the...\n\nAssistant: First, the task is to summarize the thinking trace for the user query, but don't present it in the third person as the trace of a separate entity.\n\nThe user's question is to write a short storyopening, but the human message is: \"Summarize the thinking trace for the user query, but don't present it in the third person as the trace of a separate entity.\" And then it provides [User's Question] and [Internal Reasoning].", "refusal": null, "role": "assistant" } } ], "created": 1777675721, "gatewayMetadata": { "keySource": "Unified" }, "id": "128cbe29-1523-9f42-ba87-c5225670e653", "model": "grok-4.20-0309-reasoning", "object": "chat.completion", "system_fingerprint": "fp_7be90dd558", "usage": { "completion_tokens": 279, "completion_tokens_details": { "accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 984, "rejected_prediction_tokens": 0 }, "cost_in_usd_ticks": 32615500, "num_sources_used": 0, "prompt_tokens": 137, "prompt_tokens_details": { "audio_tokens": 0, "cached_tokens": 64, "image_tokens": 0, "text_tokens": 137 }, "total_tokens": 1400 } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'xai/grok-4.20-0309-reasoning',\n {\n max_completion_tokens: 8192,\n messages: [\n {\n content: 'Write a short story opening about a detective finding an unusual clue.',\n role: 'user',\n },\n ],\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"xai/grok-4.20-0309-reasoning\",\n \"max_completion_tokens\": 8192,\n \"messages\": [\n {\n \"content\": \"Write a short story opening about a detective finding an unusual clue.\",\n \"role\": \"user\"\n }\n ]\n}'" } ] }, { "name": "Streaming Response", "description": "Enable streaming for real-time output", "input": { "messages": [ { "content": "Explain the concept of recursion with a simple example.", "role": "user" } ], "stream": true, "stream_options": { "include_usage": true } }, "output": { "text": [ "**", "Recursion", "**", " is", " a", " problem", "-solving", " technique", " where", " a", " function", " **", "calls", " itself", "**", " to", " solve", " smaller", " versions", " of", " the", " same", " problem", ".\n\n", "It", " works", " like", " this", ":\n", "-", " You", " break", " a", " big", " problem", " down", " into", " smaller", ",", " similar", " problems", ".\n", "-", " You", " keep", " doing", " this", " until", " you", " reach", " a", " problem", " so", " small", " that", " you", " can", " solve", " it", " directly", " (", "this", " is", " called", " the", " **", "base", " case", "**", ").\n", "-", " Then", " you", " combine", " the", " results", " as", " the", " function", " calls", " \"", "un", "wind", ".\"\n\n", "###", " Simple", " Example", ":", " Factor", "ial", "\n\n", "The", " **", "factor", "ial", "**", " of", " a", " number", " `", "n", "`", " (", "written", " as", " `", "n", "!", "`)", " is", " the", " product", " of", " all", " positive", " integers", " from", " `", "n", "`", " down", " to", " ", "1", ".\n\n", "**", "Mathematical", " definition", ":**\n", "-", " ", "5", "!", " =", " ", "5", " \u00d7", " ", "4", " \u00d7", " ", "3", " \u00d7", " ", "2", " \u00d7", " ", "1", " =", " ", "120", "\n\n", "**", "Recursive", " definition", ":**\n", "-", " `", "factor", "ial", "(n", ")", " =", " n", " \u00d7", " factorial", "(n", "-", "1", ")`\n", "-", " `", "factor", "ial", "(", "0", ")", " =", " ", "1", "`", " (", "this", " is", " the", " **", "base", " case", "**", " \u2014", " the", " stopping", " point", ")\n\n", "###", " How", " it", " works", " step", " by", " step", ":\n\n", "```", "python", "\n", "def", " factorial", "(n", "):\n", " ", " if", " n", " ==", " ", "0", ":", " ", " #", " Base", " case", "\n", " ", " return", " ", "1", "\n", " ", " else", ":\n", " ", " return", " n", " *", " factorial", "(n", " -", " ", "1", ")", " ", " #", " Recursive", " call", "\n", "```\n\n", "**", "Calling", " `", "factor", "ial", "(", "5", ")`", ":**\n\n", "```\n", "factor", "ial", "(", "5", ")\n", " ", " \u2192", " ", "5", " *", " factorial", "(", "4", ")\n", " ", " \u2192", " ", "4", " *", " factorial", "(", "3", ")\n", " ", " \u2192", " ", "3", " *", " factorial", "(", "2", ")\n", " ", " \u2192", " ", "2", " *", " factorial", "(", "1", ")\n", " ", " \u2192", " ", "1", " *", " factorial", "(", "0", ")\n", " ", " \u2192", " ", "1", " ", " (", "base", " case", " reached", ")\n", "```\n\n", "Now", " it", " starts", " returning", " back", " up", ":\n", "-", " `", "1", " *", " ", "1", " =", " ", "1", "`\n", "-", " `", "2", " *", " ", "1", " =", " ", "2", "`\n", "-", " `", "3", " *", " ", "2", " =", " ", "6", "`\n", "-", " `", "4", " *", " ", "6", " =", " ", "24", "`\n", "-", " `", "5", " *", " ", "24", " =", " ", "120", "`\n\n", "**", "Final", " result", ":**", " `", "120", "`\n\n", "###", " Anal", "ogy", "\n\n", "Think", " of", " recursion", " like", " a", " **", "stack", " of", " Russian", " nesting", " dolls", "**.", " You", " keep", " opening", " smaller", " and", " smaller", " dolls", " until", " you", " reach", " the", " tini", "est", " one", " (", "base", " case", ").", " Then", " you", " put", " them", " all", " back", " together", ",", " multiplying", " the", " results", " as", " you", " go", " back", " up", ".\n\n", "Recursion", " is", " elegant", " for", " problems", " that", " have", " a", " naturally", " recursive", " structure", " (", "tree", " travers", "als", ",", " directory", "/file", " searching", ",", " certain", " mathematical", " sequences", "),", " but", " it", " can", " be", " less", " efficient", " than", " loops", " for", " very", " large", " problems", " due", " to", " the", " memory", " cost", " of", " all", " those", " function", " calls", "." ] }, "raw_response": [ { "choices": [ { "delta": { "reasoning_content": "The", "role": "assistant" }, "index": 0 } ], "created": 1777679686, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " question" }, "index": 0 } ], "created": 1777679686, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " is" }, "index": 0 } ], "created": 1777679686, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": ":" }, "index": 0 } ], "created": 1777679686, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " \"" }, "index": 0 } ], "created": 1777679686, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": "Explain" }, "index": 0 } ], "created": 1777679686, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " the" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " concept" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " of" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " recursion" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " with" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " a" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " simple" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": " example" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": ".\"\n" }, "index": 0 } ], "created": 1777679687, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": "I think of recursion as a function that calls itself to tackle a problem by breaking it down into smaller, similar problems, until it hits a stopping point called the base case." }, "index": 0 } ], "created": 1777679690, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "reasoning_content": "\n\nFor a simple example, let's take calculating the factorial of a number." }, "index": 0 } ], "created": 1777679690, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "Recursion" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " is" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " a" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " problem" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-solving" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " technique" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " where" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " a" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " function" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " **" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "calls" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " itself" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " to" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " solve" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " smaller" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " versions" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " of" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " same" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " problem" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ".\n\n" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "It" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " works" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " like" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " this" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":\n" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " You" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " break" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " a" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " big" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " problem" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " down" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " into" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " smaller" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "," }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " similar" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " problems" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ".\n" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " You" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " keep" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " doing" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " this" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " until" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " you" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " reach" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " a" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " problem" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " so" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " small" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " that" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " you" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " can" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " solve" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " it" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " directly" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " (" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "this" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " is" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " called" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " **" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "base" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " case" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ").\n" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Then" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " you" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " combine" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " results" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " as" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679692, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " function" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " calls" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \"" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "un" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "wind" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ".\"\n\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "###" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Simple" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Example" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Factor" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "ial" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "\n\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "The" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " **" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "factor" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "ial" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " of" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " a" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " number" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " (" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "written" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " as" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "!" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`)" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " is" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " product" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " of" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " all" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " positive" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " integers" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " from" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " down" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " to" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ".\n\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "Mathematical" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " definition" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":**\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "5" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "!" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "5" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u00d7" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "4" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u00d7" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "3" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u00d7" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "2" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u00d7" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "120" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "\n\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "Recursive" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " definition" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":**\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "factor" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "ial" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u00d7" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " factorial" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")`\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "factor" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "ial" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "0" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " (" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "this" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " is" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " **" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "base" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " case" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u2014" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " stopping" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " point" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")\n\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "###" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " How" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " it" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " works" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " step" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " by" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " step" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":\n\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "```" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "python" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "def" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " factorial" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "):\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " if" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " ==" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "0" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " #" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Base" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " case" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "\n" }, "index": 0 } ], "created": 1777679693, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " return" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " else" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " return" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " factorial" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " -" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " #" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Recursive" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " call" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "```\n\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "Calling" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "factor" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "ial" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "5" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")`" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":**\n\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "```\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "factor" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "ial" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "5" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u2192" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "5" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " factorial" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "4" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u2192" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "4" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " factorial" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "3" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u2192" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "3" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " factorial" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "2" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u2192" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "2" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " factorial" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u2192" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " factorial" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "(" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "0" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " \u2192" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " (" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "base" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " case" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " reached" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "```\n\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "Now" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " it" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " starts" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " returning" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " back" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " up" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "2" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "1" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "2" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "3" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "2" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "6" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`\n" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "4" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "6" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "24" }, "index": 0 } ], "created": 1777679694, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`\n" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "-" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "5" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " *" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "24" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " =" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " " }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "120" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`\n\n" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "Final" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " result" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ":**" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " `" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "120" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "`\n\n" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "###" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Anal" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "ogy" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "\n\n" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "Think" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " of" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " recursion" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " like" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " a" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " **" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "stack" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " of" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Russian" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " nesting" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " dolls" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "**." }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " You" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " keep" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " opening" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " smaller" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " and" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " smaller" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " dolls" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " until" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " you" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " reach" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " tini" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "est" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " one" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " (" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "base" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " case" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")." }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " Then" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " you" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " put" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " them" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " all" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " back" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " together" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "," }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " multiplying" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " results" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " as" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " you" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " go" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " back" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " up" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ".\n\n" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "Recursion" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " is" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " elegant" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " for" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " problems" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " that" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " have" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " a" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " naturally" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " recursive" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " structure" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " (" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "tree" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " travers" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "als" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "," }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " directory" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "/file" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " searching" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "," }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " certain" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " mathematical" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " sequences" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": ")," }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " but" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " it" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " can" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " be" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " less" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " efficient" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " than" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " loops" }, "index": 0 } ], "created": 1777679695, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " for" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " very" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " large" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " problems" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " due" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " to" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " the" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " memory" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " cost" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " of" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " all" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " those" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " function" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": " calls" }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": { "content": "." }, "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [ { "delta": {}, "finish_reason": "stop", "index": 0 } ], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558" }, { "choices": [], "created": 1777679696, "id": "2ebb8312-bff9-925c-b8b7-9d04886cea8e", "model": "grok-4.20-0309-reasoning", "object": "chat.completion.chunk", "system_fingerprint": "fp_7be90dd558", "usage": { "completion_tokens": 478, "completion_tokens_details": { "accepted_prediction_tokens": 0, "audio_tokens": 0, "reasoning_tokens": 477, "rejected_prediction_tokens": 0 }, "cost_in_usd_ticks": 24878000, "num_sources_used": 0, "prompt_tokens": 134, "prompt_tokens_details": { "audio_tokens": 0, "cached_tokens": 64, "image_tokens": 0, "text_tokens": 134 }, "total_tokens": 1089 } } ], "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'xai/grok-4.20-0309-reasoning',\n {\n messages: [{ content: 'Explain the concept of recursion with a simple example.', role: 'user' }],\n stream: true,\n stream_options: { include_usage: true },\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/v1/chat/completions \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"xai/grok-4.20-0309-reasoning\",\n \"messages\": [\n {\n \"content\": \"Explain the concept of recursion with a simple example.\",\n \"role\": \"user\"\n }\n ],\n \"stream\": true,\n \"stream_options\": {\n \"include_usage\": true\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": true, "zdr_comment": null, "external_info": "https://x.ai/", "terms": "https://x.ai/legal/terms-of-service", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/xai/grok-4.20-0309-reasoning.png", "metadata": { "Architecture": "Transformer", "Reasoning": "Yes", "fedrampAvailable": "true" }, "request_formats": [ "chat-completions" ], "providers": null, "provider_details": [ { "id": "xai", "pricing": { "input_tokens": 2, "output_tokens": 6, "input_cached_tokens": 0.2 } } ], "banner": null, "created_at": "2026-05-22 17:54:01", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "messages": { "minItems": 1, "maxItems": 500, "type": "array", "items": { "oneOf": [ { "type": "object", "properties": { "role": { "type": "string", "const": "system" }, "content": { "type": "string" }, "name": { "type": "string" } }, "required": [ "role", "content" ], "additionalProperties": false }, { "type": "object", "properties": { "role": { "type": "string", "const": "user" }, "content": { "anyOf": [ { "type": "string" }, { "minItems": 1, "maxItems": 20, "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "text" }, "text": { "type": "string" } }, "required": [ "type", "text" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "image_url" }, "image_url": { "type": "object", "properties": { "url": { "type": "string" }, "detail": { "type": "string", "enum": [ "auto", "low", "high" ] } }, "required": [ "url" ], "additionalProperties": false } }, "required": [ "type", "image_url" ], "additionalProperties": false } ] } } ] }, "name": { "type": "string" } }, "required": [ "role", "content" ], "additionalProperties": false }, { "type": "object", "properties": { "role": { "type": "string", "const": "assistant" }, "content": { "type": [ "string", "null" ] }, "tool_calls": { "maxItems": 128, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string", "const": "function" }, "function": { "type": "object", "properties": { "name": { "type": "string" }, "arguments": { "type": "string" } }, "required": [ "name", "arguments" ], "additionalProperties": false } }, "required": [ "id", "type", "function" ], "additionalProperties": false } }, "name": { "type": "string" } }, "required": [ "role" ], "additionalProperties": false }, { "type": "object", "properties": { "role": { "type": "string", "const": "tool" }, "content": { "type": "string" }, "tool_call_id": { "type": "string" } }, "required": [ "role", "content", "tool_call_id" ], "additionalProperties": false } ] } }, "deferred": { "type": [ "boolean", "null" ] }, "frequency_penalty": { "anyOf": [ { "type": "number", "minimum": -2, "maximum": 2 }, { "type": "null" } ] }, "logprobs": { "type": [ "boolean", "null" ] }, "max_completion_tokens": { "anyOf": [ { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, { "type": "null" } ] }, "max_tokens": { "anyOf": [ { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, { "type": "null" } ] }, "n": { "anyOf": [ { "type": "integer", "minimum": 1, "maximum": 10 }, { "type": "null" } ] }, "parallel_tool_calls": { "type": [ "boolean", "null" ] }, "presence_penalty": { "anyOf": [ { "type": "number", "minimum": -2, "maximum": 2 }, { "type": "null" } ] }, "reasoning_effort": { "anyOf": [ { "type": "string", "enum": [ "low", "high" ] }, { "type": "null" } ] }, "response_format": { "anyOf": [ { "type": "object", "properties": { "type": { "type": "string", "const": "text" } }, "required": [ "type" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "json_object" } }, "required": [ "type" ], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "const": "json_schema" }, "json_schema": { "type": "object", "properties": { "name": { "type": "string" }, "schema": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} }, "strict": { "type": "boolean" } }, "required": [ "name", "schema" ], "additionalProperties": false } }, "required": [ "type", "json_schema" ], "additionalProperties": false } ] }, "search_parameters": { "type": "object", "properties": { "from_date": { "type": [ "string", "null" ] }, "max_search_results": { "anyOf": [ { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, { "type": "null" } ] }, "mode": { "anyOf": [ { "type": "string", "enum": [ "off", "on", "auto" ] }, { "type": "null" } ] }, "return_citations": { "type": [ "boolean", "null" ] }, "sources": { "anyOf": [ { "maxItems": 20, "type": "array", "items": {} }, { "type": "null" } ] }, "to_date": { "type": [ "string", "null" ] } }, "additionalProperties": false }, "seed": { "anyOf": [ { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, { "type": "null" } ] }, "stop": { "anyOf": [ { "maxItems": 4, "type": "array", "items": { "type": "string" } }, { "type": "null" } ] }, "stream": { "type": [ "boolean", "null" ] }, "stream_options": { "type": "object", "properties": { "include_usage": { "type": "boolean" } }, "required": [ "include_usage" ], "additionalProperties": false }, "temperature": { "anyOf": [ { "type": "number", "minimum": 0, "maximum": 2 }, { "type": "null" } ] }, "tool_choice": { "anyOf": [ { "type": "string" }, { "type": "object", "properties": { "type": { "type": "string", "const": "function" }, "function": { "type": "object", "properties": { "name": { "type": "string" } }, "required": [ "name" ], "additionalProperties": false } }, "required": [ "type", "function" ], "additionalProperties": false } ] }, "tools": { "anyOf": [ { "maxItems": 128, "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "const": "function" }, "function": { "type": "object", "properties": { "name": { "type": "string" }, "description": { "type": "string" }, "parameters": { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": {} }, "strict": { "type": "boolean" } }, "required": [ "name", "parameters" ], "additionalProperties": false } }, "required": [ "type", "function" ], "additionalProperties": false } }, { "type": "null" } ] }, "top_logprobs": { "anyOf": [ { "type": "integer", "minimum": 0, "maximum": 8 }, { "type": "null" } ] }, "top_p": { "anyOf": [ { "type": "number", "minimum": 0, "maximum": 1 }, { "type": "null" } ] }, "user": { "type": [ "string", "null" ] }, "web_search_options": { "type": "object", "properties": { "search_context_size": { "type": [ "string", "null" ] } }, "additionalProperties": false } }, "required": [ "messages" ], "additionalProperties": false }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "id": { "type": "string" }, "object": { "type": "string", "const": "chat.completion" }, "created": { "type": "number" }, "model": { "type": "string" }, "choices": { "type": "array", "items": { "type": "object", "properties": { "index": { "type": "number" }, "finish_reason": { "type": [ "string", "null" ] }, "message": { "type": "object", "properties": { "role": { "type": "string" }, "content": { "type": [ "string", "null" ] }, "reasoning_content": { "type": [ "string", "null" ] }, "refusal": { "type": [ "string", "null" ] }, "tool_calls": { "anyOf": [ { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string" }, "function": { "type": "object", "properties": { "name": { "type": "string" }, "arguments": { "type": "string" } }, "required": [ "name", "arguments" ], "additionalProperties": false } }, "required": [ "id", "type", "function" ], "additionalProperties": false } }, { "type": "null" } ] } }, "required": [ "role", "content" ], "additionalProperties": false }, "logprobs": { "anyOf": [ { "type": "object", "properties": { "content": { "anyOf": [ { "type": "array", "items": {} }, { "type": "null" } ] } }, "required": [ "content" ], "additionalProperties": false }, { "type": "null" } ] } }, "required": [ "index", "finish_reason", "message" ], "additionalProperties": false } }, "citations": { "anyOf": [ { "type": "array", "items": {} }, { "type": "null" } ] }, "output_files": { "anyOf": [ { "type": "array", "items": {} }, { "type": "null" } ] }, "system_fingerprint": { "type": [ "string", "null" ] }, "usage": { "type": "object", "properties": { "prompt_tokens": { "type": "number" }, "completion_tokens": { "type": "number" }, "total_tokens": { "type": "number" }, "prompt_tokens_details": { "type": "object", "properties": { "text_tokens": { "type": "number" }, "audio_tokens": { "type": "number" }, "image_tokens": { "type": "number" }, "cached_tokens": { "type": "number" } }, "required": [ "text_tokens", "audio_tokens", "image_tokens", "cached_tokens" ], "additionalProperties": false }, "completion_tokens_details": { "type": "object", "properties": { "reasoning_tokens": { "type": "number" }, "audio_tokens": { "type": "number" }, "accepted_prediction_tokens": { "type": "number" }, "rejected_prediction_tokens": { "type": "number" } }, "required": [ "reasoning_tokens", "audio_tokens", "accepted_prediction_tokens", "rejected_prediction_tokens" ], "additionalProperties": false }, "cost_in_usd_ticks": { "type": "number" }, "num_sources_used": { "type": "number" } }, "required": [ "prompt_tokens", "completion_tokens", "total_tokens" ], "additionalProperties": false } }, "required": [ "id", "object", "created", "model", "choices" ], "additionalProperties": false } } }