{"id":6970,"date":"2026-04-21T09:50:45","date_gmt":"2026-04-21T00:50:45","guid":{"rendered":"https:\/\/techfun.cc\/?p=6970"},"modified":"2026-04-21T09:50:45","modified_gmt":"2026-04-21T00:50:45","slug":"batch-api-introduction","status":"publish","type":"post","link":"https:\/\/techfun.cc\/generative-ai\/batch-api-introduction.html","title":{"rendered":"\u751f\u6210AI\u306e\u30d0\u30c3\u30c1API\u3068\u306f"},"content":{"rendered":"<h3 id=\"section-1\" class=\"Heading Title Title--m\">\u306f\u3058\u3081\u306b<\/h3>\n<p>\u751f\u6210AI\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u7d44\u307f\u8fbc\u3093\u3067\u3044\u308b\u3068\u3001\u300c\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u62ec\u3067AI\u306b\u51e6\u7406\u3055\u305b\u305f\u3044\u300d\u3068\u3044\u3046\u5834\u9762\u306b\u906d\u9047\u3057\u307e\u3059\u3002\u5546\u54c1\u8aac\u660e\u306e\u4e00\u62ec\u751f\u6210\u3001\u8a55\u4fa1\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u51e6\u7406\u3001\u30e6\u30fc\u30b6\u30fc\u30ec\u30d3\u30e5\u30fc\u306e\u5206\u985e \u2015 \u3044\u305a\u308c\u3082\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u5fdc\u7b54\u306f\u4e0d\u8981\u3067\u3001\u6570\u767e\u301c\u6570\u4e07\u4ef6\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u307e\u3068\u3081\u3066\u6295\u3052\u305f\u3044\u30b1\u30fc\u30b9\u3067\u3059\u3002\u3053\u3046\u3057\u305f\u5834\u9762\u3067\u6d3b\u8e8d\u3059\u308b\u306e\u304c<strong>\u30d0\u30c3\u30c1API<\/strong>\u3067\u3059\u3002<br \/>\n\u30d0\u30c3\u30c1API\u3092\u4f7f\u3048\u3070\u3001\u901a\u5e38\u306eAPI\u547c\u3073\u51fa\u3057\u3068\u6bd4\u3079\u3066<strong>\u30b3\u30b9\u30c8\u3092\u6700\u592750%\u524a\u6e1b<\/strong>\u3057\u3064\u3064\u3001\u5927\u91cf\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u52b9\u7387\u3088\u304f\u51e6\u7406\u3067\u304d\u307e\u3059\u3002OpenAI\u30fbAnthropic\u30fbGoogle\u3068\u3044\u3063\u305f\u4e3b\u8981\u30d9\u30f3\u30c0\u30fc\u304c\u305d\u308c\u305e\u308c\u30d0\u30c3\u30c1\u51e6\u7406\u306e\u4ed5\u7d44\u307f\u3092\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u3044\u305a\u308c\u308250%\u306e\u30b3\u30b9\u30c8\u5272\u5f15\u304c\u5171\u901a\u306e\u7279\u5fb4\u3067\u3059\u3002<br \/>\n\u672c\u8a18\u4e8b\u3067\u306f\u3001OpenAI\u306eBatch API\u3092\u4e2d\u5fc3\u306b\u4ed5\u7d44\u307f\u3068\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\uff08<a href=\"https:\/\/developers.openai.com\/api\/docs\/guides\/batch\" class=\"Ext\">OpenAI\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3001Claude\u30fbGemini\u3067\u306e\u5bfe\u5fdc\u72b6\u6cc1\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001API\u30b3\u30b9\u30c8\u3092\u524a\u6e1b\u3059\u308b\u5225\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3068\u3057\u3066<strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong>\u304c\u3042\u308a\u307e\u3059\u3002\u30d7\u30ed\u30f3\u30d7\u30c8\u306e\u5171\u901a\u90e8\u5206\u3092\u518d\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u5165\u529b\u30c8\u30fc\u30af\u30f3\u306e\u30b3\u30b9\u30c8\u3092\u524a\u6e1b\u3059\u308b\u624b\u6cd5\u3067\u3059\u3002\u8a73\u3057\u304f\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<a class=\"Internal-post\" href=\"https:\/\/techfun.cc\/generative-ai\/prompt-caching-introduction.html\"><div class=\"Internal-post__thumb\" style=\"background: url(\/wp-content\/uploads\/2026\/04\/prompt-caching-introduction-scaled.png) no-repeat; background-size: cover; background-position: 50% 50%;\"><\/div><div class=\"Internal-post-content\"><div class=\"Category Category--generative-ai\"> \u751f\u6210AI\u95a2\u9023<\/div><div class=\"Internal-post__title\">\u30d7\u30ed\u30f3\u30d7\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5\uff08\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30ad\u30e3\u30c3\u30b7\u30e5\uff09\u3068\u306f<\/div><\/div><\/a>\n<h3 id=\"section-2\" class=\"Heading Title Title--m\">\u30d0\u30c3\u30c1API\u3068\u306f<\/h3>\n<p>\u30d0\u30c3\u30c1API\u3068\u306f\u3001\u8907\u6570\u306eAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3092<strong>\u975e\u540c\u671f\u3067\u307e\u3068\u3081\u3066\u51e6\u7406\u3059\u308b\u4ed5\u7d44\u307f<\/strong>\u3067\u3059\u3002\u901a\u5e38\u306eAPI\u306f1\u30ea\u30af\u30a8\u30b9\u30c8\u3054\u3068\u306b\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u5fdc\u7b54\u3092\u8fd4\u3057\u307e\u3059\u304c\u3001\u30d0\u30c3\u30c1API\u3067\u306f\u300c\u307e\u3068\u3081\u3066\u9001\u3063\u3066\u3001\u3042\u3068\u3067\u7d50\u679c\u3092\u53d7\u3051\u53d6\u308b\u300d\u3068\u3044\u3046\u6d41\u308c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/04\/batch-api-concept.png\" alt=\"\u30d0\u30c3\u30c1API\u306e\u6982\u5ff5\u56f3\" class=\"content_img\" \/><\/p>\n<div class=\"Image-caption\">\u901a\u5e38\u306eAPI\u306f1\u4ef6\u305a\u3064\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u51e6\u7406\u3002\u30d0\u30c3\u30c1API\u306f\u8907\u6570\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u307e\u3068\u3081\u3066\u975e\u540c\u671f\u51e6\u7406\u3057\u3001\u5b8c\u4e86\u5f8c\u306b\u4e00\u62ec\u3067\u7d50\u679c\u3092\u53d6\u5f97\u3059\u308b<\/div>\n<h4 id=\"section-2-1\" class=\"Heading Title Title--s\">\u901a\u5e38\u306eAPI\u3068\u30d0\u30c3\u30c1API\u306e\u6bd4\u8f03<\/h4>\n<table class=\"Base-table\">\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u901a\u5e38\u306eAPI<\/th>\n<th>\u30d0\u30c3\u30c1API<\/th>\n<\/tr>\n<tr>\n<td>\u51e6\u7406\u65b9\u5f0f<\/td>\n<td>\u540c\u671f\uff08\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\uff09<\/td>\n<td>\u975e\u540c\u671f\uff08\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u30ec\u30b9\u30dd\u30f3\u30b9<\/td>\n<td>\u5373\u6642<\/td>\n<td>\u6700\u592724\u6642\u9593\u4ee5\u5185\uff08\u591a\u304f\u306f\u3088\u308a\u65e9\u3044\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u30b3\u30b9\u30c8<\/td>\n<td>\u901a\u5e38\u6599\u91d1<\/td>\n<td>\u6700\u592750%\u5272\u5f15<\/td>\n<\/tr>\n<tr>\n<td>\u30ec\u30fc\u30c8\u5236\u9650<\/td>\n<td>\u6a19\u6e96\u306e\u30ec\u30fc\u30c8\u5236\u9650<\/td>\n<td>\u5225\u67a0\u306e\u30ec\u30fc\u30c8\u5236\u9650\uff08\u3088\u308a\u7de9\u3044\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u9069\u3057\u305f\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/td>\n<td>\u30c1\u30e3\u30c3\u30c8\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u5fdc\u7b54<\/td>\n<td>\u5927\u91cf\u30c7\u30fc\u30bf\u51e6\u7406\u3001\u8a55\u4fa1\u3001\u4e00\u62ec\u5909\u63db<\/td>\n<\/tr>\n<\/table>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u30d0\u30c3\u30c1API\u306f<strong>\u5373\u6642\u5fdc\u7b54\u304c\u4e0d\u8981\u306a\u51e6\u7406\u306b\u7279\u5316<\/strong>\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u3092\u72a0\u7272\u306b\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001\u30b3\u30b9\u30c8\u524a\u6e1b\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3 id=\"section-3\" class=\"Heading Title Title--m\">OpenAI\u306b\u304a\u3051\u308b\u30d0\u30c3\u30c1API\u306e\u4ed5\u7d44\u307f<\/h3>\n<p>OpenAI\u306eBatch API\u306f\u3001JSONL\u30d5\u30a1\u30a4\u30eb\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u307e\u3068\u3081\u3066\u9001\u4fe1\u3057\u3001\u7d50\u679c\u3092JSONL\u30d5\u30a1\u30a4\u30eb\u3067\u53d7\u3051\u53d6\u308b\u30b7\u30f3\u30d7\u30eb\u306a\u8a2d\u8a08\u3067\u3059\u3002<\/p>\n<h4 id=\"section-3-1\" class=\"Heading Title Title--s\">\u51e6\u7406\u306e\u6d41\u308c<\/h4>\n<p>\u30d0\u30c3\u30c1API\u306e\u51e6\u7406\u306f\u3001\u5927\u304d\u304f4\u3064\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ol class=\"Base-list Base-list--ol\">\n<li class=\"Base-list__child\">\n        <strong>\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/strong><\/p>\n<div class=\"List-description\">JSONL\u30d5\u30a1\u30a4\u30eb\u3092 Files API\u3067\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/div>\n<\/li>\n<li class=\"Base-list__child\">\n        <strong>\u30d0\u30c3\u30c1\u306e\u4f5c\u6210<\/strong><\/p>\n<div class=\"List-description\">\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30d5\u30a1\u30a4\u30ebID\u3092\u6307\u5b9a\u3057\u3066\u30d0\u30c3\u30c1\u3092\u4f5c\u6210<\/div>\n<\/li>\n<li class=\"Base-list__child\">\n        <strong>\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u78ba\u8a8d<\/strong><\/p>\n<div class=\"List-description\">\u30d0\u30c3\u30c1\u306e\u51e6\u7406\u72b6\u6cc1\u3092\u5b9a\u671f\u7684\u306b\u78ba\u8a8d<\/div>\n<\/li>\n<li class=\"Base-list__child\">\n        <strong>\u7d50\u679c\u306e\u53d6\u5f97<\/strong><\/p>\n<div class=\"List-description\">\u5b8c\u4e86\u5f8c\u3001\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/div>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/04\/batch-api-flow.png\" alt=\"\u30d0\u30c3\u30c1API\u306e\u51e6\u7406\u30d5\u30ed\u30fc\" class=\"content_img\" \/><\/p>\n<div class=\"Image-caption\">\u30d0\u30c3\u30c1API\u306e\u51e6\u7406\u30d5\u30ed\u30fc<\/div>\n<h4 id=\"section-3-2\" class=\"Heading Title Title--s\">\u5bfe\u5fdc\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/h4>\n<p>\u30d0\u30c3\u30c1API\u306f\u4ee5\u4e0b\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u30c6\u30ad\u30b9\u30c8\u751f\u6210\u3060\u3051\u3067\u306a\u304f\u3001\u753b\u50cf\u751f\u6210\u3084\u30d3\u30c7\u30aa\u751f\u6210\u306b\u3082\u5bfe\u5fdc\u3057\u3066\u304a\u308a\u3001\u5e45\u5e83\u3044\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u3067\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<table class=\"Base-table\">\n<tr>\n<th>\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8<\/th>\n<th>\u7528\u9014<\/th>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">\/v1\/responses<\/span><\/td>\n<td>Responses API<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">\/v1\/chat\/completions<\/span><\/td>\n<td>Chat Completions<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">\/v1\/embeddings<\/span><\/td>\n<td>Embeddings<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">\/v1\/completions<\/span><\/td>\n<td>Completions<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">\/v1\/moderations<\/span><\/td>\n<td>Moderations<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">\/v1\/images\/generations<\/span><\/td>\n<td>\u753b\u50cf\u751f\u6210<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">\/v1\/images\/edits<\/span><\/td>\n<td>\u753b\u50cf\u7de8\u96c6<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">\/v1\/videos<\/span><\/td>\n<td>\u30d3\u30c7\u30aa\u751f\u6210<\/td>\n<\/tr>\n<\/table>\n<h4 id=\"section-3-3\" class=\"Heading Title Title--s\">\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u306e\u5f62\u5f0f<\/h4>\n<p>\u5165\u529b\u306fJSONL\uff08JSON Lines\uff09\u5f62\u5f0f\u3067\u30011\u884c\u304c1\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5bfe\u5fdc\u3057\u307e\u3059\u3002\u5404\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306f\u7d50\u679c\u3068\u7d10\u3065\u3051\u308b\u305f\u3081\u306e <span class=\"Post-inline\">custom_id<\/span> \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u901a\u5e38\u306eChat Completions API\u3068\u540c\u69d8\u306b\u3001\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">input.jsonl<\/div>\n<pre class=\"Copy\"><code>\r\n{&quot;custom_id&quot;: &quot;request-1&quot;, &quot;method&quot;: &quot;POST&quot;, &quot;url&quot;: &quot;\/v1\/chat\/completions&quot;, &quot;body&quot;: {&quot;model&quot;: &quot;gpt-5.4-mini&quot;, &quot;messages&quot;: [{&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;\u3042\u306a\u305f\u306f\u6280\u8853\u7528\u8a9e\u3092\u521d\u5fc3\u8005\u306b\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3059\u308b\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3067\u3059\u3002\u56de\u7b54\u306f3\u6587\u4ee5\u5185\u3067\u7c21\u6f54\u306b\u307e\u3068\u3081\u3066\u304f\u3060\u3055\u3044\u3002&quot;}, {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;Python\u306e\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u306b\u3064\u3044\u3066\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002&quot;}], &quot;max_completion_tokens&quot;: 500}}\r\n{&quot;custom_id&quot;: &quot;request-2&quot;, &quot;method&quot;: &quot;POST&quot;, &quot;url&quot;: &quot;\/v1\/chat\/completions&quot;, &quot;body&quot;: {&quot;model&quot;: &quot;gpt-5.4-mini&quot;, &quot;messages&quot;: [{&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;\u3042\u306a\u305f\u306f\u6280\u8853\u7528\u8a9e\u3092\u521d\u5fc3\u8005\u306b\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3059\u308b\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3067\u3059\u3002\u56de\u7b54\u306f3\u6587\u4ee5\u5185\u3067\u7c21\u6f54\u306b\u307e\u3068\u3081\u3066\u304f\u3060\u3055\u3044\u3002&quot;}, {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9404\u3068500\u306e\u9055\u3044\u3092\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002&quot;}], &quot;max_completion_tokens&quot;: 500}}\r\n{&quot;custom_id&quot;: &quot;request-3&quot;, &quot;method&quot;: &quot;POST&quot;, &quot;url&quot;: &quot;\/v1\/chat\/completions&quot;, &quot;body&quot;: {&quot;model&quot;: &quot;gpt-5.4-mini&quot;, &quot;messages&quot;: [{&quot;role&quot;: &quot;system&quot;, &quot;content&quot;: &quot;\u3042\u306a\u305f\u306f\u6280\u8853\u7528\u8a9e\u3092\u521d\u5fc3\u8005\u306b\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3059\u308b\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3067\u3059\u3002\u56de\u7b54\u306f3\u6587\u4ee5\u5185\u3067\u7c21\u6f54\u306b\u307e\u3068\u3081\u3066\u304f\u3060\u3055\u3044\u3002&quot;}, {&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: &quot;\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u306a\u305c\u5fc5\u8981\u3067\u3059\u304b\uff1f&quot;}], &quot;max_completion_tokens&quot;: 500}}\r\n<\/code><\/pre>\n<h4 id=\"section-3-4\" class=\"Heading Title Title--s\">\u6761\u4ef6\u3068\u5236\u7d04<\/h4>\n<table class=\"Base-table\">\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u5185\u5bb9<\/th>\n<\/tr>\n<tr>\n<td>1\u30d0\u30c3\u30c1\u3042\u305f\u308a\u306e\u4e0a\u9650<\/td>\n<td>\u6700\u592750,000\u30ea\u30af\u30a8\u30b9\u30c8<\/td>\n<\/tr>\n<tr>\n<td>\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u4e0a\u9650<\/td>\n<td>200MB<\/td>\n<\/tr>\n<tr>\n<td>\u5b8c\u4e86\u671f\u9650<\/td>\n<td>24\u6642\u9593\uff08\u591a\u304f\u306f\u3088\u308a\u65e9\u304f\u5b8c\u4e86\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u30b3\u30b9\u30c8<\/td>\n<td>\u901a\u5e38\u6599\u91d1\u306e50%\uff08\u5165\u529b\u30fb\u51fa\u529b\u30c8\u30fc\u30af\u30f3\u5171\u306b\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u7d50\u679c\u306e\u4fdd\u6301\u671f\u9593<\/td>\n<td>\u30d0\u30c3\u30c1\u5b8c\u4e86\u5f8c30\u65e5\u9593\uff08\u30d3\u30c7\u30aa\u306f24\u6642\u9593\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u30d0\u30c3\u30c1\u4f5c\u6210\u30ec\u30fc\u30c8\u5236\u9650<\/td>\n<td>1\u6642\u9593\u3042\u305f\u308a\u6700\u59272,000\u30d0\u30c3\u30c1<\/td>\n<\/tr>\n<\/table>\n<h4 id=\"section-3-5\" class=\"Heading Title Title--s\">\u30d0\u30c3\u30c1\u306e\u30b9\u30c6\u30fc\u30bf\u30b9<\/h4>\n<p>\u30d0\u30c3\u30c1\u306e\u51e6\u7406\u72b6\u6cc1\u306f\u4ee5\u4e0b\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u7ba1\u7406\u3055\u308c\u307e\u3059\u3002<\/p>\n<table class=\"Base-table\">\n<tr>\n<th>\u30b9\u30c6\u30fc\u30bf\u30b9<\/th>\n<th>\u8aac\u660e<\/th>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">validating<\/span><\/td>\n<td>\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u8a3c\u4e2d<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">in_progress<\/span><\/td>\n<td>\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u4e2d<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">finalizing<\/span><\/td>\n<td>\u7d50\u679c\u3092\u6e96\u5099\u4e2d<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">completed<\/span><\/td>\n<td>\u51e6\u7406\u5b8c\u4e86\uff08\u7d50\u679c\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\u80fd\uff09<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">expired<\/span><\/td>\n<td>24\u6642\u9593\u4ee5\u5185\u306b\u5b8c\u4e86\u3057\u306a\u304b\u3063\u305f<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">cancelling<\/span><\/td>\n<td>\u30ad\u30e3\u30f3\u30bb\u30eb\u51e6\u7406\u4e2d<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">cancelled<\/span><\/td>\n<td>\u30ad\u30e3\u30f3\u30bb\u30eb\u6e08\u307f<\/td>\n<\/tr>\n<tr>\n<td><span class=\"Post-inline\">failed<\/span><\/td>\n<td>\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u306e\u691c\u8a3c\u5931\u6557<\/td>\n<\/tr>\n<\/table>\n<h3 id=\"section-4\" class=\"Heading Title Title--m\">\u30c7\u30e2\uff1a\u30d0\u30c3\u30c1API\u3067\u8cea\u554f\u3092\u4e00\u62ec\u51e6\u7406\u3059\u308b<\/h3>\n<p>\u5b9f\u969b\u306bOpenAI API\u3092\u4f7f\u3063\u3066\u3001\u30d0\u30c3\u30c1API\u306e\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u8907\u6570\u306e\u8cea\u554f\u3092\u4e00\u62ec\u3067\u51e6\u7406\u3059\u308b\u30b7\u30ca\u30ea\u30aa\u3067\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<h4 id=\"section-4-1\" class=\"Heading Title Title--s\">\u5b9f\u9a13\u306e\u69cb\u6210<\/h4>\n<p>\u4eca\u56de\u306e\u30c7\u30e2\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u6d41\u308c\u3067\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<ol class=\"Base-list Base-list--ol\">\n<li class=\"Base-list__child\">\n        \u5165\u529b\u30d5\u30a1\u30a4\u30eb\uff08JSONL\uff09\u3092\u7528\u610f\u3059\u308b\n    <\/li>\n<li class=\"Base-list__child\">\n        \u30d0\u30c3\u30c1\u3092\u4f5c\u6210\u3059\u308b\n    <\/li>\n<li class=\"Base-list__child\">\n        \u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u78ba\u8a8d\u3068\u7d50\u679c\u306e\u53d6\u5f97\n    <\/li>\n<\/ol>\n<h4 id=\"section-4-2\" class=\"Heading Title Title--s\">\u30b9\u30c6\u30c3\u30d71\uff1a\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u306e\u6e96\u5099<\/h4>\n<p>\u307e\u305a\u3001\u51e6\u7406\u5bfe\u8c61\u306e\u8cea\u554f\u3092JSONL\u30d5\u30a1\u30a4\u30eb\u3068\u3057\u3066\u7528\u610f\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u3067\u300c\u521d\u5fc3\u8005\u5411\u3051\u306b3\u6587\u4ee5\u5185\u3067\u56de\u7b54\u3059\u308b\u300d\u3068\u3044\u3046\u30eb\u30fc\u30eb\u3092\u8a2d\u5b9a\u3057\u30015\u4ef6\u306e\u6280\u8853\u7684\u306a\u8cea\u554f\u3092\u6295\u3052\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306f\u5165\u529b\u30d5\u30a1\u30a4\u30eb\u306e1\u884c\u76ee\u3092\u6574\u5f62\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<div class=\"Pre-title\">json<\/div>\n<pre class=\"Copy\"><code>\r\n{\r\n  &quot;custom_id&quot;: &quot;q-001&quot;,\r\n  &quot;method&quot;: &quot;POST&quot;,\r\n  &quot;url&quot;: &quot;\/v1\/chat\/completions&quot;,\r\n  &quot;body&quot;: {\r\n    &quot;model&quot;: &quot;gpt-5.4-mini&quot;,\r\n    &quot;messages&quot;: [\r\n      {\r\n        &quot;role&quot;: &quot;system&quot;,\r\n        &quot;content&quot;: &quot;\u3042\u306a\u305f\u306f\u6280\u8853\u7528\u8a9e\u3092\u521d\u5fc3\u8005\u306b\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u8aac\u660e\u3059\u308b\u30a2\u30b7\u30b9\u30bf\u30f3\u30c8\u3067\u3059\u3002\u56de\u7b54\u306f3\u6587\u4ee5\u5185\u3067\u7c21\u6f54\u306b\u307e\u3068\u3081\u3066\u304f\u3060\u3055\u3044\u3002&quot;\r\n      },\r\n      {\r\n        &quot;role&quot;: &quot;user&quot;,\r\n        &quot;content&quot;: &quot;Python\u306e\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u306b\u3064\u3044\u3066\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002&quot;\r\n      }\r\n    ],\r\n    &quot;max_completion_tokens&quot;: 500\r\n  }\r\n}\r\n<\/code><\/pre>\n<p>\u5404\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306f <span class=\"Post-inline\">custom_id<\/span> \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u5024\u304c\u7d50\u679c\u3068\u5143\u30c7\u30fc\u30bf\u3092\u7d10\u3065\u3051\u308b\u30ad\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u5b9f\u969b\u306eJSONL\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u3001\u3053\u306e\u3088\u3046\u306aJSON\u3092<strong>1\u884c1\u30ea\u30af\u30a8\u30b9\u30c8<\/strong>\u3067\u8a18\u8ff0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u5171\u901a\u306e\u30b7\u30b9\u30c6\u30e0\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u8a2d\u5b9a\u3057\u3001\u4ee5\u4e0b\u306e5\u4ef6\u306e\u8cea\u554f\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u3002<\/p>\n<table class=\"Base-table\">\n<tr>\n<th>custom_id<\/th>\n<th>\u8cea\u554f\u5185\u5bb9<\/th>\n<\/tr>\n<tr>\n<td>q-001<\/td>\n<td>Python\u306e\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u306b\u3064\u3044\u3066\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>q-002<\/td>\n<td>HTTP\u30b9\u30c6\u30fc\u30bf\u30b9\u30b3\u30fc\u30c9404\u3068500\u306e\u9055\u3044\u3092\u8aac\u660e\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>q-003<\/td>\n<td>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u306a\u305c\u5fc5\u8981\u3067\u3059\u304b\uff1f<\/td>\n<\/tr>\n<tr>\n<td>q-004<\/td>\n<td>REST\u3068GraphQL\u306e\u4e3b\u306a\u9055\u3044\u30923\u3064\u6319\u3052\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<\/tr>\n<tr>\n<td>q-005<\/td>\n<td>Git\u3067\u30d6\u30e9\u30f3\u30c1\u3092\u4f7f\u3046\u5229\u70b9\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/td>\n<\/tr>\n<\/table>\n<h4 id=\"section-4-3\" class=\"Heading Title Title--s\">\u30b9\u30c6\u30c3\u30d72\uff1a\u30d0\u30c3\u30c1\u306e\u4f5c\u6210<\/h4>\n<p>JSONL\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001\u30d0\u30c3\u30c1\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">batch_submit.py<\/div>\n<pre class=\"Copy\"><code>\r\nimport argparse\r\n\r\nfrom dotenv import load_dotenv\r\nfrom openai import OpenAI\r\n\r\n\r\ndef main() -&gt; None:\r\n    load_dotenv()\r\n\r\n    parser = argparse.ArgumentParser(description=&quot;JSONL\u30d5\u30a1\u30a4\u30eb\u3092\u30d0\u30c3\u30c1API\u3067\u5b9f\u884c\u3059\u308b&quot;)\r\n    parser.add_argument(&quot;input_file&quot;, help=&quot;\u5165\u529bJSONL\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9&quot;)\r\n    parser.add_argument(\r\n        &quot;--endpoint&quot;,\r\n        default=&quot;\/v1\/chat\/completions&quot;,\r\n        help=&quot;\u30d0\u30c3\u30c1API\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff08\u30c7\u30d5\u30a9\u30eb\u30c8: \/v1\/chat\/completions\uff09&quot;,\r\n    )\r\n    args = parser.parse_args()\r\n\r\n    client = OpenAI()\r\n\r\n    # 1. \u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\r\n    with open(args.input_file, &quot;rb&quot;) as f:\r\n        file = client.files.create(file=f, purpose=&quot;batch&quot;)\r\n    print(f&quot;\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u5b8c\u4e86: {file.id}&quot;)\r\n\r\n    # 2. \u30d0\u30c3\u30c1\u3092\u4f5c\u6210\r\n    batch = client.batches.create(\r\n        input_file_id=file.id,\r\n        endpoint=args.endpoint,\r\n        completion_window=&quot;24h&quot;,\r\n    )\r\n    print(f&quot;\u30d0\u30c3\u30c1\u4f5c\u6210\u5b8c\u4e86: {batch.id}&quot;)\r\n    print(f&quot;\u30b9\u30c6\u30fc\u30bf\u30b9: {batch.status}&quot;)\r\n\r\nif __name__ == &quot;__main__&quot;:\r\n    main()\r\n<\/code><\/pre>\n<p><span class=\"Post-inline\">completion_window<\/span> \u306b\u306f <span class=\"Post-inline\">&quot;24h&quot;<\/span> \u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u30d0\u30c3\u30c1\u51e6\u7406\u306e\u5b8c\u4e86\u671f\u9650\u3067\u3001\u73fe\u6642\u70b9\u3067\u306f\u3053\u306e\u5024\u306e\u307f\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002\u5b9f\u969b\u306b\u306f\u591a\u304f\u306e\u30d0\u30c3\u30c1\u304c\u3053\u308c\u3088\u308a\u3082\u65e9\u304f\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<h4 id=\"section-4-4\" class=\"Heading Title Title--s\">\u30b9\u30c6\u30c3\u30d73\uff1a\u30b9\u30c6\u30fc\u30bf\u30b9\u306e\u78ba\u8a8d\u3068\u7d50\u679c\u306e\u53d6\u5f97<\/h4>\n<p>\u30d0\u30c3\u30c1\u306e\u51e6\u7406\u306b\u306f\u6642\u9593\u304c\u304b\u304b\u308b\u305f\u3081\u3001\u5b9a\u671f\u7684\u306b\u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<span class=\"Post-inline\">completed<\/span> \u306b\u306a\u3063\u305f\u3089\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u30d0\u30c3\u30c1ID\u3092\u63a7\u3048\u5fd8\u308c\u305f\u5834\u5408\u306f <span class=\"Post-inline\">client.batches.list()<\/span> \u3067\u904e\u53bb\u306e\u30d0\u30c3\u30c1\u4e00\u89a7\u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"Pre-title\">batch_retrieve.py<\/div>\n<pre class=\"Copy\"><code>\r\nimport argparse\r\n\r\nfrom dotenv import load_dotenv\r\nfrom openai import OpenAI\r\n\r\n\r\ndef main() -&gt; None:\r\n    load_dotenv()\r\n\r\n    parser = argparse.ArgumentParser(description=&quot;\u30d0\u30c3\u30c1API\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u78ba\u8a8d\u3068\u7d50\u679c\u53d6\u5f97&quot;)\r\n    parser.add_argument(&quot;batch_id&quot;, help=&quot;\u30d0\u30c3\u30c1ID\uff08\u4f8b: batch_abc123\uff09&quot;)\r\n    args = parser.parse_args()\r\n\r\n    client = OpenAI()\r\n\r\n    # \u30b9\u30c6\u30fc\u30bf\u30b9\u3092\u78ba\u8a8d\r\n    batch = client.batches.retrieve(args.batch_id)\r\n    counts = batch.request_counts\r\n\r\n    print(f&quot;\u30d0\u30c3\u30c1ID: {batch.id}&quot;)\r\n    print(f&quot;\u30b9\u30c6\u30fc\u30bf\u30b9: {batch.status}&quot;)\r\n    print(f&quot;\u9032\u6357: {counts.completed}\/{counts.total} \u5b8c\u4e86&quot;)\r\n\r\n    if batch.status != &quot;completed&quot;:\r\n        raise SystemExit(0)\r\n\r\n    # \u7d50\u679c\u3092\u53d6\u5f97\r\n    result_content = client.files.content(batch.output_file_id).text\r\n    print(result_content)\r\n\r\n\r\nif __name__ == &quot;__main__&quot;:\r\n    main()\r\n<\/code><\/pre>\n<p><span class=\"Post-inline\">completed<\/span> \u306b\u306a\u308b\u307e\u3067\u6570\u5206\u304a\u304d\u306b\u5b9f\u884c\u3057\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002\u306a\u304a\u3001\u3053\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u78ba\u8a8d\u3092\u30eb\u30fc\u30d7\u51e6\u7406\uff08\u30dd\u30fc\u30ea\u30f3\u30b0\uff09\u3068\u3057\u3066\u7d44\u3080\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u306a\u304a\u3001\u3053\u306e\u5b9f\u88c5\u306f\u7c21\u6613\u7684\u306a\u3082\u306e\u3067\u3001\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u60f3\u5b9a\u3092\u3057\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n\u51fa\u529b\u3082JSONL\u5f62\u5f0f\u3067\u8fd4\u3063\u3066\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306f\u7d50\u679c\u306e1\u884c\u3092\u6574\u5f62\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<div class=\"Pre-title\">json<\/div>\n<pre class=\"Copy\"><code>\r\n{\r\n  &quot;id&quot;: &quot;batch_req_XXXXXXXXXXXX&quot;,\r\n  &quot;custom_id&quot;: &quot;q-001&quot;,\r\n  &quot;response&quot;: {\r\n    &quot;status_code&quot;: 200,\r\n    &quot;request_id&quot;: &quot;XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&quot;,\r\n    &quot;body&quot;: {\r\n      &quot;id&quot;: &quot;chatcmpl-XXXXXXXXXXXX&quot;,\r\n      &quot;object&quot;: &quot;chat.completion&quot;,\r\n      &quot;created&quot;: 1776148910,\r\n      &quot;model&quot;: &quot;gpt-5.4-mini-2026-03-17&quot;,\r\n      &quot;choices&quot;: [\r\n        {\r\n          &quot;index&quot;: 0,\r\n          &quot;message&quot;: {\r\n            &quot;role&quot;: &quot;assistant&quot;,\r\n            &quot;content&quot;: &quot;Python\u306e\u30ea\u30b9\u30c8\u5185\u5305\u8868\u8a18\u306f\u3001**for\u6587\u3067\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u51e6\u7406\u30921\u884c\u3067\u7c21\u6f54\u306b\u66f8\u3051\u308b**\u66f8\u304d\u65b9\u3067\u3059\u3002  \\n\u305f\u3068\u3048\u3070 `[x * 2 for x in range(5)]` \u306f\u30010\u301c4\u30922\u500d\u3057\u305f `[0, 2, 4, 6, 8]` \u3092\u4f5c\u308a\u307e\u3059\u3002  \\n\u3055\u3089\u306b `if` \u3092\u4ed8\u3051\u3066\u3001\u6761\u4ef6\u306b\u5408\u3046\u8981\u7d20\u3060\u3051\u3092\u96c6\u3081\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002&quot;,\r\n            &quot;refusal&quot;: null,\r\n            &quot;annotations&quot;: []\r\n          },\r\n          &quot;finish_reason&quot;: &quot;stop&quot;\r\n        }\r\n      ],\r\n      &quot;usage&quot;: {\r\n        &quot;prompt_tokens&quot;: 60,\r\n        &quot;completion_tokens&quot;: 111,\r\n        &quot;total_tokens&quot;: 171,\r\n        &quot;prompt_tokens_details&quot;: {\r\n          &quot;cached_tokens&quot;: 0,\r\n          &quot;audio_tokens&quot;: 0\r\n        },\r\n        &quot;completion_tokens_details&quot;: {\r\n          &quot;reasoning_tokens&quot;: 0,\r\n          &quot;audio_tokens&quot;: 0,\r\n          &quot;accepted_prediction_tokens&quot;: 0,\r\n          &quot;rejected_prediction_tokens&quot;: 0\r\n        }\r\n      },\r\n      &quot;service_tier&quot;: &quot;default&quot;,\r\n      &quot;system_fingerprint&quot;: null\r\n    }\r\n  },\r\n  &quot;error&quot;: null\r\n}\r\n<\/code><\/pre>\n<p><span class=\"Post-inline\">custom_id<\/span> \u3067\u5143\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u7d50\u679c\u3092\u7d10\u3065\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u9806\u306f\u5165\u529b\u3068\u4e00\u81f4\u3059\u308b\u4fdd\u8a3c\u304c\u306a\u3044\u305f\u3081\u3001\u3053\u306e <span class=\"Post-inline\">custom_id<\/span> \u3067\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u304c\u91cd\u8981\u3067\u3059\u3002<br \/>\n\u306a\u304a\u3001\u30d0\u30c3\u30c1\u5185\u3067\u4e00\u90e8\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u3001\u6210\u529f\u5206\u306f <span class=\"Post-inline\">output_file_id<\/span> \u304b\u3089\u3001\u5931\u6557\u5206\u306f <span class=\"Post-inline\">error_file_id<\/span> \u304b\u3089\u53d6\u5f97\u3067\u304d\u307e\u3059\u300224\u6642\u9593\u4ee5\u5185\u306b\u5b8c\u4e86\u3057\u306a\u304b\u3063\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u306f <span class=\"Post-inline\">batch_expired<\/span> \u30a8\u30e9\u30fc\u304c\u8a18\u9332\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3 id=\"section-5\" class=\"Heading Title Title--m\">\u30d0\u30c3\u30c1API\u3092\u6d3b\u7528\u3059\u308b\u305f\u3081\u306e\u30dd\u30a4\u30f3\u30c8<\/h3>\n<p>\u30d0\u30c3\u30c1API\u3092\u52b9\u679c\u7684\u306b\u4f7f\u3046\u305f\u3081\u306e\u8a2d\u8a08\u4e0a\u306e\u30dd\u30a4\u30f3\u30c8\u3092\u307e\u3068\u3081\u307e\u3059\u3002<\/p>\n<h4 id=\"section-5-1\" class=\"Heading Title Title--s\">custom_id\u306e\u8a2d\u8a08<\/h4>\n<p><span class=\"Post-inline\">custom_id<\/span> \u306f\u7d50\u679c\u3068\u5143\u30c7\u30fc\u30bf\u3092\u7d10\u3065\u3051\u308b\u552f\u4e00\u306e\u624b\u6bb5\u3067\u3059\u3002\u51fa\u529b\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u9806\u306f\u5165\u529b\u3068\u4e00\u81f4\u3059\u308b\u4fdd\u8a3c\u304c\u306a\u3044\u305f\u3081\u3001<span class=\"Post-inline\">custom_id<\/span> \u3067\u78ba\u5b9f\u306b\u30de\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u5b9f\u52d9\u3067\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30ec\u30b3\u30fc\u30c9ID\u3084\u51e6\u7406\u5bfe\u8c61\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8ID\u306a\u3069\u3001\u5143\u30c7\u30fc\u30bf\u3092\u7279\u5b9a\u3067\u304d\u308b\u5024\u3092\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h4 id=\"section-5-2\" class=\"Heading Title Title--s\">\u5b8c\u4e86\u671f\u9650\u3068\u671f\u9650\u5207\u308c\u306e\u6271\u3044<\/h4>\n<p>\u30d0\u30c3\u30c1\u51e6\u7406\u306e\u5b8c\u4e86\u671f\u9650\u306f24\u6642\u9593\u3067\u3059\u3002\u671f\u9650\u5185\u306b\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u306a\u304b\u3063\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306f <span class=\"Post-inline\">batch_expired<\/span> \u30a8\u30e9\u30fc\u3068\u306a\u308a\u307e\u3059\u304c\u3001\u671f\u9650\u5185\u306b\u5b8c\u4e86\u3057\u305f\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u6b63\u5e38\u306b\u8ab2\u91d1\u30fb\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002\u5927\u91cf\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u6271\u3046\u5834\u5408\u306f\u3001\u30d0\u30c3\u30c1\u306e\u9032\u6357\u3092\u5b9a\u671f\u7684\u306b\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3 id=\"section-6\" class=\"Heading Title Title--m\">\u5404\u30d9\u30f3\u30c0\u30fc\u306e\u6bd4\u8f03<\/h3>\n<p>\u30d0\u30c3\u30c1API\u306e\u4ed5\u7d44\u307f\u306f\u30d9\u30f3\u30c0\u30fc\u3054\u3068\u306b\u7570\u306a\u308a\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30c6\u30fc\u30d6\u30eb\u306b\u4e3b\u8981\u306a\u9055\u3044\u3092\u307e\u3068\u3081\u307e\u3057\u305f\uff08<a href=\"https:\/\/developers.openai.com\/api\/docs\/guides\/batch\" class=\"Ext\">OpenAI\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a> \u3001<a href=\"https:\/\/platform.claude.com\/docs\/en\/build-with-claude\/batch-processing\" class=\"Ext\">Anthropic\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a> \u3001<a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/batch-api\" class=\"Ext\">Google AI\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\uff09\u3002<\/p>\n<table class=\"Base-table\">\n<tr>\n<th>\u6bd4\u8f03\u8ef8<\/th>\n<th>OpenAI<\/th>\n<th>Claude\uff08Anthropic\uff09<\/th>\n<th>Gemini\uff08Google\uff09<\/th>\n<\/tr>\n<tr>\n<td>API\u540d\u79f0<\/td>\n<td>Batch API<\/td>\n<td>Message Batches API<\/td>\n<td>Batch API<\/td>\n<\/tr>\n<tr>\n<td>\u5165\u529b\u5f62\u5f0f<\/td>\n<td>JSONL\u30d5\u30a1\u30a4\u30eb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/td>\n<td>API\u30ea\u30af\u30a8\u30b9\u30c8\u3067\u76f4\u63a5\u9001\u4fe1<\/td>\n<td>\u30a4\u30f3\u30e9\u30a4\u30f3 \/ JSONL\u30d5\u30a1\u30a4\u30eb<\/td>\n<\/tr>\n<tr>\n<td>1\u30d0\u30c3\u30c1\u306e\u4e0a\u9650<\/td>\n<td>50,000\u30ea\u30af\u30a8\u30b9\u30c8 \/ 200MB<\/td>\n<td>100,000\u30ea\u30af\u30a8\u30b9\u30c8 \/ 256MB<\/td>\n<td>\u30a4\u30f3\u30e9\u30a4\u30f3: 20MB \/ \u30d5\u30a1\u30a4\u30eb: 2GB<\/td>\n<\/tr>\n<tr>\n<td>\u5b8c\u4e86\u671f\u9650<\/td>\n<td>24\u6642\u9593\uff08\u591a\u304f\u306f\u3088\u308a\u65e9\u304f\u5b8c\u4e86\uff09<\/td>\n<td>24\u6642\u9593\uff08\u591a\u304f\u306f1\u6642\u9593\u4ee5\u5185\uff09<\/td>\n<td>24\u6642\u9593\u76ee\u6a19\uff08\u591a\u304f\u306f\u3053\u308c\u3088\u308a\u306f\u308b\u304b\u306b\u65e9\u304f\u7d42\u4e86\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u30b3\u30b9\u30c8\u5272\u5f15<\/td>\n<td>50%\u30aa\u30d5<\/td>\n<td>50%\u30aa\u30d5<\/td>\n<td>50%\u30aa\u30d5<\/td>\n<\/tr>\n<tr>\n<td>\u7d50\u679c\u306e\u4fdd\u6301\u671f\u9593<\/td>\n<td>30\u65e5\u9593\uff08\u30d3\u30c7\u30aa\u306f24\u6642\u9593\uff09<\/td>\n<td>29\u65e5\u9593<\/td>\n<td>\u8a18\u8f09\u306a\u3057<\/td>\n<\/tr>\n<\/table>\n<h3 id=\"section-7\" class=\"Heading Title Title--m\">\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/h3>\n<p>\u30d0\u30c3\u30c1API\u304c\u7279\u306b\u52b9\u679c\u3092\u767a\u63ee\u3059\u308b\u306e\u306f\u3001<strong>\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u540c\u3058\u30eb\u30fc\u30eb\u3067\u51e6\u7406\u3059\u308b<\/strong>\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<table class=\"Base-table\">\n<tr>\n<th>\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9<\/th>\n<th>\u51e6\u7406\u5185\u5bb9<\/th>\n<th>\u30d0\u30c3\u30c1API\u304c\u6709\u52b9\u306a\u7406\u7531<\/th>\n<\/tr>\n<tr>\n<td>\u5927\u898f\u6a21\u8a55\u4fa1\uff08Evaluation\uff09<\/td>\n<td>\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u306e\u4e00\u62ec\u8a55\u4fa1<\/td>\n<td>\u6570\u5343\u4ef6\u306e\u30c6\u30b9\u30c8\u3092\u4f4e\u30b3\u30b9\u30c8\u3067\u5b9f\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u30b3\u30f3\u30c6\u30f3\u30c4\u30e2\u30c7\u30ec\u30fc\u30b7\u30e7\u30f3<\/td>\n<td>\u30e6\u30fc\u30b6\u30fc\u6295\u7a3f\u306e\u4e00\u62ec\u30c1\u30a7\u30c3\u30af<\/td>\n<td>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u6027\u4e0d\u8981\u3067\u5927\u91cf\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u5546\u54c1\u8aac\u660e\u306e\u4e00\u62ec\u751f\u6210<\/td>\n<td>EC\u30b5\u30a4\u30c8\u306e\u5546\u54c1\u30c7\u30fc\u30bf\u304b\u3089\u8aac\u660e\u6587\u3092\u751f\u6210<\/td>\n<td>\u6570\u767e\u301c\u6570\u4e07\u4ef6\u306e\u5546\u54c1\u3092\u4e00\u62ec\u51e6\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u7ffb\u8a33<\/td>\n<td>\u30de\u30cb\u30e5\u30a2\u30eb\u3084\u5951\u7d04\u66f8\u306e\u5927\u91cf\u7ffb\u8a33<\/td>\n<td>\u5373\u6642\u6027\u304c\u4e0d\u8981\u3067\u3001\u30b3\u30b9\u30c8\u524a\u6e1b\u52b9\u679c\u304c\u5927\u304d\u3044<\/td>\n<\/tr>\n<tr>\n<td>\u30c7\u30fc\u30bf\u30e9\u30d9\u30ea\u30f3\u30b0<\/td>\n<td>\u5b66\u7fd2\u30c7\u30fc\u30bf\u3078\u306e\u30e9\u30d9\u30eb\u4ed8\u3051<\/td>\n<td>\u5927\u91cf\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3066\u4e00\u8cab\u3057\u305f\u30eb\u30fc\u30eb\u3067\u51e6\u7406<\/td>\n<\/tr>\n<\/table>\n<p>\u3044\u305a\u308c\u3082\u300c\u5373\u6642\u5fdc\u7b54\u306f\u4e0d\u8981\u3060\u304c\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u62ec\u3067\u51e6\u7406\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u5f53\u3066\u306f\u307e\u308b\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u901a\u5e38\u306eAPI\u3092\u30d0\u30c3\u30c1API\u306b\u7f6e\u304d\u63db\u3048\u308b\u3060\u3051\u3067\u30b3\u30b9\u30c8\u3092\u534a\u6e1b\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3 id=\"section-8\" class=\"Heading Title Title--m\">\u307e\u3068\u3081<\/h3>\n<ul class=\"Base-list\">\n<li class=\"Base-list__child\">\u30d0\u30c3\u30c1API\u306f\u3001\u8907\u6570\u306eAPI\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u975e\u540c\u671f\u3067\u307e\u3068\u3081\u3066\u51e6\u7406\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3001\u30b3\u30b9\u30c8\u3092\u6700\u592750%\u524a\u6e1b\u3067\u304d\u308b<\/li>\n<li class=\"Base-list__child\">OpenAI\u3067\u306fJSONL\u30d5\u30a1\u30a4\u30eb\u30d9\u30fc\u30b9\u306e\u30b7\u30f3\u30d7\u30eb\u306a\u8a2d\u8a08\u3067\u3001\u30c6\u30ad\u30b9\u30c8\u30fb\u753b\u50cf\u30fb\u30d3\u30c7\u30aa\u3068\u5e45\u5e83\u3044\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u5bfe\u5fdc<\/li>\n<li class=\"Base-list__child\"><span class=\"Post-inline\">custom_id<\/span> \u3067\u7d50\u679c\u3092\u5143\u30c7\u30fc\u30bf\u306b\u7d10\u3065\u3051\u308b\u305f\u3081\u3001ID\u306e\u8a2d\u8a08\u304c\u91cd\u8981<\/li>\n<li class=\"Base-list__child\">24\u6642\u9593\u4ee5\u5185\u306b\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u3001\u591a\u304f\u306e\u5834\u5408\u306f\u305d\u308c\u3088\u308a\u3082\u65e9\u304f\u7d50\u679c\u304c\u5f97\u3089\u308c\u308b<\/li>\n<\/ul>\n<p>\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u5fdc\u7b54\u304c\u4e0d\u8981\u306a\u5927\u91cf\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u30d0\u30c3\u30c1API\u3078\u306e\u5207\u308a\u66ff\u3048\u3092\u691c\u8a0e\u3057\u3066\u307f\u3066\u306f\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<h3 id=\"section-9\" class=\"Heading Title Title--m\">\u751f\u6210AI\u6d3b\u7528\u652f\u63f4\u30b5\u30fc\u30d3\u30b9\u306e\u3054\u7d39\u4ecb<\/h3>\n<p>Tech Fun\u3067\u306f\u3001\u304a\u5ba2\u69d8\u306e\u30d5\u30a7\u30fc\u30ba\u306b\u5408\u308f\u305b\u3001\u751f\u6210AI\u6d3b\u7528\u306b\u5411\u3051\u305f\u652f\u63f4\u30923\u3064\u306e\u30d1\u30c3\u30af\u3067\u3054\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<ol class=\"Base-list Base-list--ol\">\n<li class=\"Base-list__child\">\n        <a href=\"https:\/\/www.techfun.co.jp\/services\/ai\/diagnosis\/\" class=\"Ext\">\u7121\u6599\u8a3a\u65ad\u30d1\u30c3\u30af<\/a>\uff1a\u696d\u52d9\u30fb\u30d7\u30ed\u30bb\u30b9\u306e\u73fe\u72b6\u3092\u7121\u6599\u3067\u8a3a\u65ad\u3057\u3001\u751f\u6210AI\u6d3b\u7528\u306e\u53ef\u80fd\u6027\u3092\u30ec\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002\n    <\/li>\n<li class=\"Base-list__child\">\n        <a href=\"https:\/\/www.techfun.co.jp\/services\/ai\/poc\/\" class=\"Ext\">\u691c\u8a3c\uff08PoC\uff09\u30d1\u30c3\u30af<\/a>\uff1a\u8a3a\u65ad\u3067\u6709\u52b9\u6027\u304c\u78ba\u8a8d\u3055\u308c\u305f\u696d\u52d9\u3092\u5bfe\u8c61\u306b\u3001\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u69cb\u7bc9\u3092\u652f\u63f4\u3057\u307e\u3059\u3002\n    <\/li>\n<li class=\"Base-list__child\">\n        <a href=\"https:\/\/www.techfun.co.jp\/services\/ai\/consulting\/\" class=\"Ext\">\u30b3\u30f3\u30b5\u30eb\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9<\/a>\uff1a\u751f\u6210AI\u5c0e\u5165\u6226\u7565\u306e\u7b56\u5b9a\u304b\u3089\u904b\u7528\u4f53\u5236\u69cb\u7bc9\u307e\u3067\u3092\u5305\u62ec\u7684\u306b\u652f\u63f4\u3057\u307e\u3059\u3002\n    <\/li>\n<\/ol>\n<p>\u751f\u6210AI\u306b\u9650\u3089\u305a\u3001Web\u30fb\u696d\u52d9\u30b7\u30b9\u30c6\u30e0\u958b\u767a\u3084\u30a4\u30f3\u30d5\u30e9\u8a2d\u8a08\u306a\u3069\u3001\u6280\u8853\u9818\u57df\u3092\u554f\u308f\u305a\u3054\u76f8\u8ac7\u3092\u627f\u3063\u3066\u3044\u307e\u3059\u3002\u300c\u4f55\u304b\u3089\u59cb\u3081\u308c\u3070\u826f\u3044\u304b\u5206\u304b\u3089\u306a\u3044\u300d\u3068\u3044\u3046\u6bb5\u968e\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u305c\u3072\u304a\u6c17\u8efd\u306b\u304a\u554f\u3044\u5408\u308f\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u751f\u6210AI\u3092\u30b7\u30b9\u30c6\u30e0\u306b\u7d44\u307f\u8fbc\u3093\u3067\u3044\u308b\u3068\u3001\u300c\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u4e00\u62ec\u3067AI\u306b\u51e6\u7406\u3055\u305b\u305f\u3044\u300d\u3068\u3044\u3046\u5834\u9762\u306b\u906d\u9047\u3057\u307e\u3059\u3002\u5546\u54c1\u8aac\u660e\u306e\u4e00\u62ec\u751f\u6210\u3001\u8a55\u4fa1\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u51e6\u7406\u3001\u30e6\u30fc\u30b6\u30fc\u30ec\u30d3\u30e5\u30fc\u306e\u5206\u985e \u2015 \u3044\u305a\u308c\u3082\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u5fdc\u7b54\u306f\u4e0d\u8981\u3067\u2026<\/p>\n","protected":false},"author":7,"featured_media":6971,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[91],"class_list":["post-6970","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-generative-ai"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/6970","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/comments?post=6970"}],"version-history":[{"count":2,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/6970\/revisions"}],"predecessor-version":[{"id":6975,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/posts\/6970\/revisions\/6975"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/media\/6971"}],"wp:attachment":[{"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/media?parent=6970"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techfun.cc\/wp-json\/wp\/v2\/categories?post=6970"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}