{"id":28,"date":"2025-08-05T00:00:00","date_gmt":"2025-08-05T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2025\/08\/05\/agents-workers-ai-openai-open-models-now-available-on-workers-ai\/"},"modified":"2025-08-05T00:00:00","modified_gmt":"2025-08-05T00:00:00","slug":"agents-workers-ai-openai-open-models-now-available-on-workers-ai","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2025\/08\/05\/agents-workers-ai-openai-open-models-now-available-on-workers-ai\/","title":{"rendered":"Agents, Workers AI &#8211; OpenAI open models now available on Workers AI"},"content":{"rendered":"<p>We&#8217;re thrilled to be a Day 0 partner with <a href=\"http:\/\/openai.com\/index\/introducing-gpt-oss\" target=\"_blank\">OpenAI<\/a> to bring their <a href=\"https:\/\/openai.com\/index\/gpt-oss-model-card\/\" target=\"_blank\">latest open models<\/a> to Workers AI, including support for Responses API, Code Interpreter, and Web Search (coming soon).<\/p>\n<p>Get started with the new models at <code>@cf\/openai\/gpt-oss-120b<\/code> and <code>@cf\/openai\/gpt-oss-20b<\/code>.<br \/>\nCheck out the <a href=\"https:\/\/blog.cloudflare.com\/openai-gpt-oss-on-workers-ai\" target=\"_blank\">blog<\/a> for more details about the new models, and the <a href=\"https:\/\/developers.cloudflare.com\/workers-ai\/models\/gpt-oss-120b\"><code>gpt-oss-120b<\/code><\/a> and <a href=\"https:\/\/developers.cloudflare.com\/workers-ai\/models\/gpt-oss-20b\"><code>gpt-oss-20b<\/code><\/a> model pages for more information about pricing and context windows.<\/p>\n<h4>Responses API<\/h4>\n<p>If you call the model through:<\/p>\n<ul>\n<li>Workers Binding, it will accept\/return Responses API \u2013 <code>env.AI.run(\u201c@cf\/openai\/gpt-oss-120b\u201d)<\/code><\/li>\n<li>REST API on <code>\/run<\/code> endpoint, it will accept\/return Responses API \u2013 <code>https:\/\/api.cloudflare.com\/client\/v4\/accounts\/&lt;account_id&gt;\/ai\/run\/@cf\/openai\/gpt-oss-120b<\/code><\/li>\n<li>REST API on new <code>\/responses<\/code> endpoint, it will accept\/return Responses API \u2013 <code>https:\/\/api.cloudflare.com\/client\/v4\/accounts\/&lt;account_id&gt;\/ai\/v1\/responses<\/code><\/li>\n<li>REST API for OpenAI Compatible endpoint, it will return Chat Completions (coming soon) \u2013 <code>https:\/\/api.cloudflare.com\/client\/v4\/accounts\/&lt;account_id&gt;\/ai\/v1\/chat\/completions<\/code><\/li>\n<\/ul>\n<div>\n<figure>\n<pre data-language=\"plaintext\"><code class=\"language-plaintext\"><div><div><span>curl https:\/\/api.cloudflare.com\/client\/v4\/accounts\/&lt;account_id&gt;\/ai\/v1\/responses <\/span><\/div><\/div><div><div><span><span>  <\/span><\/span><span>-H \"Content-Type: application\/json\" <\/span><\/div><\/div><div><div><span><span>  <\/span><\/span><span>-H \"Authorization: Bearer $CLOUDFLARE_API_KEY\" <\/span><\/div><\/div><div><div><span><span>  <\/span><\/span><span>-d '{<\/span><\/div><\/div><div><div><span><span>    <\/span><\/span><span>\"model\": \"@cf\/openai\/gpt-oss-120b\",<\/span><\/div><\/div><div><div><span><span>    <\/span><\/span><span>\"reasoning\": {\"effort\": \"medium\"},<\/span><\/div><\/div><div><div><span><span>    <\/span><\/span><span>\"input\": [<\/span><\/div><\/div><div><div><span><span>      <\/span><\/span><span>{<\/span><\/div><\/div><div><div><span><span>        <\/span><\/span><span>\"role\": \"user\",<\/span><\/div><\/div><div><div><span><span>        <\/span><\/span><span>\"content\": \"What are the benefits of open-source models?\"<\/span><\/div><\/div><div><div><span><span>      <\/span><\/span><span>}<\/span><\/div><\/div><div><div><span><span>    <\/span><\/span><span>]<\/span><\/div><\/div><div><div><span><span>  <\/span><\/span><span>}'<\/span><\/div><\/div><\/code><\/pre>\n<div><\/div>\n<\/figure>\n<\/div>\n<h4>Code Interpreter<\/h4>\n<p>The model is natively trained to support stateful code execution, and we&#8217;ve implemented support for this feature using our <a href=\"https:\/\/github.com\/cloudflare\/sandbox-sdk\" target=\"_blank\">Sandbox SDK<\/a> and <a href=\"https:\/\/blog.cloudflare.com\/containers-are-available-in-public-beta-for-simple-global-and-programmable\/\" target=\"_blank\">Containers<\/a>. Cloudflare&#8217;s Developer Platform is uniquely positioned to support this feature, so we&#8217;re very excited to bring our products together to support this new use case.<\/p>\n<h4>Web Search (coming soon)<\/h4>\n<p>We are working to implement Web Search for the model, where users can bring their own Exa API Key so the model can browse the Internet.<\/p>","protected":false},"excerpt":{"rendered":"<p>We&#8217;re thrilled to be a Day 0 partner with OpenAI to bring their latest open models to Workers AI, including support for Responses API, Code Interpreter, and Web Search (coming soon). Get started with the new models at @cf\/openai\/gpt-oss-120b and @cf\/openai\/gpt-oss-20b. Check out the blog for more details about the new models, and the gpt-oss-120b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/28\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}