{"id":84720,"date":"2025-02-12T22:24:20","date_gmt":"2025-02-12T22:24:20","guid":{"rendered":"https:\/\/peraltafinancing.com\/analytics\/can-o3-mini-replace-deepseek-r1-for-logical-reasoning\/"},"modified":"2025-02-12T22:24:20","modified_gmt":"2025-02-12T22:24:20","slug":"can-o3-mini-replace-deepseek-r1-for-logical-reasoning","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=84720","title":{"rendered":"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning?"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div id=\"article-start\">\n<p>AI-powered reasoning models are taking the world by storm in 2025! With the launch of DeepSeek-R1 and <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/02\/openai-o3-mini\/\" target=\"_blank\" rel=\"noreferrer noopener\">o3-mini<\/a>, we have seen unprecedented levels of logical reasoning capabilities in AI chatbots. In this article, we will access these models via their APIs and evaluate their logical reasoning skills to find out if o3-mini can replace <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/01\/deepseek-r1\/\" target=\"_blank\" rel=\"noreferrer noopener\">DeepSeek-R1<\/a>. We will be comparing their performance on standard benchmarks as well as real-world applications like solving logical puzzles and even building a Tetris game! So buckle up and join the ride.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-deepseek-r1-vs-o3-mini-logical-reasoning-benchmarks\">DeepSeek-R1 vs o3-mini: Logical Reasoning Benchmarks<\/h2>\n<p>DeepSeek-R1 and o3-mini offer unique approaches to structured thinking and deduction, making them apt for various kinds of complex problem-solving tasks. Before we speak of their benchmark performance, let\u2019s first have a sneak peek at the architecture of these models.<\/p>\n<p>o3-mini is OpenAI\u2019s most advanced reasoning model. It uses a dense transformer architecture, processing each token with all model parameters for strong performance but high resource consumption. In contrast, DeepSeek\u2019s most logical model, R1, employs a Mixture-of-Experts (MoE) framework, activating only a subset of parameters per input for greater efficiency. This makes DeepSeek-R1 more scalable and computationally optimized while maintaining solid performance.<\/p>\n<p><em>Learn More: <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/02\/openai-o3-mini-vs-deepseek-r1\/\" target=\"_blank\" rel=\"noreferrer noopener\">Is OpenAI\u2019s o3-mini Better Than DeepSeek-R1?<\/a><\/em><\/p>\n<p>Now what we need to see is how well these models perform in logical reasoning tasks. First, let\u2019s have a look at their performance in the livebench benchmark tests.<\/p>\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"872\" height=\"259\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp\" alt=\"o3-mini &amp; DeepSeek-R1 Logical Reasoning benchmarks\" class=\"wp-image-221228\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/benchmarks-1-300x89.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/benchmarks-1-768x228.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/benchmarks-1-150x45.webp 150w\" sizes=\"(max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p>Sources: <a href=\"https:\/\/livebench.ai\/#\/\" target=\"_blank\" rel=\"nofollow noopener\">livebench.ai<\/a><\/p>\n<p>The benchmark results show that OpenAI\u2019s o3-mini outperforms DeepSeek-R1 in almost all aspects, except for math. With a global average score of 73.94 compared to DeepSeek\u2019s 71.38, the o3-mini demonstrates slightly stronger overall performance. It particularly excels in reasoning, achieving 89.58 versus DeepSeek\u2019s 83.17, reflecting superior analytical and problem-solving capabilities.<\/p>\n<p><em>Also Read: <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/02\/gemini-2-0-pro-vs-deepseek-r1\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Gemini 2.0 Pro vs DeepSeek-R1: Who Does Coding Better?<\/a><\/em><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-deepseek-r1-vs-o3-mini-api-pricing-comparison\">DeepSeek-R1 vs o3-mini: API Pricing Comparison<\/h2>\n<p>Since we are testing these models through their APIs, let\u2019s see how much these models cost.<\/p>\n<div class=\"table-responsive mb-3\">\n<table class=\"table table-hover table-bordered\">\n<thead\/>\n<tbody>\n<tr>\n<td>Model<\/td>\n<td>Context length<\/td>\n<td>Input Price<\/td>\n<td>Cached Input Price<\/td>\n<td>Output Price<\/td>\n<\/tr>\n<tr>\n<td>o3-mini<\/td>\n<td>200k<\/td>\n<td>$1.10\/M tokens<\/td>\n<td>$0.55\/M tokens<\/td>\n<td>$4.40\/M tokens<\/td>\n<\/tr>\n<tr>\n<td>deepseek-chat<\/td>\n<td>64k<\/td>\n<td>$0.27\/M tokens<\/td>\n<td>$0.07\/M tokens<\/td>\n<td>$1.10\/M tokens<\/td>\n<\/tr>\n<tr>\n<td>deepseek-reasoner<\/td>\n<td>64k<\/td>\n<td>$0.55\/M tokens<\/td>\n<td>$0.14\/M tokens<\/td>\n<td>$2.19\/M tokens<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>As seen in the table, OpenAI\u2019s o3-mini is nearly twice as expensive as DeepSeek R1 in terms of API costs. It charges $1.10 per million tokens for input and $4.40 for output, whereas DeepSeek R1 offers a more cost-effective rate of $0.55 per million tokens for input and $2.19 for output, making it a more budget-friendly option for large-scale applications.<\/p>\n<p>Sources: <a href=\"https:\/\/api-docs.deepseek.com\/quick_start\/pricing\" target=\"_blank\" rel=\"nofollow noopener\">DeepSeek-R1<\/a> | <a href=\"https:\/\/openai.com\/api\/pricing\/\" target=\"_blank\" rel=\"nofollow noopener\">o3-mini<\/a><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-how-to-access-deepseek-r1-and-o3-mini-via-api\">How to Access DeepSeek-R1 and o3-mini via API<\/h2>\n<p>Before we step into the hands-on performance comparison, let\u2019s learn how to access DeepSeek-R1 and o3-mini using APIs. <\/p>\n<p>All you have to do for this, is import the necessary libraries and api keys:<\/p>\n<pre class=\"wp-block-code\"><code>from openai import OpenAI\nfrom IPython.display import display, Markdown\nimport time<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>with open(\"path_of_api_key\") as file:\n   openai_api_key = file.read().strip()<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>with open(\"path_of_api_key\") as file:\n   deepseek_api = file.read().strip()<\/code><\/pre>\n<h2 class=\"wp-block-heading\" id=\"h-deepseek-r1-vs-o3-mini-logical-reasoning-comparison\">DeepSeek-R1 vs o3-mini: Logical Reasoning Comparison<\/h2>\n<p>Now that we\u2019ve gotten the API access, let\u2019s compare DeepSeek-R1 and o3-mini based on their logical reasoning capabilities. For this, we will give the same prompt to both the models and evaluate their responses based on these metrics:<\/p>\n<ol class=\"wp-block-list\">\n<li>Time taken by the model to generate the response,<\/li>\n<li>Quality of the generated response, and<\/li>\n<li>Cost incurred to generate the response.<\/li>\n<\/ol>\n<p>We will then score the models 0 or 1 for each task, depending on their performance. So let\u2019s try out the tasks and see who emerges as the winner in the DeepSeek-R1 vs o3-mini reasoning battle!<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-task-1-building-a-tetris-game\">Task 1: Building a Tetris Game<\/h3>\n<p>This task requires the model to implement a fully functional Tetris game using Python, efficiently managing game logic, piece movement, collision detection, and rendering without relying on external game engines.<\/p>\n<p><strong>Prompt:<\/strong> <em>\u201cWrite a python code for this problem: generate a Python code for the Tetris game\u201c<\/em><\/p>\n<p><strong>Input to DeepSeek-R1 API<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>INPUT_COST_CACHE_HIT = 0.14 \/ 1_000_000  # $0.14 per 1M tokens\nINPUT_COST_CACHE_MISS = 0.55 \/ 1_000_000  # $0.55 per 1M tokens\nOUTPUT_COST = 2.19 \/ 1_000_000  # $2.19 per 1M tokens\n\n# Start timing\ntask1_start_time = time.time()\n\n# Initialize OpenAI client for DeepSeek API\nclient = OpenAI(api_key=api_key, base_url=\"https:\/\/api.deepseek.com\")\n\nmessages = [\n    {\n        \"role\": \"system\",\n        \"content\": \"\"\"You are a professional Programmer with a large experience.\"\"\"\n    },\n    {\n        \"role\": \"user\",\n        \"content\": \"\"\"write a python code for this problem: generate a python code for Tetris game.\"\"\"\n    }\n]\n\n# Get token count using tiktoken (adjust model name if necessary)\nencoding = tiktoken.get_encoding(\"cl100k_base\")  # Use a compatible tokenizer\ninput_tokens = sum(len(encoding.encode(msg[\"content\"])) for msg in messages)\n\n# Call DeepSeek API\nresponse = client.chat.completions.create(\n    model=\"deepseek-reasoner\",\n    messages=messages,\n    stream=False\n)\n\n# Get output token count\noutput_tokens = len(encoding.encode(response.choices[0].message.content))\n\ntask1_end_time = time.time()\n\ntotal_time_taken = task1_end_time - task1_start_time\n\n# Assume cache miss for worst-case pricing (adjust if cache info is available)\ninput_cost = (input_tokens \/ 1_000_000) * INPUT_COST_CACHE_MISS\noutput_cost = (output_tokens \/ 1_000_000) * OUTPUT_COST\n\ntotal_cost = input_cost + output_cost\n\n# Print results\nprint(\"Response:\", response.choices[0].message.content)\nprint(\"------------------ Total Time Taken for Task 1: ------------------\", total_time_taken)\nprint(f\"Input Tokens: {input_tokens}, Output Tokens: {output_tokens}\")\nprint(f\"Estimated Cost: ${total_cost:.6f}\")\n\n# Display result\nfrom IPython.display import Markdown\ndisplay(Markdown(response.choices[0].message.content))<\/code><\/pre>\n<p><strong>Response by DeepSeek-R1<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"549\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1deepseekr1.webp\" alt=\"DeepSeek-R1 task 1 output\" class=\"wp-image-221229\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1deepseekr1.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1deepseekr1-300x189.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1deepseekr1-768x484.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1deepseekr1-150x94.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p>You can find DeepSeek-R1\u2019s complete response <a href=\"https:\/\/drive.google.com\/file\/d\/1CthXayLC7PPs9XCTpG-s1qVOPHUqz9MT\/view?usp=sharing\" target=\"_blank\" rel=\"nofollow noopener\">here<\/a>.<\/p>\n<p><strong>Output token cost:<\/strong><\/p>\n<p>Input Tokens: 28 | Output Tokens: 3323 | Estimated Cost: $0.0073<\/p>\n<p><strong>Code Output<\/strong><\/p>\n<p><iframe title=\"YouTube video\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/deepseekr1.mp4\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><strong>Input to o3-mini API<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>task1_start_time = time.time()\n\n\nclient = OpenAI(api_key=api_key)\n\nmessages = messages=[\n       {\n       \"role\": \"system\",\n       \"content\": \"\"\"You are a professional Programmer with a large experience .\"\"\"\n\n\n   },\n{\n       \"role\": \"user\",\n       \"content\": \"\"\"write a python code for this problem: generate a python code for Tetris game.\n\"\"\"\n\n\n   }\n   ]\n\n\n# Use a compatible encoding (cl100k_base is the best option for new OpenAI models)\nencoding = tiktoken.get_encoding(\"cl100k_base\")\n\n\n# Calculate token counts\ninput_tokens = sum(len(encoding.encode(msg[\"content\"])) for msg in messages)\n\n\ncompletion = client.chat.completions.create(\n   model=\"o3-mini-2025-01-31\",\n   messages=messages\n)\n\n\noutput_tokens = len(encoding.encode(completion.choices[0].message.content))\n\n\ntask1_end_time = time.time()\n\n\n\n\ninput_cost_per_1k = 0.0011  # Example: $0.005 per 1,000 input tokens\noutput_cost_per_1k = 0.0044  # Example: $0.015 per 1,000 output tokens\n\n\n# Calculate cost\ninput_cost = (input_tokens \/ 1000) * input_cost_per_1k\noutput_cost = (output_tokens \/ 1000) * output_cost_per_1k\ntotal_cost = input_cost + output_cost\nprint(completion.choices[0].message)\nprint(\"----------------=Total Time Taken for task 1:----------------- \", task1_end_time - task1_start_time)\nprint(f\"Input Tokens: {input_tokens}, Output Tokens: {output_tokens}\")\nprint(f\"Estimated Cost: ${total_cost:.6f}\")\n\n\n# Display result\nfrom IPython.display import Markdown\ndisplay(Markdown(completion.choices[0].message.content))<\/code><\/pre>\n<p><strong>Response by o3-mini<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"675\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1o3mini.webp\" alt=\"o3-mini task 1 output\" class=\"wp-image-221232\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1o3mini.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1o3mini-300x232.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1o3mini-768x594.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task1o3mini-150x116.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p>You can find o3-mini\u2019s complete response <a href=\"https:\/\/drive.google.com\/file\/d\/1mBOtWQjof8Q6pGhPEp735v5pXYOsVFWD\/view?usp=sharing\" target=\"_blank\" rel=\"nofollow noopener\">here<\/a>.<\/p>\n<p><strong>Output token cost:\u00a0<\/strong><\/p>\n<p>Input Tokens: 28 | Output Tokens: 3235 | Estimated Cost: $0.014265<\/p>\n<p><strong>Code Output<\/strong><\/p>\n<p><iframe title=\"YouTube video\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3_screen_recording.mp4\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><b>Comparative Analysis<\/b><\/p>\n<p>In this task, the models were required to generate functional Tetris code that allows for actual gameplay. DeepSeek-R1 successfully produced a fully working implementation, as demonstrated in the code output video. In contrast, while o3-mini\u2019s code appeared well-structured, it encountered errors during execution. As a result, DeepSeek-R1 outperforms o3-mini in this scenario, delivering a more reliable and playable solution.<\/p>\n<p><strong>Score:<\/strong><b> <\/b>DeepSeek-R1: 1 | o3-mini: 0<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-task-2-analyzing-relational-inequalities\">Task 2: Analyzing Relational Inequalities<\/h3>\n<p>This task requires the model to efficiently analyze relational inequalities rather than relying on basic sorting methods.<\/p>\n<p><strong>Prompt: <\/strong>\u201c <i>In the following question assuming the given statements to be true, find which of the conclusion among the given conclusions is\/are definitely true and then give your answers accordingly.\u00a0<\/i><\/p>\n<p><i>Statements:\u00a0<\/i><\/p>\n<p><i>H &gt; F \u2264 O \u2264 L; F \u2265 V <\/i><\/p>\n<p><i>Conclusions: I. L \u2265 V II. O &gt; D\u00a0<\/i><\/p>\n<p><i>The options are:<\/i><\/p>\n<p><i>\u00a0A. Only I is true\u00a0<\/i><\/p>\n<p><i>B. Only II is true\u00a0<\/i><\/p>\n<p><i>C. Both I and II are true<\/i><\/p>\n<p><i>D. Either I or II is true\u00a0<\/i><\/p>\n<p><i>E. Neither I nor II is true.\u201d<\/i><\/p>\n<p><strong>Input to DeepSeek-R1 API<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>INPUT_COST_CACHE_HIT = 0.14 \/ 1_000_000  # $0.14 per 1M tokens\nINPUT_COST_CACHE_MISS = 0.55 \/ 1_000_000  # $0.55 per 1M tokens\nOUTPUT_COST = 2.19 \/ 1_000_000  # $2.19 per 1M tokens\n\n# Start timing\ntask2_start_time = time.time()\n\n# Initialize OpenAI client for DeepSeek API\nclient = OpenAI(api_key=api_key, base_url=\"https:\/\/api.deepseek.com\")\n\nmessages = [\n    {\"role\": \"system\", \"content\": \"You are an expert in solving Reasoning Problems. Please solve the given problem.\"},\n    {\"role\": \"user\", \"content\": \"\"\" In the following question, assuming the given statements to be true, find which of the conclusions among given conclusions is\/are definitely true and then give your answers accordingly.\n        Statements: H &gt; F \u2264 O \u2264 L; F \u2265 V  D\n        The options are:\n        A. Only I is true \n        B. Only II is true\n        C. Both I and II are true\n        D. Either I or II is true\n        E. Neither I nor II is true\n    \"\"\"}\n]\n\n# Get token count using tiktoken (adjust model name if necessary)\nencoding = tiktoken.get_encoding(\"cl100k_base\")  # Use a compatible tokenizer\ninput_tokens = sum(len(encoding.encode(msg[\"content\"])) for msg in messages)\n\n# Call DeepSeek API\nresponse = client.chat.completions.create(\n    model=\"deepseek-reasoner\",\n    messages=messages,\n    stream=False\n)\n\n# Get output token count\noutput_tokens = len(encoding.encode(response.choices[0].message.content))\n\ntask2_end_time = time.time()\n\ntotal_time_taken = task2_end_time - task2_start_time\n\n# Assume cache miss for worst-case pricing (adjust if cache info is available)\ninput_cost = (input_tokens \/ 1_000_000) * INPUT_COST_CACHE_MISS\noutput_cost = (output_tokens \/ 1_000_000) * OUTPUT_COST\n\ntotal_cost = input_cost + output_cost\n\n# Print results\nprint(\"Response:\", response.choices[0].message.content)\nprint(\"------------------ Total Time Taken for Task 2: ------------------\", total_time_taken)\nprint(f\"Input Tokens: {input_tokens}, Output Tokens: {output_tokens}\")\nprint(f\"Estimated Cost: ${total_cost:.6f}\")\n\n# Display result\nfrom IPython.display import Markdown\ndisplay(Markdown(response.choices[0].message.content))<\/code><\/pre>\n<p><strong>Output token cost:<\/strong><\/p>\n<p>Input Tokens: 136 | Output Tokens: 352 | Estimated Cost: $0.000004<\/p>\n<p><strong>Response by DeepSeek-R1<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"799\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2deepseekr1.webp\" alt=\"deepseek-r1 task 2 output\" class=\"wp-image-221237\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2deepseekr1.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2deepseekr1-300x275.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2deepseekr1-768x704.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2deepseekr1-150x137.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p><strong>Input to o3-mini API<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>task2_start_time = time.time()\n\nclient = OpenAI(api_key=api_key)\n\nmessages = [\n    {\n        \"role\": \"system\",\n        \"content\": \"\"\"You are an expert in solving Reasoning Problems. Please solve the given problem\"\"\"\n    },\n    {\n        \"role\": \"user\",\n        \"content\": \"\"\"In the following question, assuming the given statements to be true, find which of the conclusions among given conclusions is\/are definitely true and then give your answers accordingly.\n        Statements: H &gt; F \u2264 O \u2264 L; F \u2265 V  D\n        The options are:\n        A. Only I is true \n        B. Only II is true\n        C. Both I and II are true\n        D. Either I or II is true\n        E. Neither I nor II is true\n        \"\"\"\n    }\n]\n\n# Use a compatible encoding (cl100k_base is the best option for new OpenAI models)\nencoding = tiktoken.get_encoding(\"cl100k_base\")\n\n# Calculate token counts\ninput_tokens = sum(len(encoding.encode(msg[\"content\"])) for msg in messages)\n\ncompletion = client.chat.completions.create(\n    model=\"o3-mini-2025-01-31\",\n    messages=messages\n)\n\noutput_tokens = len(encoding.encode(completion.choices[0].message.content))\n\ntask2_end_time = time.time()\n\n\ninput_cost_per_1k = 0.0011  # Example: $0.005 per 1,000 input tokens\noutput_cost_per_1k = 0.0044  # Example: $0.015 per 1,000 output tokens\n\n# Calculate cost\ninput_cost = (input_tokens \/ 1000) * input_cost_per_1k\noutput_cost = (output_tokens \/ 1000) * output_cost_per_1k\ntotal_cost = input_cost + output_cost\n\n\n# Print results\nprint(completion.choices[0].message)\nprint(\"----------------=Total Time Taken for task 2:----------------- \", task2_end_time - task2_start_time)\nprint(f\"Input Tokens: {input_tokens}, Output Tokens: {output_tokens}\")\nprint(f\"Estimated Cost: ${total_cost:.6f}\")\n\n# Display result\nfrom IPython.display import Markdown\ndisplay(Markdown(completion.choices[0].message.content))<\/code><\/pre>\n<p><strong>Output token cost:<\/strong><\/p>\n<p>Input Tokens: 135 | Output Tokens: 423 | Estimated Cost: $0.002010<\/p>\n<p><strong>Response by o3-mini<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"824\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2o3mini.webp\" alt=\"o3-mini task 2 output\" class=\"wp-image-221240\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2o3mini.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2o3mini-300x283.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2o3mini-768x726.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/task2o3mini-150x142.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p><strong>Comparative Analysis<\/strong><\/p>\n<p>o3-mini delivers the most efficient solution, providing a concise yet accurate response in significantly less time. It maintains clarity while ensuring logical soundness, making it ideal for quick reasoning tasks. DeepSeek-R1, while equally correct, is much slower and more verbose. Its detailed breakdown of logical relationships enhances explainability but may feel excessive for straightforward evaluations. Though both models arrive at the same conclusion, o3-mini\u2019s speed and direct approach make it the better choice for practical use.<\/p>\n<p><strong>Score: <\/strong>DeepSeek-R1: 0 | o3-mini: 1<\/p>\n<h3 class=\"wp-block-heading\" id=\"h-task-3-logical-reasoning-in-math\">Task 3: Logical Reasoning in Math<\/h3>\n<p>This task challenges the model to recognize numerical patterns, which may involve arithmetic operations, multiplication, or a combination of mathematical rules. Instead of brute-force searching, the model must adopt a structured approach to deduce the hidden logic efficiently.<\/p>\n<p><strong>Prompt:<\/strong> \u201c<i>Study the given matrix carefully and select the number from among the given options that can replace the question mark (?) in it.<\/i><\/p>\n<p>____________<\/p>\n<p>|\u00a0 7\u00a0 | 13\u00a0 | 174|<\/p>\n<p>|\u00a0 9\u00a0 | 25\u00a0 | 104|<\/p>\n<p>|\u00a0 11\u00a0 | 30\u00a0 \u00a0| ? \u00a0 |<\/p>\n<p>|_____|____|___|<\/p>\n<p><i>The options are:<\/i><\/p>\n<p><i>\u00a0A 335<\/i><\/p>\n<p><i>B 129<\/i><\/p>\n<p><i>C 431<\/i><\/p>\n<p><i>D 100<\/i><\/p>\n<p><i>\u00a0Please mention your approach that you have taken at each step.\u201c<\/i><\/p>\n<p><strong>Input to DeepSeek-R1 API<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>INPUT_COST_CACHE_HIT = 0.14 \/ 1_000_000  # $0.14 per 1M tokens\nINPUT_COST_CACHE_MISS = 0.55 \/ 1_000_000  # $0.55 per 1M tokens\nOUTPUT_COST = 2.19 \/ 1_000_000  # $2.19 per 1M tokens\n\n# Start timing\ntask3_start_time = time.time()\n\n# Initialize OpenAI client for DeepSeek API\nclient = OpenAI(api_key=api_key, base_url=\"https:\/\/api.deepseek.com\")\n\nmessages = [\n{\n\t\t\"role\": \"system\",\n\t\t\"content\": \"\"\"You are a Expert in solving Reasoning Problems. Please solve the given problem\"\"\"\n\n\t},\n {\n\t\t\"role\": \"user\",\n\t\t\"content\": \"\"\" \nStudy the given matrix carefully and select the number from among the given options that can replace the question mark (?) in it.\n    __________________\n\t|  7  | 13\t| 174| \n\t|  9  | 25\t| 104|\n\t|  11 | 30\t| ?  |\n    |_____|_____|____|\n    The options are: \n   A 335\n   B 129\n   C 431 \n   D 100\n   Please mention your approch that you have taken at each step\n \"\"\"\n\n\t}\n]\n# Get token count using tiktoken (adjust model name if necessary)\nencoding = tiktoken.get_encoding(\"cl100k_base\")  # Use a compatible tokenizer\ninput_tokens = sum(len(encoding.encode(msg[\"content\"])) for msg in messages)\n\n# Call DeepSeek API\nresponse = client.chat.completions.create(\n    model=\"deepseek-reasoner\",\n    messages=messages,\n    stream=False\n)\n\n# Get output token count\noutput_tokens = len(encoding.encode(response.choices[0].message.content))\n\ntask3_end_time = time.time()\n\ntotal_time_taken = task3_end_time - task3_start_time\n\n# Assume cache miss for worst-case pricing (adjust if cache info is available)\ninput_cost = (input_tokens \/ 1_000_000) * INPUT_COST_CACHE_MISS\noutput_cost = (output_tokens \/ 1_000_000) * OUTPUT_COST\n\ntotal_cost = input_cost + output_cost\n\n# Print results\nprint(\"Response:\", response.choices[0].message.content)\nprint(\"------------------ Total Time Taken for Task 3: ------------------\", total_time_taken)\nprint(f\"Input Tokens: {input_tokens}, Output Tokens: {output_tokens}\")\nprint(f\"Estimated Cost: ${total_cost:.6f}\")\n\n# Display result\nfrom IPython.display import Markdown\ndisplay(Markdown(response.choices[0].message.content))<\/code><\/pre>\n<p><strong>Output token cost:<\/strong><\/p>\n<p>Input Tokens: 134 | Output Tokens: 274 | Estimated Cost: $0.000003<\/p>\n<p><b>Response by DeepSeek-R1<\/b><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"370\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/deepseekr1task3.webp\" alt=\"deepseek r1 task 3 output\" class=\"wp-image-221241\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/deepseekr1task3.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/deepseekr1task3-300x127.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/deepseekr1task3-768x326.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/deepseekr1task3-150x64.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p><b>Input to o3-mini API<\/b><\/p>\n<pre class=\"wp-block-code\"><code>task3_start_time = time.time()\nclient = OpenAI(api_key=api_key)\nmessages = [\n        {\n\t\t\"role\": \"system\",\n\t\t\"content\": \"\"\"You are a Expert in solving Reasoning Problems. Please solve the given problem\"\"\"\n\n\t},\n {\n\t\t\"role\": \"user\",\n\t\t\"content\": \"\"\" \nStudy the given matrix carefully and select the number from among the given options that can replace the question mark (?) in it.\n    __________________\n\t|  7  | 13\t| 174| \n\t|  9  | 25\t| 104|\n\t|  11 | 30\t| ?  |\n    |_____|_____|____|\n    The options are: \n   A 335\n   B 129\n   C 431 \n   D 100\n   Please mention your approch that you have taken at each step\n \"\"\"\n\n\t}\n    ]\n\n# Use a compatible encoding (cl100k_base is the best option for new OpenAI models)\nencoding = tiktoken.get_encoding(\"cl100k_base\")\n\n# Calculate token counts\ninput_tokens = sum(len(encoding.encode(msg[\"content\"])) for msg in messages)\n\ncompletion = client.chat.completions.create(\n    model=\"o3-mini-2025-01-31\",\n    messages=messages\n)\n\noutput_tokens = len(encoding.encode(completion.choices[0].message.content))\n\ntask3_end_time = time.time()\n\n\ninput_cost_per_1k = 0.0011  # Example: $0.005 per 1,000 input tokens\noutput_cost_per_1k = 0.0044  # Example: $0.015 per 1,000 output tokens\n\n# Calculate cost\ninput_cost = (input_tokens \/ 1000) * input_cost_per_1k\noutput_cost = (output_tokens \/ 1000) * output_cost_per_1k\ntotal_cost = input_cost + output_cost\n\n# Print results\nprint(completion.choices[0].message)\nprint(\"----------------=Total Time Taken for task 3:----------------- \", task3_end_time - task3_start_time)\nprint(f\"Input Tokens: {input_tokens}, Output Tokens: {output_tokens}\")\nprint(f\"Estimated Cost: ${total_cost:.6f}\")\n\n# Display result\nfrom IPython.display import Markdown\ndisplay(Markdown(completion.choices[0].message.content))<\/code><\/pre>\n<p><strong>Output token cost:<\/strong><\/p>\n<p>Input Tokens: 134 | Output Tokens: 736 | Estimated Cost: $0.003386<\/p>\n<p><b>Output by o3-mini<\/b><\/p>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"471\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3-minitaks3_1.webp\" alt=\"o3-mini vs DeepSeek-R1 API logical reasoning\" class=\"wp-image-221242\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3-minitaks3_1.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3-minitaks3_1-300x162.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3-minitaks3_1-768x415.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3-minitaks3_1-150x81.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"585\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_2.webp\" alt=\"logical reasoning task 3 output\" class=\"wp-image-221243\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_2.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_2-300x201.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_2-768x515.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_2-150x101.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"557\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_3.webp\" alt=\"logical reasoning task 3 output\" class=\"wp-image-221244\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_3.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_3-300x192.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_3-768x491.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3minitask3_3-150x96.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"872\" height=\"233\" src=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3mintask3_4.webp\" alt=\"\" class=\"wp-image-221245\" srcset=\"https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3mintask3_4.webp 872w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3mintask3_4-300x80.webp 300w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3mintask3_4-768x205.webp 768w, https:\/\/cdn.analyticsvidhya.com\/wp-content\/uploads\/2025\/02\/o3mintask3_4-150x40.webp 150w\" sizes=\"auto, (max-width: 872px) 100vw, 872px\"\/><\/figure>\n<p><strong>Comparative Analysis<\/strong><\/p>\n<p>Here, the pattern followed in each row is:<\/p>\n<p>(1st number)^3\u2212(2nd number)^2 = 3rd number<\/p>\n<p>Applying this pattern:<\/p>\n<ul class=\"wp-block-list\">\n<li>Row 1: 7^3 \u2013 13^2 = 343 \u2013 169 = 174<\/li>\n<li>Row 2: 9^3 \u2013 25^2 = 729 \u2013 625 = 104<\/li>\n<li>Row 3: 11^3 \u2013 30^2 = 1331 \u2013 900 = 431<\/li>\n<\/ul>\n<p>Hence, the correct answer is 431.<\/p>\n<p>DeepSeek-R1 correctly identifies and applies this pattern, leading to the right answer. Its structured approach ensures accuracy, though it takes significantly longer to compute the result. o3-mini, on the other hand, fails to establish a consistent pattern. It attempts multiple operations, such as multiplication, addition, and exponentiation, but does not arrive at a definitive answer. This results in an unclear and incorrect response. Overall, DeepSeek-R1 outperforms o3-mini in logical reasoning and accuracy, while O3-mini struggles due to its inconsistent and ineffective approach.<\/p>\n<p><strong>Score: <\/strong>DeepSeek-R1: 1 | o3-mini: 0<\/p>\n<h4 class=\"wp-block-heading\" id=\"h-final-score-deepseek-r1-2-o3-mini-1\">Final Score: DeepSeek-R1: 2 | o3-mini: 1<\/h4>\n<h3 class=\"wp-block-heading\" id=\"h-logical-reasoning-comparison-summary\">Logical Reasoning Comparison Summary<\/h3>\n<div class=\"table-responsive mb-3\">\n<table class=\"table table-hover table-bordered\">\n<thead\/>\n<tbody>\n<tr>\n<td><strong>Task No.<\/strong><\/td>\n<td><strong>Task Type<\/strong><\/td>\n<td><strong>Model<\/strong><\/td>\n<td><strong>Performance\u00a0<\/strong><\/td>\n<td><strong>Time Taken (seconds)<\/strong><\/td>\n<td><strong>Cost<\/strong><\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>Code Generation<\/td>\n<td>DeepSeek-R1<\/td>\n<td>\u2705 Working Code<\/td>\n<td>606.45<\/td>\n<td>$0.0073<\/td>\n<\/tr>\n<tr>\n<td>\u00a0<\/td>\n<td>\u00a0<\/td>\n<td>o3-mini<\/td>\n<td>\u274c Non-working Code<\/td>\n<td>99.73<\/td>\n<td>$0.014265<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>Alphabetical Reasoning<\/td>\n<td>DeepSeek-R1<\/td>\n<td>\u2705 Correct<\/td>\n<td>74.28<\/td>\n<td>$0.000004<\/td>\n<\/tr>\n<tr>\n<td>\u00a0<\/td>\n<td>\u00a0<\/td>\n<td>o3-mini<\/td>\n<td>\u2705 Correct<\/td>\n<td>8.08<\/td>\n<td>$0.002010<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>Mathematical Reasoning<\/td>\n<td>DeepSeek-R1<\/td>\n<td>\u2705 Correct<\/td>\n<td>450.53<\/td>\n<td>$0.000003<\/td>\n<\/tr>\n<tr>\n<td>\u00a0<\/td>\n<td>\u00a0<\/td>\n<td>o3-mini<\/td>\n<td>\u274c Wrong Answer<\/td>\n<td>12.37<\/td>\n<td>$0.003386<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2>\n<p>As we have seen in this comparison, both DeepSeek-R1 and o3-mini demonstrate unique strengths catering to different needs. DeepSeek-R1 excels in accuracy-driven tasks, particularly in mathematical reasoning and complex code generation, making it a strong candidate for applications requiring logical depth and correctness. However, one significant drawback is its slower response times, partly due to ongoing server maintenance issues that have affected its accessibility. On the other hand, o3-mini offers significantly faster response times, but its tendency to produce incorrect results limits its reliability for high-stakes reasoning tasks.<\/p>\n<p>This analysis underscores the trade-offs between speed and accuracy in language models. While o3-mini may be useful for rapid, low-risk applications, DeepSeek-R1 stands out as the superior choice for reasoning-intensive tasks, provided its latency issues are addressed. As AI models continue to evolve, striking a balance between performance efficiency and correctness will be key to optimizing AI-driven workflows across various domains.<\/p>\n<p><em>Also Read: <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/2025\/02\/openai-o3-mini-vs-claude-3-5-sonnet\/\" target=\"_blank\" rel=\"noreferrer noopener\">Can OpenAI\u2019s o3-mini Beat Claude Sonnet 3.5 in Coding?<\/a><\/em><\/p>\n<h2 class=\"wp-block-heading\" id=\"h-frequently-asked-questions\">Frequently Asked Questions<\/h2>\n<div class=\"schema-faq wp-block-yoast-faq-block\">\n<div class=\"schema-faq-section\" id=\"faq-question-1739375859009\"><strong class=\"schema-faq-question\">Q1. What are the key differences between DeepSeek-R1 and o3-mini?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. DeepSeek-R1 excels in mathematical reasoning and complex code generation, making it ideal for applications that require logical depth and accuracy. o3-mini, on the other hand, is significantly faster but often sacrifices accuracy, leading to occasional incorrect outputs.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1739375868751\"><strong class=\"schema-faq-question\">Q2. Is DeepSeek-R1 better than o3-mini for coding tasks?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. DeepSeek-R1 is the better choice for coding and reasoning-intensive tasks due to its superior accuracy and ability to handle complex logic. While o3-mini provides quicker responses, it may generate errors, making it less reliable for high-stakes programming tasks.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1739375875571\"><strong class=\"schema-faq-question\">Q3. Is o3-mini suitable for real-world applications?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. o3-mini is best suited for low-risk, speed-dependent applications, such as chatbots, casual text generation, and interactive AI experiences. However, for tasks requiring high accuracy, DeepSeek-R1 is the preferred option.<\/p>\n<\/p><\/div>\n<div class=\"schema-faq-section\" id=\"faq-question-1739375885894\"><strong class=\"schema-faq-question\">Q4. Which model is better for reasoning and problem-solving \u2013 DeepSeek-R1 or o3-mini?<\/strong> <\/p>\n<p class=\"schema-faq-answer\">A. DeepSeek-R1 has superior logical reasoning and problem-solving capabilities, making it a strong choice for mathematical computations, programming assistance, and scientific queries. o3-mini provides quick but sometimes inconsistent responses in complex problem-solving scenarios.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"border-top py-3 author-info my-4\">\n<div class=\"author-card d-flex align-items-center\">\n<div class=\"flex-shrink-0 overflow-hidden\">\n                                    <a href=\"https:\/\/www.analyticsvidhya.com\/blog\/author\/vipin355333\/\" class=\"text-decoration-none active-avatar\"><br \/>\n                                                                       <img decoding=\"async\" src=\"https:\/\/av-eks-lekhak.s3.amazonaws.com\/media\/lekhak-profile-images\/converted_image_q6dapDN.webp\" width=\"48\" height=\"48\" alt=\"Vipin Vashisth\" loading=\"lazy\" class=\"rounded-circle\"\/><\/p>\n<p>                                <\/a>\n                                <\/div>\n<\/p><\/div>\n<p>Hello! I&#8217;m Vipin, a passionate data science and machine learning enthusiast with a strong foundation in data analysis, machine learning algorithms, and programming. I have hands-on experience in building models, managing messy data, and solving real-world problems. My goal is to apply data-driven insights to create practical solutions that drive results. I&#8217;m eager to contribute my skills in a collaborative environment while continuing to learn and grow in the fields of Data Science, Machine Learning, and NLP.<\/p>\n<\/p><\/div>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>AI-powered reasoning models are taking the world by storm in 2025! With the launch of DeepSeek-R1 and o3-mini, we have seen unprecedented levels of logical reasoning capabilities in AI chatbots. In this article, we will access these models via their APIs and evaluate their logical reasoning skills to find out if o3-mini can replace DeepSeek-R1. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":84721,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12033],"tags":[33240,8135,34230,20867,1698],"dealstore":[],"offerexpiration":[],"class_list":["post-84720","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-analytics","tag-deepseekr1","tag-logical","tag-o3mini","tag-reasoning","tag-replace"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Can o3-mini Replace DeepSeek-R1 for Logical Reasoning? - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=84720\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning? - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"AI-powered reasoning models are taking the world by storm in 2025! With the launch of DeepSeek-R1 and o3-mini, we have seen unprecedented levels of logical reasoning capabilities in AI chatbots. In this article, we will access these models via their APIs and evaluate their logical reasoning skills to find out if o3-mini can replace DeepSeek-R1. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=84720\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-12T22:24:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"872\" \/>\n\t<meta property=\"og:image:height\" content=\"259\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=84720#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=84720\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning?\",\"datePublished\":\"2025-02-12T22:24:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=84720\"},\"wordCount\":1691,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=84720#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp\",\"keywords\":[\"DeepSeekR1\",\"Logical\",\"o3mini\",\"Reasoning\",\"Replace\"],\"articleSection\":[\"Analytics\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=84720#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=84720\",\"url\":\"https:\/\/fivemor.com\/?p=84720\",\"name\":\"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning? - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=84720#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=84720#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp\",\"datePublished\":\"2025-02-12T22:24:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=84720#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=84720\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=84720#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp\",\"width\":872,\"height\":259},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=84720#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning? - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=84720","og_locale":"en_US","og_type":"article","og_title":"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning? - Som2ny Network","og_description":"AI-powered reasoning models are taking the world by storm in 2025! With the launch of DeepSeek-R1 and o3-mini, we have seen unprecedented levels of logical reasoning capabilities in AI chatbots. In this article, we will access these models via their APIs and evaluate their logical reasoning skills to find out if o3-mini can replace DeepSeek-R1. [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=84720","og_site_name":"Som2ny Network","article_published_time":"2025-02-12T22:24:20+00:00","og_image":[{"width":872,"height":259,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp","type":"image\/webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"16 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=84720#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=84720"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning?","datePublished":"2025-02-12T22:24:20+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=84720"},"wordCount":1691,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=84720#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp","keywords":["DeepSeekR1","Logical","o3mini","Reasoning","Replace"],"articleSection":["Analytics"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=84720#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=84720","url":"https:\/\/fivemor.com\/?p=84720","name":"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning? - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=84720#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=84720#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp","datePublished":"2025-02-12T22:24:20+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=84720#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=84720"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=84720#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/benchmarks-1.webp.webp","width":872,"height":259},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=84720#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Can o3-mini Replace DeepSeek-R1 for Logical Reasoning?"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/84720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=84720"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/84720\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/84721"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=84720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=84720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=84720"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=84720"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=84720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}