{"id":978,"date":"2025-06-20T09:23:00","date_gmt":"2025-06-20T16:23:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/foundry\/?p=978"},"modified":"2025-06-20T11:58:28","modified_gmt":"2025-06-20T18:58:28","slug":"codex-mini-fast-scalable-code-generation-for-the-cli-era","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/foundry\/codex-mini-fast-scalable-code-generation-for-the-cli-era\/","title":{"rendered":"codex-mini: Fast, Scalable Code Generation for the CLI Era"},"content":{"rendered":"<p><span data-contrast=\"auto\">We\u2019re announcing the general availability of Azure OpenAI\u2019s codex-mini in Azure AI Foundry Models.\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">codex-mini\u00a0is a fine-tuned\u00a0version\u00a0of the o4-mini model, designed to deliver rapid, instruction-following performance for developers working in CLI workflows. Whether\u00a0you&#8217;re\u00a0automating shell commands, editing scripts, or refactoring repositories,\u00a0codex-mini\u00a0brings speed, precision, and scalability to your terminal.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><center><div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-978-1\" width=\"640\" height=\"360\" loop autoplay preload=\"auto\" controls=\"controls\"><source type=\"video\/webm\" src=\"https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/Video.webm?_=1\" \/><a href=\"https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/Video.webm\">https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/Video.webm<\/a><\/video><\/div><\/center><\/p>\n<h3 aria-level=\"2\">Why\u00a0codex-mini?<\/h3>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"1\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">\u26a1<\/span><\/b><b><span data-contrast=\"auto\">\u00a0Optimized for Speed:<\/span><\/b><span data-contrast=\"auto\">\u202fDelivers fast Q&amp;A and code edits with minimal overhead.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"2\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">\ud83e\udde0<\/span><\/b><b><span data-contrast=\"auto\">\u00a0Instruction-Following:<\/span><\/b><span data-contrast=\"auto\">\u202fRetains\u00a0Codex-1\u2019s strengths in understanding natural language prompts.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"3\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">\ud83d\udda5\ufe0f<\/span><\/b><b><span data-contrast=\"auto\">\u00a0CLI-Native:<\/span><\/b><span data-contrast=\"auto\">\u202fInterprets natural language and returns shell commands or code snippets.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"4\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">\ud83d\udccf<\/span><\/b><b><span data-contrast=\"auto\">\u00a0Long Context:<\/span><\/b><span data-contrast=\"auto\">\u202fSupports up to 200k-token inputs\u2014ideal for full repo ingestion and refactoring.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"5\" data-aria-level=\"1\"><b><span data-contrast=\"auto\">\ud83d\udd27<\/span><\/b><b><span data-contrast=\"auto\">\u00a0Lightweight and Scalable:<\/span><\/b><span data-contrast=\"auto\">\u202fDesigned for cost-efficient deployment with a small\u00a0capacity\u00a0footprint.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"6\" data-aria-level=\"1\"><span data-contrast=\"auto\">\ud83d\udcb8\u00a0<\/span><b><span data-contrast=\"auto\">Cost-Efficient<\/span><\/b><span data-contrast=\"auto\">: Approximately 25% more cost-effective than GPT-4.1 when using a similar mix of input and output tokens.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<ul>\n<li data-leveltext=\"\uf0b7\" data-font=\"Symbol\" data-listid=\"2\" data-list-defn-props=\"{&quot;335552541&quot;:1,&quot;335559685&quot;:720,&quot;335559991&quot;:360,&quot;469769226&quot;:&quot;Symbol&quot;,&quot;469769242&quot;:[8226],&quot;469777803&quot;:&quot;left&quot;,&quot;469777804&quot;:&quot;\uf0b7&quot;,&quot;469777815&quot;:&quot;multilevel&quot;}\" aria-setsize=\"-1\" data-aria-posinset=\"7\" data-aria-level=\"1\"><span data-contrast=\"auto\">\ud83d\udd17\u00a0<\/span><b><span data-contrast=\"auto\">Codex CLI Compatible<\/span><\/b><span data-contrast=\"auto\">: Seamlessly integrates with codex-cli for streamlined developer workflows.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/li>\n<\/ul>\n<p><figure id=\"attachment_993\" aria-labelledby=\"figcaption_attachment_993\" class=\"wp-caption aligncenter\" ><a href=\"https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/WhatsApp-Image-2025-06-19-at-9.01.26-PM-1.jpeg\"><img decoding=\"async\" class=\"wp-image-993 \" src=\"https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/WhatsApp-Image-2025-06-19-at-9.01.26-PM-1-300x95.jpeg\" alt=\"Pricing per 1M tokens\" width=\"398\" height=\"126\" srcset=\"https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/WhatsApp-Image-2025-06-19-at-9.01.26-PM-1-300x95.jpeg 300w, https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/WhatsApp-Image-2025-06-19-at-9.01.26-PM-1-1024x323.jpeg 1024w, https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/WhatsApp-Image-2025-06-19-at-9.01.26-PM-1-768x242.jpeg 768w, https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/WhatsApp-Image-2025-06-19-at-9.01.26-PM-1-1536x485.jpeg 1536w, https:\/\/devblogs.microsoft.com\/foundry\/wp-content\/uploads\/sites\/89\/2025\/06\/WhatsApp-Image-2025-06-19-at-9.01.26-PM-1.jpeg 1600w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/a><figcaption id=\"figcaption_attachment_993\" class=\"wp-caption-text\">Pricing per 1M tokens<\/figcaption><\/figure><\/p>\n<p><span data-teams=\"true\">For full pricing details across all Azure OpenAI models, visit the <a id=\"menur4ah2\" class=\"fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn\" title=\"https:\/\/azure.microsoft.com\/en-us\/pricing\/details\/cognitive-services\/openai-service\/\" href=\"https:\/\/azure.microsoft.com\/en-us\/pricing\/details\/cognitive-services\/openai-service\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Link https:\/\/azure.microsoft.com\/en-us\/pricing\/details\/cognitive-services\/openai-service\/\">Azure OpenAI pricing<\/a>.<\/span><\/p>\n<h3><span lang=\"EN-US\" xml:lang=\"EN-US\" data-contrast=\"none\">How to use Azure OpenAI\u00a0codex-mini\u00a0model\u00a0with\u00a0OpenAI Codex CLI<\/span><\/h3>\n<p><span data-teams=\"true\">For a hands-on walkthrough of deploying and using Codex Mini in real-world engineering workflows, <a href=\"https:\/\/devblogs.microsoft.com\/all-things-azure\/securely-turbo%E2%80%91charge-your-software-delivery-with-the-codex-coding-agent-on-azure-openai\/\">check out this detailed guide by Govind Kamtamneni<\/a>. His blog post covers everything from CLI setup to GitHub Actions integration\u2014all within the secure, enterprise-grade Azure environment.<\/span><\/p>\n<p>We&#8217;ve been contributing to OpenAI&#8217;s Codex CLI in open source. OpenAI has accepted our pull request, and we are awaiting <a href=\"https:\/\/github.com\/openai\/codex\/pull\/1321\/\">final review<\/a>.<\/p>\n<p><span data-contrast=\"auto\">Learn more and get started at\u00a0<a href=\"https:\/\/ai.azure.com\/resource\/models\/codex-mini\/version\/2025-05-16\/registry\/azure-openai?wsid=\/subscriptions\/41c843d0-e633-4f0e-8059-0deee6deb387\/resourceGroups\/erinrg-deleteable\/providers\/Microsoft.CognitiveServices\/accounts\/egeaney0527-resource\/projects\/egeaney0527&amp;tid=72f988bf-86f1-41af-91ab-2d7cd011db47\">codex-mini &#8211; Azure AI Foundry<\/a>\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<h3 aria-level=\"2\">Get Access<\/h3>\n<p>Codex-mini is available in East US2 and Sweden Central, supporting Standard Global deployment. To build with codex-mini, use the <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/ai-services\/openai\/api-version-lifecycle?tabs=key#next-generation-api\" target=\"_blank\" rel=\"noopener\">v1 preview API<\/a>.<\/p>\n<h3 aria-level=\"2\">Key Capabilities<\/h3>\n<p><span data-contrast=\"auto\">codex-mini\u00a0supports features such as streaming, function calling, structured outputs, and image input. With these capabilities in mind, developers can\u00a0leverage\u00a0codex-mini\u00a0for a range of fast, scalable code generation tasks in command-line environments.<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n<p><span data-contrast=\"auto\">codex-mini\u00a0is now available via the\u00a0Azure OpenAI\u00a0API\u00a0and Codex\u00a0CLI. For developers\u00a0seeking\u00a0fast, reliable code generation in terminal environments, this\u00a0purpose-built\u00a0model offers a powerful new tool in your AI toolkit\u00a0for fast, low-latency code generation in command-line environments.\u00a0<\/span><span data-ccp-props=\"{}\">\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We\u2019re announcing the general availability of Azure OpenAI\u2019s codex-mini in Azure AI Foundry Models.\u00a0 codex-mini\u00a0is a fine-tuned\u00a0version\u00a0of the o4-mini model, designed to deliver rapid, instruction-following performance for developers working in CLI workflows. Whether\u00a0you&#8217;re\u00a0automating shell commands, editing scripts, or refactoring repositories,\u00a0codex-mini\u00a0brings speed, precision, and scalability to your terminal.\u00a0 Why\u00a0codex-mini? \u26a1\u00a0Optimized for Speed:\u202fDelivers fast Q&amp;A and code [&hellip;]<\/p>\n","protected":false},"author":192932,"featured_media":1022,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-978","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-foundry"],"acf":[],"blog_post_summary":"<p>We\u2019re announcing the general availability of Azure OpenAI\u2019s codex-mini in Azure AI Foundry Models.\u00a0 codex-mini\u00a0is a fine-tuned\u00a0version\u00a0of the o4-mini model, designed to deliver rapid, instruction-following performance for developers working in CLI workflows. Whether\u00a0you&#8217;re\u00a0automating shell commands, editing scripts, or refactoring repositories,\u00a0codex-mini\u00a0brings speed, precision, and scalability to your terminal.\u00a0 Why\u00a0codex-mini? \u26a1\u00a0Optimized for Speed:\u202fDelivers fast Q&amp;A and code [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/posts\/978","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/users\/192932"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/comments?post=978"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/posts\/978\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/media\/1022"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/media?parent=978"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/categories?post=978"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/foundry\/wp-json\/wp\/v2\/tags?post=978"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}