{"id":15505,"date":"2024-05-19T04:00:10","date_gmt":"2024-05-19T04:00:10","guid":{"rendered":"https:\/\/wpinitiate.com\/index.php\/2024\/05\/19\/openais-ai-batch-requests-api-support-added-to-aiomatic-50-discount-for-your-api-batch-requests\/"},"modified":"2024-05-19T04:00:10","modified_gmt":"2024-05-19T04:00:10","slug":"openais-ai-batch-requests-api-support-added-to-aiomatic-50-discount-for-your-api-batch-requests","status":"publish","type":"post","link":"https:\/\/wpinitiate.com\/index.php\/2024\/05\/19\/openais-ai-batch-requests-api-support-added-to-aiomatic-50-discount-for-your-api-batch-requests\/","title":{"rendered":"OpenAI&#8217;s AI Batch Requests API Support Added to Aiomatic &#8211; 50% Discount For Your API Batch Requests!"},"content":{"rendered":"<div class=\"mejs-video-container\"><iframe loading=\"lazy\" allow=\"autoplay\" width=\"580\" height=\"380\" src=\"https:\/\/www.youtube.com\/embed\/JqWFhJiyPh8?controls=1\" frameborder=\"0\" allowfullscreen><\/iframe><\/div>\n<p>OpenAI&#8217;s AI Batch Requests API Support Added to Aiomatic &#8211; 50% Discount For Your API Batch Requests!<br \/>Check Aiomatic here \u25ba <a href=\"https:\/\/1.envato.market\/aiomatic\" target=\"_blank\" rel=\"noopener\">https:\/\/1.envato.market\/aiomatic<\/a><\/p>\n<p>\ud83d\udd00 PLAYLIST OF VIDEOS FEATURING THIS PLUGIN \ud83d\udc47<br \/><a href=\"https:\/\/www.youtube.com\/playlist?list=PLEiGTaa0iBIhsRSgl5czLEDAhawr_SHx2<br\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/playlist?list=PLEiGTaa0iBIhsRSgl5czLEDAhawr_SHx2<br<\/a> \/><br \/>\ud83e\udd14 ABOUT THIS VIDEO \ud83d\udc47<br \/>OpenAI recently announced the ability to create Batch API requests in their system. Today, I bring full support for this feature, also in the Aiomatic plugin.<\/p>\n<p>What are AI Batch Requests?<br \/>The Batch API is a powerful feature of the OpenAI platform that allows you to send asynchronous groups of requests, offering significant cost savings, higher rate limits, and a clear 24-hour turnaround time. This service is ideal for processing jobs that don&#8217;t require immediate responses. You can use the Batch API for tasks such as:<\/p>\n<p>&#8211; Running evaluations<br \/>&#8211; Classifying large datasets<br \/>&#8211; Embedding content repositories<br \/>Compared to using standard endpoints directly, the Batch API provides:<\/p>\n<p>&#8211; Better cost efficiency: 50% cost discount compared to synchronous APIs<br \/>&#8211; Higher rate limits: Substantially more headroom compared to the synchronous APIs<br \/>&#8211; Fast completion times: Each batch completes within 24 hours (and often more quickly)<br \/>Check details about the Batch API, in OpenAI&#8217;s official documentation and FAQ.<\/p>\n<p>How to Use the Batch API<br \/>Step 1: Prepare Your Batch File<br \/>You can use the &#8216;Manual Batch File Generator&#8217; tab to create a .jsonl file which will be able to be uploaded directly to OpenAI and used as a AI Batch Request file.<\/p>\n<p>You can also manually create a .jsonl file where each line contains the details of an individual request to the API. Each request must include a unique custom_id value. Here&#8217;s an example of an input file with 2 requests:<\/p>\n<p>{&#8220;custom_id&#8221;: &#8220;request-1&#8221;, &#8220;method&#8221;: &#8220;POST&#8221;, &#8220;url&#8221;: &#8220;\/v1\/chat\/completions&#8221;, &#8220;body&#8221;: {&#8220;model&#8221;: &#8220;gpt-3.5-turbo-0125&#8221;, &#8220;messages&#8221;: [{&#8220;role&#8221;: &#8220;system&#8221;, &#8220;content&#8221;: &#8220;You are a helpful assistant.&#8221;},{&#8220;role&#8221;: &#8220;user&#8221;, &#8220;content&#8221;: &#8220;Hello world!&#8221;}],&#8221;max_tokens&#8221;: 1000}}<br \/>{&#8220;custom_id&#8221;: &#8220;request-2&#8221;, &#8220;method&#8221;: &#8220;POST&#8221;, &#8220;url&#8221;: &#8220;\/v1\/chat\/completions&#8221;, &#8220;body&#8221;: {&#8220;model&#8221;: &#8220;gpt-3.5-turbo-0125&#8221;, &#8220;messages&#8221;: [{&#8220;role&#8221;: &#8220;system&#8221;, &#8220;content&#8221;: &#8220;You are an unhelpful assistant.&#8221;},{&#8220;role&#8221;: &#8220;user&#8221;, &#8220;content&#8221;: &#8220;Hello world!&#8221;}],&#8221;max_tokens&#8221;: 1000}}<br \/>Step 2: Upload Your Batch Input File<br \/>Upload your .jsonl file using the &#8216;Manage AI Batch Request Files&#8217; tab of this menu.<\/p>\n<p>Step 3: Create the Batch<br \/>Use the input File object&#8217;s ID to create a batch, in the &#8216;Manage AI Batch Requests&#8217; tab from this menu.<\/p>\n<p>Step 4: Check the Status of a Batch &#038; Retrieve the Results<br \/>You can check the status of a batch at any time. Once the batch is complete, download the output from the &#8216;Manage AI Batch Requests&#8217; tab.<\/p>\n<p>That&#8217;s it! You&#8217;ve successfully set up an AI-powered Batch API request, using the Aiomatic plugin.<\/p>\n<p>\ud83d\udcac JOIN CODEREVOLUTION ON DISCORD \ud83d\udc47<br \/><a href=\"https:\/\/discord.gg\/fJf6rPgHMP\" target=\"_blank\" rel=\"noopener\">https:\/\/discord.gg\/fJf6rPgHMP<\/a><\/p>\n<p>\ud83d\udcac CHECK AIOMATIC&#8217;S FEATURE IDEAS BOARD \ud83d\udc47<br \/><a href=\"https:\/\/trello.com\/b\/2yxVZapo\/aiomatic-feature-ideas\" target=\"_blank\" rel=\"noopener\">https:\/\/trello.com\/b\/2yxVZapo\/aiomatic-feature-ideas<\/a><\/p>\n<p>If you have more ideas or suggestions for this plugin or for any other plugin I created, let me know in the comments of this video! Check all my plugins here: <a href=\"https:\/\/1.envato.market\/coderevolutionplugins\" target=\"_blank\" rel=\"noopener\">https:\/\/1.envato.market\/coderevolutionplugins<\/a><\/p>\n<p>\ud83d\udca5 Join this channel to get access to member only videos and PERKS \ud83d\udc47<br \/><a href=\"https:\/\/www.youtube.com\/channel\/UCVLIksvzyk-D_oEdHab2Lgg\/join\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/channel\/UCVLIksvzyk-D_oEdHab2Lgg\/join<\/a><\/p>\n<p>\ud83d\udca5 Join my FREE newsletter to discover my insights (and also to get the YouTube Caption Scraper plugin for FREE) \ud83d\udc47<br \/><a href=\"https:\/\/coderevolution.mailchimpsites.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/coderevolution.mailchimpsites.com\/<\/a><\/p>\n<p>\ud83d\udca5 Join CodeRevolution&#8217;s Plugins on Discord \ud83d\udc47<br \/><a href=\"https:\/\/discord.gg\/Fjggup9wcM\" target=\"_blank\" rel=\"noopener\">https:\/\/discord.gg\/Fjggup9wcM<\/a><\/p>\n<p>\ud83d\udcbb MY WORDPRESS PLUGINS \ud83d\udc47<br \/><a href=\"https:\/\/1.envato.market\/coderevolutionplugins\" target=\"_blank\" rel=\"noopener\">https:\/\/1.envato.market\/coderevolutionplugins<\/a><\/p>\n<p>\u25b6[SPECIAL OFFER] GET ALL MY PLUGINS AT ONCE! &#8211; <a href=\"https:\/\/1.envato.market\/bundle\" target=\"_blank\" rel=\"noopener\">https:\/\/1.envato.market\/bundle<\/a><\/p>\n<p>\ud83d\udcbb MY COURSES \ud83d\udc47<br \/><a href=\"https:\/\/coderevolution.teachable.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/coderevolution.teachable.com\/<\/a><\/p>\n<p>\ud83d\udc4d\ud83c\udffc Please help &#038; give the video a like if you enjoyed it!<br \/>\u2764\ufe0f Not Yet Subscribed? <a href=\"https:\/\/www.youtube.com\/channel\/UCVLIksvzyk-D_oEdHab2Lgg?sub_confirmation=1<br\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/channel\/UCVLIksvzyk-D_oEdHab2Lgg?sub_confirmation=1<br<\/a> \/>\u25b6 Check my Community of WordPress Experts by Joining CodeRevolution&#8217;s Facebook Group \ud83d\udc49\ud83c\udffc <a href=\"https:\/\/www.facebook.com\/groups\/coderevo\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.facebook.com\/groups\/coderevo\/<\/a><br \/>\ud83d\udd14 Hit the notification bell to ensure you get notified!<br \/>\u2705 Check my blog: <a href=\"https:\/\/coderevolution.ro\/blog\/\" target=\"_blank\" rel=\"noopener\">https:\/\/coderevolution.ro\/blog\/<\/a><br \/>\ud83d\udcad Add your comments! Ask any questions! (please be polite)<\/p>\n<p>\u2705 CAN I HELP YOU OR YOUR BUSINESS \u2753<br \/>\ud83c\udf0d Become a member of my website today, to enjoy premium tutorials: <a href=\"https:\/\/coderevolution.ro\/join-the-site\/\" target=\"_blank\" rel=\"noopener\">https:\/\/coderevolution.ro\/join-the-site\/<\/a><\/p>\n<p>To your success,<br \/>Szabi &#8211; CodeRevolution.<\/p>\n<p>DISCLAIMER: The information contained on this YouTube Channel and the resources available for download\/viewing through this YouTube Channel are for educational and informational purposes only.\u200b<br \/>This description may contain affiliate links. If you purchase a product through one of them, I will receive a commission (at no additional cost to you). I only ever endorse products that I have personally used and benefited from personally. Thank you for your support!<\/p>\n<p>#wordpressplugin #wordpress #wp #wpplugin<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenAI&#8217;s AI Batch Requests API Support Added to Aiomatic &#8211; 50% Discount For Your API Batch Requests! Check Aiomatic here \u25ba https:\/\/1.envato.market\/aiomatic \ud83d\udd00 PLAYLIST OF VIDEOS FEATURING THIS PLUGIN \ud83d\udc47 https:\/\/www.youtube.com\/playlist?list=PLEiGTaa0iBIhsRSgl5czLEDAhawr_SHx2 \ud83e\udd14 ABOUT THIS VIDEO \ud83d\udc47 OpenAI recently announced the ability to create Batch API requests in their system. Today, I bring full support for<\/p>\n","protected":false},"author":1,"featured_media":15506,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-15505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wp"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/posts\/15505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/comments?post=15505"}],"version-history":[{"count":0,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/posts\/15505\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/media\/15506"}],"wp:attachment":[{"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/media?parent=15505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/categories?post=15505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpinitiate.com\/index.php\/wp-json\/wp\/v2\/tags?post=15505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}