{"id":50872,"date":"2023-08-18T00:00:00","date_gmt":"2023-08-18T07:00:00","guid":{"rendered":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/"},"modified":"2026-03-30T12:19:09","modified_gmt":"2026-03-30T19:19:09","slug":"building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react","status":"publish","type":"post","link":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/","title":{"rendered":"GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u7d44\u7e54\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306bOpenAI API\u306e\u3088\u3046\u306a\u9ad8\u5ea6\u306aAPI\u306b\u4f9d\u5b58\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306eAPI\u306fAI\u3084\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u3068\u306e\u5bfe\u8a71\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001API\u547c\u3073\u51fa\u3057\u306e\u30b3\u30b9\u30c8\u3092\u6c7a\u5b9a\u3059\u308bAPI\u30c8\u30fc\u30af\u30f3\u306e\u7ba1\u7406\u306f\u56f0\u96e3\u3067\u3059\u3002\u904e\u5270\u4f7f\u7528\u306f\u9ad8\u30b3\u30b9\u30c8\u306b\u3064\u306a\u304c\u308a\u3001\u4e00\u65b9\u3067\u904e\u5c0f\u4f7f\u7528\u3067\u306f\u30ea\u30bd\u30fc\u30b9\u3092\u7121\u99c4\u306b\u3057\u3066\u3057\u307e\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8ab2\u984c\u306b\u5bfe\u51e6\u3059\u308b\u305f\u3081\u3001\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u3092\u53ef\u8996\u5316\u3059\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u63d0\u6848\u3057\u307e\u3059\u3002\u30c7\u30fc\u30bf\u7ba1\u7406\u306b\u306fGridDB\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u958b\u767a\u306b\u306fNode.js\u3001\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9UI\u306b\u306fReact\u3092\u6d3b\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306f\u3001\u554f\u984c\u3092\u7406\u89e3\u3057\u3001\u89e3\u6c7a\u7b56\u3092\u69cb\u60f3\u3057\u3001\u9078\u629e\u3057\u305f\u6280\u8853\u3067\u52b9\u679c\u7684\u306b\u5b9f\u88c5\u3059\u308b\u305f\u3081\u306e\u30ac\u30a4\u30c9\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>\u3053\u306e\u30d6\u30ed\u30b0\u306e\u76ee\u7684<\/h2>\n<p>\u3053\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u4e3b\u306a\u76ee\u7684\u306f\u3001GridDB\u3001Node.js\u3001React \u3092\u4f7f\u7528\u3057\u3066 OpenAI API \u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u5fb9\u5e95\u7684\u304b\u3064\u4f53\u7cfb\u7684\u306a\u30ac\u30a4\u30c9\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<h2>\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3068\u5b9f\u884c<\/h2>\n<p><a href=\"https:\/\/github.com\/junwatu\/openai-tokens-dashboard\">GitHub<\/a> \u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30af\u30ed\u30fc\u30f3\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>git clone https:\/\/github.com\/junwatu\/openai-tokens-dashboard.git<\/code><\/pre>\n<\/div>\n<blockquote><p>\n  GridDB \u3068 Node.js LTS 18 \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n  \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u3053\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e <a href=\"#installation\"><strong>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/a> \u30bb\u30af\u30b7\u30e7\u30f3\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n<\/p><\/blockquote>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092 <code>openai-tokens-dashboard<\/code> \u30d5\u30a9\u30eb\u30c0\u306b\u5909\u66f4\u3057\u3001<code>.env<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u307e\u305f\u306f\u7de8\u96c6\u3057\u307e\u3059\u3002OpenAI API \u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<a href=\"https:\/\/platform.openai.com\/account\/api-keys\">\u30ad\u30fc\u3092\u4f5c\u6210<\/a>\u3057\u3001\u4f5c\u6210\u3057\u305f OpenAI API \u30ad\u30fc\u3092 <code>OPENAI_API_KEY<\/code> \u74b0\u5883\u5909\u6570\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>OPENAI_API_KEY=put_your_key_here<\/code><\/pre>\n<\/div>\n<p>\u30eb\u30fc\u30c8\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3001<code>server<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3001<code>ui<\/code>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3066\u4f9d\u5b58\u95a2\u4fc2\u542b\u3081\u3066npm\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-bash\">cd openai-tokens-dashboard\nnpm install\n\ncd server\nnpm install\n\ncd ..\/ui\nnpm install<\/code><\/pre>\n<\/div>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092 <code>server<\/code> \u306b\u5909\u66f4\u3057\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u30b5\u30fc\u30d0\u30fc\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-bash\">cd server\nnpm run start<\/code><\/pre>\n<\/div>\n<p>\u5225\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u3001\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30eb\u30fc\u30c8\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089 <code>ui<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5909\u66f4\u3057\u3066\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e UI \u958b\u767a\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-bash\">cd ui\nnpm run dev<\/code><\/pre>\n<\/div>\n<p>\u30b5\u30fc\u30d0\u30fc\u3068\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u30fc\u3092\u958b\u304d\u3001<code>http:\/\/localhost:5173<\/code> \u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-init.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-init.png\" alt=\"\" width=\"1738\" height=\"762\" class=\"aligncenter size-full wp-image-29752\" srcset=\"\/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-init.png 1738w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-init-300x132.png 300w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-init-1024x449.png 1024w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-init-768x337.png 768w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-init-1536x673.png 1536w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-init-600x263.png 600w\" sizes=\"(max-width: 1738px) 100vw, 1738px\" \/><\/a><\/p>\n<p>\u3059\u3079\u3066\u304c\u9806\u8abf\u306b\u9032\u3093\u3067\u3044\u308c\u3070\u3001\u4e0a\u306e\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u306e\u3088\u3046\u306a\u30a6\u30a7\u30d6\u30fb\u30e6\u30fc\u30b6\u30fc\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>OpenAI API\u3092\u6df1\u304f\u6398\u308a\u4e0b\u3052\u308b<\/h2>\n<p>\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306bOpenAI API\u3092\u52b9\u679c\u7684\u306b\u7d71\u5408\u3057\u3066\u5229\u7528\u3059\u308b\u306b\u306f\u3001API\u306e\u7279\u5fb4\u3001\u6a5f\u80fd\u3001\u5229\u7528\u53ef\u80fd\u306a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3001\u30b3\u30b9\u30c8\u3092\u8a08\u7b97\u3057\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u3001OpenAI API\u306e\u4e3b\u306a\u4e3b\u8981\u70b9\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>API\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/strong>\uff1a OpenAI\u304c\u63d0\u4f9b\u3059\u308bAPI\u306e<a href=\"https:\/\/platform.openai.com\/docs\/api-reference\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304b\u3089\u59cb\u3081\u307e\u3057\u3087\u3046\u3002\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u30c1\u30e3\u30c3\u30c8\u88dc\u5b8c\u3092\u4f7f\u3044\u307e\u3059\u3002<a href=\"https:\/\/platform.openai.com\/docs\/api-reference\/completions\/create\">\u30c1\u30e3\u30c3\u30c8API<\/a>\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u306f\u3001\u5229\u7528\u53ef\u80fd\u306a\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3001\u30ea\u30af\u30a8\u30b9\u30c8\/\u30ec\u30b9\u30dd\u30f3\u30b9\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3001\u7279\u5b9a\u306e\u30ac\u30a4\u30c9\u30e9\u30a4\u30f3\u3084\u5236\u9650\u4e8b\u9805\u306e\u6982\u8981\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/li>\n<li><strong>\u30b3\u30b9\u30c8<\/strong>\uff1a OpenAI\u306f\u30ea\u30ea\u30fc\u30b9\u3057\u3066\u3044\u308b\u30e2\u30c7\u30eb\u3054\u3068\u306b\u7570\u306a\u308b<a href=\"https:\/\/openai.com\/pricing\">\u4fa1\u683c<\/a>\u4f53\u7cfb\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001<code>gpt-3.5-turbo<\/code>\u307e\u305f\u306f<code>gpt-3.5-turbo-16k<\/code>\u30e2\u30c7\u30eb\u3092\u5229\u7528\u3057\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30e2\u30c7\u30eb\u306e\u30b3\u30b9\u30c8\u30c6\u30fc\u30d6\u30eb\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<br \/>\n<table>\n<thead>\n<tr>\n<th>Model<\/th>\n<th>Input<\/th>\n<th>Output<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>4K context<\/td>\n<td>$0.0015 \/ 1K tokens<\/td>\n<td>$0.002 \/ 1K tokens<\/td>\n<\/tr>\n<tr>\n<td>16K context<\/td>\n<td>$0.003 \/ 1K tokens<\/td>\n<td>$0.004 \/ 1K tokens<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ol>\n<p>OpenAI API\u3092\u6df1\u304f\u6398\u308a\u4e0b\u3052\u308b\u3053\u3068\u3067\u3001\u305d\u306e\u6a5f\u80fd\u3092\u5305\u62ec\u7684\u306b\u7406\u89e3\u3057\u3001\u305d\u308c\u306b\u5fdc\u3058\u3066\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u8a2d\u8a08\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u6838\u5fc3\u7684\u306a\u554f\u984c: \u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u30b3\u30b9\u30c8<\/h2>\n<h3>OpenAI API \u30c8\u30fc\u30af\u30f3\u306e\u7406\u89e3<\/h3>\n<p>OpenAI \u306e API \u306f\u3001\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u969b\u306e\u57fa\u672c\u7684\u306a\u4f5c\u696d\u5358\u4f4d\u3068\u3057\u3066\u30c8\u30fc\u30af\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u57fa\u672c\u7684\u306b\u3001\u30c8\u30fc\u30af\u30f3\u306fAPI\u304c\u8aad\u307f\u53d6\u3063\u3066\u51e6\u7406\u3059\u308b\u30c6\u30ad\u30b9\u30c8\u306e\u584a\u3067\u3059\u3002\u30c8\u30fc\u30af\u30f3\u306f\u53b3\u5bc6\u306b\u306f\u5358\u8a9e\u3001\u6587\u5b57\u3001\u30d0\u30a4\u30c8\u306b\u76f8\u5f53\u3057\u307e\u305b\u3093\u304c\u3001\u8a08\u7b97\u4f5c\u696d\u306e\u5c3a\u5ea6\u3068\u3057\u3066\u8003\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u3092\u30c8\u30fc\u30af\u30f3\u306b\u5206\u5272\u3059\u308b\u30c8\u30fc\u30af\u30f3\u5316\u30d7\u30ed\u30bb\u30b9\u306f\u3001\u30e2\u30c7\u30eb\u304c\u4f7f\u7528\u3059\u308b\u7279\u5b9a\u306e\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u306b\u5f93\u3044\u307e\u3059\u3002\u4f8b\u3048\u3070\u82f1\u8a9e\u306e\u5834\u5408\u3001\u30c8\u30fc\u30af\u30f3\u306f1\u6587\u5b57\u3068\u3044\u3046\u77ed\u3044\u3082\u306e\u304b\u3089\u3001&#8221;a &#8220;\u3084 &#8220;apple &#8220;\u306e\u3088\u3046\u306a1\u5358\u8a9e\u3068\u3044\u3046\u9577\u3044\u3082\u306e\u307e\u3067\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3059\u3079\u3066\u306e\u5358\u8a9e\u304c1\u3064\u306e\u30c8\u30fc\u30af\u30f3\u3067\u306f\u306a\u3044\u3053\u3068\u306b\u6ce8\u610f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001&#8221;chatbot &#8220;\u3068\u3044\u3046\u5358\u8a9e\u306f1\u3064\u306e\u30c8\u30fc\u30af\u30f3\u3067\u3059\u304c\u3001&#8221;ChatGPT &#8220;\u306e\u3088\u3046\u306a\u5358\u8a9e\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u3092\u30c8\u30fc\u30af\u30f3\u5316\u3059\u308b\u305f\u3081\u306b\u30e2\u30c7\u30eb\u304c\u3069\u306e\u3088\u3046\u306b\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3055\u308c\u305f\u304b\u306b\u57fa\u3065\u3044\u3066\u3001\u8907\u6570\u306e\u30c8\u30fc\u30af\u30f3\uff08&#8221;Chat&#8221;\u3001&#8221;##G&#8221;\u3001&#8221;##PT&#8221;\uff09\u306b\u5206\u5272\u3055\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>API\u30b3\u30fc\u30eb\u306e\u30c8\u30fc\u30af\u30f3\u306e\u6570\u306f\u3001\u30b3\u30fc\u30eb\u306e\u30b3\u30b9\u30c8\u3068\u30b3\u30fc\u30eb\u304c\u5168\u304f\u6a5f\u80fd\u3059\u308b\u304b\u3069\u3046\u304b\u306e\u4e21\u65b9\u306b\u5927\u304d\u304f\u5f71\u97ff\u3057\u307e\u3059\u3002OpenAI\u306f\u30c8\u30fc\u30af\u30f3\u3054\u3068\u306b\u8ab2\u91d1\u3057\u3001\u30e2\u30c7\u30eb\u306b\u306f1\u56de\u306e\u547c\u3073\u51fa\u3057\u3067\u51e6\u7406\u3067\u304d\u308b\u30c8\u30fc\u30af\u30f3\u306e\u4e0a\u9650\u304c\u3042\u308a\u307e\u3059\u3002\u4f8b\u3048\u3070\u30012021\u5e749\u6708\u73fe\u5728\u3001<code>gpt-3.5-turbo<\/code>\u30e2\u30c7\u30eb\u306f1\u56de\u306e\u547c\u3073\u51fa\u3057\u30674096\u30c8\u30fc\u30af\u30f3\u304c\u4e0a\u9650\u3067\u3059\u3002<\/p>\n<p>\u30c8\u30fc\u30af\u30f3\u306e\u6570\u3048\u65b9\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u306f\u3001\u30b3\u30b9\u30c8\u3092\u7ba1\u7406\u3057\u3001API\u30b3\u30fc\u30eb\u304c\u610f\u56f3\u3057\u305f\u3068\u304a\u308a\u306b\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u4fdd\u8a3c\u3059\u308b\u305f\u3081\u306b\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\u30b3\u30b9\u30c8\u3092\u7ba1\u7406\u3057\u3001OpenAI API \u3092\u52b9\u7387\u7684\u306b\u4f7f\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30c8\u30fc\u30af\u30f3\u304c\u3069\u306e\u3088\u3046\u306b\u6a5f\u80fd\u3057\u3001API \u547c\u3073\u51fa\u3057\u306b\u3069\u306e\u3088\u3046\u306b\u5f71\u97ff\u3057\u3001\u3069\u306e\u3088\u3046\u306b\u6b63\u78ba\u306b\u30ab\u30a6\u30f3\u30c8\u3059\u308b\u304b\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u4e0d\u53ef\u6b20\u3067\u3059\u3002<\/p>\n<h3>\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u306b\u3088\u308b\u30b3\u30b9\u30c8\u3078\u306e\u5f71\u97ff<\/h3>\n<p>OpenAI API \u3092\u4f7f\u7528\u3059\u308b\u30b3\u30b9\u30c8\u306f\u3001API \u547c\u3073\u51fa\u3057\u4e2d\u306b\u51e6\u7406\u3055\u308c\u305f\u30c8\u30fc\u30af\u30f3\u306e\u6570\u306b\u76f4\u63a5\u30ea\u30f3\u30af\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u4fa1\u683c\u30e2\u30c7\u30eb\u306f\u3001\u30c6\u30ad\u30b9\u30c8\u306e\u751f\u6210\u3001\u30c6\u30ad\u30b9\u30c8\u306e\u7ffb\u8a33\u3001\u305d\u306e\u4ed6\u306e\u30bf\u30b9\u30af\u306e\u5b9f\u884c\u306a\u3069\u3001API\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u7a2e\u985e\u306b\u95a2\u4fc2\u306a\u304f\u5f53\u3066\u306f\u307e\u308a\u307e\u3059\u3002<\/p>\n<p>\u5404API\u30b3\u30fc\u30eb\u306f\u4e00\u5b9a\u6570\u306e\u30c8\u30fc\u30af\u30f3\u3092\u6d88\u8cbb\u3057\u307e\u3059\u3002\u30c8\u30fc\u30af\u30f3\u306b\u306f\u3001\u30e2\u30c7\u30eb\u306b\u751f\u6210\u3092\u4f9d\u983c\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u5185\u306e\u30c8\u30fc\u30af\u30f3\u3060\u3051\u3067\u306a\u304f\u3001\u63d0\u4f9b\u3059\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u5185\u306e\u30c8\u30fc\u30af\u30f3\u3084\u3001\u7279\u5225\u306a\u6307\u793a\u3084\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u305f\u3081\u306b\u4e88\u7d04\u3055\u308c\u305f\u30c8\u30fc\u30af\u30f3\u3082\u542b\u307e\u308c\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001API\u547c\u3073\u51fa\u3057\u3067\u4f7f\u7528\u3055\u308c\u308b\u30c8\u30fc\u30af\u30f3\u306e\u7dcf\u6570\u306f\u3001\u5165\u529b\u30d7\u30ed\u30f3\u30d7\u30c8\u5185\u306e\u30c8\u30fc\u30af\u30f3\u3001\u751f\u6210\u3055\u308c\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3001\u304a\u3088\u3073\u7279\u5225\u306a\u6307\u793a\u306e\u5408\u8a08\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u91cf\u306e\u76e3\u8996\u3068\u7ba1\u7406\u306e\u5fc5\u8981\u6027<\/h3>\n<p>\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u91cf\u3068\u30b3\u30b9\u30c8\u306b\u306f\u76f4\u63a5\u7684\u306a\u76f8\u95a2\u95a2\u4fc2\u304c\u3042\u308a\u3001API\u30b3\u30fc\u30eb\u306e\u6210\u529f\u306b\u3082\u5f71\u97ff\u3059\u308b\u3053\u3068\u304b\u3089\u3001OpenAI\u306eAPI\u3092\u4f7f\u7528\u3059\u308b\u969b\u306b\u306f\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u91cf\u3092\u76e3\u8996\u30fb\u7ba1\u7406\u3059\u308b\u3053\u3068\u304c\u975e\u5e38\u306b\u91cd\u8981\u3067\u3042\u308b\u3053\u3068\u306f\u660e\u3089\u304b\u3067\u3059\u3002\u3053\u308c\u304c\u91cd\u8981\u306a\u7406\u7531\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u4e88\u7b97\u306e\u898b\u7a4d\u3082\u308a<\/strong>\uff1a \u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u81ea\u5206\u306e\u4f7f\u7528\u30d1\u30bf\u30fc\u30f3\u304c\u4e88\u7b97\u3068\u3069\u306e\u3088\u3046\u306b\u6574\u5408\u3057\u3066\u3044\u308b\u304b\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u8a2d\u8a08\u3059\u308b\u305f\u3081\u306b\u3001\u30c8\u30fc\u30af\u30f3\u306e\u30b3\u30b9\u30c8\u3092\u898b\u7a4d\u3082\u308b\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u975e\u5e38\u306b\u4fa1\u5024\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<li><strong>API\u5229\u7528\u306e\u6700\u9069\u5316<\/strong>\uff1a \u30c8\u30fc\u30af\u30f3\u3092\u76e3\u8996\u3059\u308b\u3053\u3068\u3067\u3001API\u304c\u3069\u306e\u7a0b\u5ea6\u52b9\u7387\u7684\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u304b\u306b\u3064\u3044\u3066\u306e\u8cb4\u91cd\u306a\u6d1e\u5bdf\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u5236\u5fa1\u547d\u4ee4\u3084\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u305f\u3081\u306b\u5927\u91cf\u306e\u30c8\u30fc\u30af\u30f3\u304c\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001\u30e6\u30fc\u30b6\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u6a5f\u80fd\u3092\u72a0\u7272\u306b\u3059\u308b\u3053\u3068\u306a\u304f\u3001\u30c8\u30fc\u30af\u30f3\u6570\u3092\u6e1b\u3089\u3059\u305f\u3081\u306b\u4f7f\u7528\u65b9\u6cd5\u3092\u6539\u5584\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9<\/h2>\n<h3>\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u5f79\u5272\u3068\u5229\u70b9<\/h3>\n<p>\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u3001\u30e6\u30fc\u30b6\u304c OpenAI API \u547c\u3073\u51fa\u3057\u306e\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u3092\u76e3\u8996\u30fb\u7ba1\u7406\u3059\u308b\u305f\u3081\u306e\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u3088\u3046\u306a\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u3001\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u72b6\u6cc1\u306b\u95a2\u3059\u308b\u6d1e\u5bdf\u3092\u63d0\u4f9b\u3057\u3001OpenAI API \u306e\u4f7f\u7528\u306b\u95a2\u9023\u3059\u308b\u610f\u601d\u6c7a\u5b9a\u30d7\u30ed\u30bb\u30b9\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u4e0a\u3067\u91cd\u8981\u306a\u5f79\u5272\u3092\u679c\u305f\u3057\u307e\u3059\u3002\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u4e3b\u306a\u5229\u70b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ol>\n<li>\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\uff1a \u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u3001\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u72b6\u6cc1\u306b\u95a2\u3059\u308b\u6700\u65b0\u60c5\u5831\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n<\/li>\n<li>\n<p>\u4f7f\u3044\u3084\u3059\u3055\uff1a \u512a\u308c\u305f\u30c7\u30b6\u30a4\u30f3\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306f\u3001\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u8996\u899a\u7684\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u8868\u793a\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u6280\u8853\u7684\u306a\u30e6\u30fc\u30b6\u3082\u305d\u3046\u3067\u306a\u3044\u30e6\u30fc\u30b6\u3082\u30a2\u30af\u30bb\u30b9\u3057\u3084\u3059\u304f\u306a\u308a\u3001\u5e45\u5e83\u3044\u7406\u89e3\u3068\u3088\u308a\u52b9\u679c\u7684\u306a\u610f\u601d\u6c7a\u5b9a\u304c\u4fc3\u9032\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u3053\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b\u6280\u8853\u3068\u3057\u3066GridDB\u3001Node.js\u3001React\u304c\u9078\u3070\u308c\u305f\u7406\u7531\u3068\u3001\u3053\u308c\u3089\u306e\u5229\u70b9\u3092\u9054\u6210\u3059\u308b\u305f\u3081\u306b\u305d\u308c\u3089\u304c\u3069\u306e\u3088\u3046\u306b\u8ca2\u732e\u3057\u3066\u3044\u308b\u304b\u306b\u3064\u3044\u3066\u6398\u308a\u4e0b\u3052\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u306a\u305cGridDB\u3001Node.js\u3001React\u306a\u306e\u304b\uff1f<\/h2>\n<p>\u52b9\u7387\u7684\u3067\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u306a\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b\u4e0a\u3067\u3001\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u306e\u9078\u629e\u306f\u6975\u3081\u3066\u91cd\u8981\u3067\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001 <strong>GridDB<\/strong>\u3001<strong>Node.js<\/strong>\u3001<strong>React<\/strong> \u3092\u4e3b\u8981\u306a\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u3068\u3057\u3066\u9078\u629e\u3057\u307e\u3057\u305f\u3002\u305d\u306e\u7406\u7531\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<h3>GridDB<\/h3>\n<p><a href=\"https:\/\/griddb.net\">GridDB<\/a>\u306f\u3001IoT\u3084\u30d3\u30c3\u30b0\u30c7\u30fc\u30bf\u5411\u3051\u306b\u6700\u9069\u5316\u3055\u308c\u305f\u3001\u62e1\u5f35\u6027\u306e\u9ad8\u3044\u30a4\u30f3\u30e1\u30e2\u30eaNoSQL\u6642\u7cfb\u5217\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3059\u3002\u5927\u91cf\u306e\u69cb\u9020\u5316\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u3068\u691c\u7d22\u306b\u9069\u3057\u3066\u304a\u308a\u3001\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u30c7\u30fc\u30bf\u3092\u9577\u671f\u7684\u306b\u7ba1\u7406\u30fb\u8ffd\u8de1\u3059\u308b\u306e\u306b\u6700\u9069\u3067\u3059\u3002<\/p>\n<p>\u4e3b\u306a\u5229\u70b9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\uff1a<\/p>\n<ul>\n<li><strong>\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3<\/strong>\uff1a GridDB\u306f\u512a\u308c\u305f\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3092\u5099\u3048\u3066\u304a\u308a\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u5bb9\u6613\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u76e3\u8996\u3057\u305f\u308a\u3001\u30c8\u30ec\u30f3\u30c9\u5206\u6790\u306e\u305f\u3081\u306b\u904e\u53bb\u306e\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u305f\u308a\u3059\u308b\u4e0a\u3067\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002\n<\/li>\n<li>\n<p><strong>\u30b9\u30d4\u30fc\u30c9<\/strong>\uff1a GridDB\u306f\u30a4\u30f3\u30e1\u30e2\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3042\u308b\u305f\u3081\u3001\u9ad8\u901f\u306a\u30c7\u30fc\u30bf\u51e6\u7406\u304c\u53ef\u80fd\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u30e2\u30cb\u30bf\u30ea\u30f3\u30b0\u3084\u8fc5\u901f\u306a\u610f\u601d\u6c7a\u5b9a\u306b\u4e0d\u53ef\u6b20\u306a\u3001\u30bf\u30a4\u30e0\u30ea\u30fc\u306a\u66f4\u65b0\u3068\u8fc5\u901f\u306a\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u5b9f\u73fe\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4fe1\u983c\u6027<\/strong>\uff1a GridDB \u306e\u5805\u7262\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306f\u3001\u9ad8\u53ef\u7528\u6027\u3068\u30c7\u30fc\u30bf\u306e\u4e00\u8cab\u6027\u3092\u4fdd\u8a3c\u3057\u3001\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u4fe1\u983c\u3067\u304d\u308b\u57fa\u76e4\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>Node.js<\/h3>\n<p><a href=\"https:\/\/nodejs.org\">Node.js<\/a> \u306f\u3001Chrome \u306e V8 JavaScript \u30a8\u30f3\u30b8\u30f3\u4e0a\u306b\u69cb\u7bc9\u3055\u308c\u305f\u5f37\u529b\u306a JavaScript \u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u3059\u3002Node.js\u306f\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306a\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u3088\u3046\u306b\u8a2d\u8a08\u3055\u308c\u3066\u304a\u308a\u3001\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u91cf\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u5b9f\u88c5\u3059\u308b\u306e\u306b\u6700\u9069\u3067\u3059\u3002Node.js\u3092\u9078\u629e\u3057\u305f\u7406\u7531\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9<\/strong>\uff1a Node.js\u306f\u3001\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u3001\u30ce\u30f3\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0I\/O\u30e2\u30c7\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u8efd\u91cf\u3067\u52b9\u7387\u7684\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u6211\u3005\u306e\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u91cf\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u3088\u3046\u306a\u3001\u5206\u6563\u30c7\u30d0\u30a4\u30b9\u9593\u3067\u5b9f\u884c\u3055\u308c\u308b\u30c7\u30fc\u30bf\u96c6\u7d04\u7684\u306a\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6700\u9069\u3067\u3059\u3002\n<\/li>\n<li>\n<p><strong>\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u30fb\u30b5\u30dd\u30fc\u30c8<\/strong>\uff1a Node.js\u306b\u306f\u5927\u898f\u6a21\u3067\u6d3b\u767a\u306a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u3042\u308a\u3001\u958b\u767a\u306e\u30b9\u30d4\u30fc\u30c9\u30a2\u30c3\u30d7\u3084\u4e00\u822c\u7684\u306a\u554f\u984c\u3092\u89e3\u6c7a\u3059\u308b\u305f\u3081\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u8c4a\u5bcc\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7d71\u5408<\/strong>\uff1a Node.js\u306fGridDB\u3084React\u3068\u30b7\u30fc\u30e0\u30ec\u30b9\u306b\u7d71\u5408\u3067\u304d\u3001\u30b9\u30bf\u30c3\u30af\u5168\u4f53\u3067\u7d71\u4e00\u3055\u308c\u305fJavaScript\u958b\u767a\u74b0\u5883\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u30b3\u30b9\u30c8<\/strong>\uff1a Node.js\u306e\u512a\u308c\u305f\u70b9\u306f\u3001JavaScript\u3092\u30e1\u30a4\u30f3\u8a00\u8a9e\u3068\u3057\u3066\u3001\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u304b\u3089\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u307e\u3067\u3001\u5b8c\u5168\u306b\u6a5f\u80fd\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3067\u304d\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>React<\/h3>\n<p><a href=\"https:\/\/react.dev\/\">React<\/a>\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3001\u7279\u306b\u30b7\u30f3\u30b0\u30eb\u30da\u30fc\u30b8\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306eJavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3059\u3002Facebook\u3068\u500b\u3005\u306e\u958b\u767a\u8005\u3084\u4f01\u696d\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u3088\u3063\u3066\u7ba1\u7406\u3055\u308c\u3066\u3044\u307e\u3059\u3002React\u3092\u9078\u3076\u7406\u7531\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30d9\u30fc\u30b9<\/strong>\uff1a React\u306f\u3001\u958b\u767a\u8005\u304c\u72ec\u81ea\u306e\u72b6\u614b\u3092\u7ba1\u7406\u3059\u308b\u30ab\u30d7\u30bb\u30eb\u5316\u3055\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u69cb\u7bc9\u3057\u3001\u305d\u308c\u3089\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u8907\u96d1\u306aUI\u3092\u4f5c\u308b\u3053\u3068\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u3055\u307e\u3056\u307e\u306a\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u8981\u7d20\u3092\u6301\u3064\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u69cb\u7bc9\u306b\u6700\u9069\u3067\u3059\u3002\n<\/li>\n<li>\n<p><strong>\u52b9\u7387\u6027<\/strong>\uff1a React\u306f\u3001\u30e1\u30e2\u30ea\u5185\u306e\u30c7\u30fc\u30bf\u69cb\u9020\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f5c\u6210\u3057\u3001\u7d50\u679c\u306e\u5dee\u5206\u3092\u8a08\u7b97\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u306e\u8868\u793aDOM\u3092\u52b9\u7387\u7684\u306b\u66f4\u65b0\u3057\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u9ad8\u901f\u3067\u5fdc\u7b54\u6027\u306e\u9ad8\u3044\u30e6\u30fc\u30b6\u30fc\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304c\u5b9f\u73fe\u3055\u308c\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4eba\u6c17\u3068\u30b5\u30dd\u30fc\u30c8<\/strong>\uff1a React \u306f\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u304a\u308a\u3001\u5f37\u529b\u306a\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u3042\u308b\u305f\u3081\u3001\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30d5\u30ed\u30f3 \u30c8\u30a8\u30f3\u30c9\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u5b89\u5168\u3067\u4fe1\u983c\u3067\u304d\u308b\u9078\u629e\u80a2\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<p>GridDB\u3001Node.js\u3001React \u3092\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u5f37\u529b\u3067\u52b9\u7387\u7684\u3001\u304b\u3064\u4fe1\u983c\u6027\u306e\u9ad8\u3044\u30b9\u30bf\u30c3\u30af\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u8a2d\u8a08<\/h2>\n<h3>\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u9020\u5316<\/h3>\n<p>OpenAI API \u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u52b9\u679c\u7684\u306b\u5b9f\u88c5\u3059\u308b\u306b\u306f\u3001\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u3001\u4fdd\u5b88\u6027\u3001\u62e1\u5f35\u6027\u3092\u78ba\u4fdd\u3059\u308b\u5f37\u56fa\u306a\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u8a2d\u8a08\u3092\u78ba\u7acb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg\" alt=\"\" width=\"1249\" height=\"784\" class=\"aligncenter size-full wp-image-29749\" \/><\/a><\/p>\n<p>\u4ee5\u4e0b\u306f\u3001\u63d0\u6848\u3055\u308c\u3066\u3044\u308b\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u8a2d\u8a08\u306e\u6982\u8981\u3067\u3059\u3002<\/p>\n<p>1&#46;  <strong>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u30fc\u30fb\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc<\/strong>\uff1a\u3053\u306e\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30fc\u30d0\u30fc\u30fb\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u30fc\u3092\u63a1\u7528\u3057\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30b5\u30a4\u30c9\u304c\u30e6\u30fc\u30b6\u30fc\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3068\u30e6\u30fc\u30b6\u30fc\u3068\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30b7\u30e7\u30f3\u3092\u62c5\u5f53\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u30fb\u30b5\u30a4\u30c9\u304c\u30c7\u30fc\u30bf\u51e6\u7406\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u5916\u90e8API\u3068\u306e\u901a\u4fe1\u3092\u62c5\u5f53\u3057\u307e\u3059\u3002<\/p>\n<p>2&#46;  <strong>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\uff08\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\uff09<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>React<\/strong>\uff1a \u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306fReact JavaScript\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u7528\u3057\u3066\u958b\u767a\u3055\u308c\u307e\u3059\u3002React\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u30fb\u30d9\u30fc\u30b9\u306e\u30a2\u30d7\u30ed\u30fc\u30c1\u3068\u4eee\u60f3DOM\u306f\u3001\u52b9\u7387\u7684\u306a\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3092\u53ef\u80fd\u306b\u3057\u3001\u30ec\u30b9\u30dd\u30f3\u30b7\u30d6\u306a\u30e6\u30fc\u30b6\u30fc\u30fb\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4fdd\u8a3c\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>3&#46;  <strong>\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\uff08\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\uff09<\/strong>\uff1a<\/p>\n<ul>\n<li><strong>Node.js<\/strong>\uff1a \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306f\u3001\u4e00\u822c\u7684\u306a\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9JavaScript\u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u3042\u308bNode.js\u3092\u4f7f\u7528\u3057\u3066\u69cb\u7bc9\u3055\u308c\u307e\u3059\u3002Node.js\u306f\u30a4\u30d9\u30f3\u30c8\u99c6\u52d5\u3001\u30ce\u30f3\u30d6\u30ed\u30c3\u30ad\u30f3\u30b0I\/O\u30e2\u30c7\u30eb\u3092\u63d0\u4f9b\u3057\u3001\u540c\u6642\u30ea\u30af\u30a8\u30b9\u30c8\u3084\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u66f4\u65b0\u306e\u51e6\u7406\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><strong>Express.js<\/strong>: Node.js\u7528\u306e\u30a6\u30a7\u30d6\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30fb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3042\u308bExpress.js\u3092\u4f7f\u7528\u3057\u3066\u3001RESTful API\u306e\u958b\u767a\u3092\u7c21\u7d20\u5316\u3057\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3001\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3001\u30ea\u30af\u30a8\u30b9\u30c8\/\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u51e6\u7406\u3057\u307e\u3059\u3002<\/li>\n<li><strong>GridDB<\/strong>\uff1a \u9ad8\u6027\u80fd\u30a4\u30f3\u30e1\u30e2\u30ea\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3067\u3042\u308bGridDB\u306f\u3001\u30c7\u30fc\u30bf\u7ba1\u7406\u3068\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u5229\u7528\u3055\u308c\u307e\u3059\u3002GridDB\u306e\u5206\u6563\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3068\u30b9\u30b1\u30fc\u30e9\u30d3\u30ea\u30c6\u30a3\u6a5f\u80fd\u306f\u3001\u5927\u91cf\u306e\u30c8\u30fc\u30af\u30f3\u5229\u7528\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u306b\u9069\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n<li><strong>OpenAI API\u306e\u7d71\u5408<\/strong>\uff1a \u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30c8\u30fc\u30af\u30f3\u5229\u7528\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306bOpenAI API\u3068\u7d71\u5408\u3057\u307e\u3059\u3002\u3053\u306e\u7d71\u5408\u306b\u306f\u3001API\u30ea\u30af\u30a8\u30b9\u30c8\u3001\u8a8d\u8a3c\u51e6\u7406\u3001\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u306e\u89e3\u6790\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>4&#46;  <strong>\u30c7\u30fc\u30bf\u30d5\u30ed\u30fc<\/strong><\/p>\n<ul>\n<li>\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u306f\u3001Node.js \u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u3088\u3063\u3066\u516c\u958b\u3055\u308c\u308b RESTful API \u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u901a\u3058\u3066\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3068\u901a\u4fe1\u3057\u307e\u3059\u3002<\/li>\n<li>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u306fGridDB\u3068\u3084\u308a\u53d6\u308a\u3057\u3001\u30c8\u30fc\u30af\u30f3\u306e\u5229\u7528\u30c7\u30fc\u30bf\u3092\u52b9\u7387\u7684\u306b\u4fdd\u5b58\u30fb\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<li>\u307e\u305f\u3001OpenAI\u306eAPI\u3068\u3082\u9023\u643a\u3057\u3001\u30c8\u30fc\u30af\u30f3\u306e\u5229\u7528\u72b6\u6cc1\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002<\/li>\n<li>\u51e6\u7406\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306fJSON\u30ec\u30b9\u30dd\u30f3\u30b9\u3068\u3057\u3066\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u306b\u8fd4\u3055\u308c\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3092\u66f4\u65b0\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u3068\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u3092\u660e\u78ba\u306b\u5206\u96e2\u3059\u308b\u3053\u3068\u3067\u3001\u5916\u90e8API\u3068\u306e\u7d71\u5408\u304c\u5bb9\u6613\u306b\u306a\u308a\u3001\u5c06\u6765\u7684\u306a\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u62e1\u5f35\u3084\u8ffd\u52a0\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u308b\u5f37\u56fa\u306a\u57fa\u76e4\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<h2><a href=\"#installation\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/h2>\n<h3>GridDB\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>GridDB\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306f\u7c21\u5358\u3067\u3059\u3002Ubuntu\u3078\u306e\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3053\u3061\u3089\u306e<a href=\"https:\/\/docs.griddb.net\/latest\/gettingstarted\/using-apt\/\">\u30ea\u30f3\u30af<\/a>\u3092\u3001Windows\u3078\u306eWSL\uff08Windows Subsystem Linux\uff09\u7d4c\u7531\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f<a href=\"https:\/\/docs.griddb.net\/installation\/misc.html\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u65e2\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067griddb\u30b5\u30fc\u30d3\u30b9\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>sudo systemctl status gridstore<\/code><\/pre>\n<\/div>\n<p>\u3053\u306eUbuntu OS\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u51fa\u529b\u306f\u3001griddb\u30b5\u30fc\u30d3\u30b9\u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-bash\">\u25cf gridstore.service - GridDB database server.\n     Loaded: loaded (\/lib\/systemd\/system\/gridstore.service; enabled; vendor preset: enabled)\n     Active: active (running) since Tue 2023-07-04 04:47:12 +07; 9h ago\n   Main PID: 575 (gsserver)\n      Tasks: 34 (limit: 7017)\n     Memory: 144.7M\n     CGroup: \/system.slice\/gridstore.service\n             \u2514\u2500575 \/usr\/bin\/gsserver --conf \/var\/lib\/gridstore\/conf\n\nJul 04 04:47:08 GenAI systemd[1]: Starting GridDB database server....\nJul 04 04:47:09 GenAI gridstore[381]: Starting gridstore service:\nJul 04 04:47:12 GenAI gridstore[526]: ..\nJul 04 04:47:12 GenAI gridstore[526]: Started node.\nJul 04 04:47:12 GenAI gridstore[381]: [ OK ]\nJul 04 04:47:12 GenAI systemd[1]: Started GridDB database server..<\/code><\/pre>\n<\/div>\n<h3>Node.js \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u3067\u53d6\u308a\u4e0a\u3052\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001Node.js LTS \u30d0\u30fc\u30b8\u30e7\u30f3 18 \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002Node.js\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>node --version<\/code><\/pre>\n<\/div>\n<p>Node.js\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u3001\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u516c\u5f0f\u30b5\u30a4\u30c8<a href=\"https:\/\/nodejs.org\/en\/download\">nodejs.org<\/a>\u304b\u3089Node.js LTS\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u307e\u305f\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<h2>OpenAI \u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30d3\u30eb\u30c9<\/h2>\n<p>\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3001<a href=\"https:\/\/github.com\/junwatu\/openai-tokens-dashboard\">\u3053\u3061\u3089<\/a>\u304b\u3089\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>GridDB\u3068Node.js\u306e\u7d71\u5408<\/h3>\n<p>Node.js\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u6a5f\u80fd\u3059\u308b\u304c\u3001<a href=\"https:\/\/expressjs.com\/\">Express.js<\/a>\u306e\u3088\u3046\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u30c7\u30fc\u30bf\u306e\u89e3\u6790\u3084\u7d4c\u8def\u7ba1\u7406\u3092\u7c21\u7d20\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002Node.js\u30b5\u30fc\u30d0\u30fc\u3068GridDB\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u63a5\u7d9a\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4e2d\u6838\u306f\u3001<code>griddb.cjs<\/code>\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e <code>lib<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u95a2\u6570\u306b\u3088\u308a\u3001GridDB \u306e\u521d\u671f\u5316\u3001\u30c7\u30fc\u30bf\u306e\u4fdd\u5b58\u3001\u30c7\u30fc\u30bf\u306e\u30af\u30a8\u30ea\u306a\u3069\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>GridDB \u3092\u521d\u671f\u5316\u3059\u308b\u306b\u306f\u3001Node.js \u30b5\u30fc\u30d0\u3067 <code>griddb.cjs<\/code> \u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-js\">\/\/ in the routes.js file\n\nimport * as GridDB from '.\/libs\/griddb.cjs';\n\nconst { collectionDb, store, conInfo, containerName } =\n    await GridDB.initGridDbTS();<\/code><\/pre>\n<\/div>\n<p>\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u6a5f\u80fd\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-js\">async function saveData({ prompt, cost, details }) {\n    const id = generateRandomID();\n\n    \/\/ Data is saved as an array\n    const content = [parseInt(id), prompt, cost, details];\n\n    const saveStatus = await GridDB.insert(content, collectionDb);\n    console.log(`GridDB save operation: ${saveStatus.status}`);\n\n    if (saveStatus.status) {\n        return { status: saveStatus, operation: 'save' };\n    } else {\n        return { status: saveStatus, operation: 'save' };\n    }\n}<\/code><\/pre>\n<\/div>\n<p><code>saveData<\/code>\u95a2\u6570\u306f\u3001GridDB\u306e\u30c7\u30fc\u30bf\u3092\u4ee5\u4e0b\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u6301\u3064\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u3068\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>id<\/strong>\uff1a \u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u306e ID (\u6574\u6570\u578b)<\/li>\n<li><strong>prompt<\/strong>\uff1a \u30d7\u30ed\u30f3\u30d7\u30c8\uff08\u6587\u5b57\u5217\uff09<\/li>\n<li><strong>cost<\/strong>\uff1a \u5404 OpenAI API \u547c\u3073\u51fa\u3057\u306e\u30b3\u30b9\u30c8 (\u6587\u5b57\u5217)<\/li>\n<li><strong>details<\/strong>\uff1a \u30c8\u30fc\u30af\u30f3\u306e\u8a73\u7d30\u30c7\u30fc\u30bf (\u6587\u5b57\u5217)<\/li>\n<\/ul>\n<p>\u30c7\u30fc\u30bf\u306f\u914d\u5217 <code>content<\/code> \u3068\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3053\u3068\u3068\u3001GridDB \u304b\u3089\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u3092\u30af\u30a8\u30ea\u3059\u308b\u3053\u3068\u304c\u91cd\u8981\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code>const data = await GridDB.queryAll(conInfo, store);<\/code><\/pre>\n<\/div>\n<p>\u63a5\u7d9a\u60c5\u5831 <code>conInfo<\/code> \u3068\u30b9\u30c8\u30a2\u307e\u305f\u306f\u30b3\u30ec\u30af\u30b7\u30e7\u30f3 <code>store<\/code> \u306f <code>griddb.cjs<\/code> \u5185\u306e\u95a2\u6570\u306b\u3088\u3063\u3066\u81ea\u52d5\u7684\u306b\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092\u3055\u3089\u306b\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e Node.js \u30b5\u30fc\u30d0\u30fc\u306b\u306f 3 \u3064\u306e\u4e3b\u8981\u306a\u30eb\u30fc\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>Routes<\/th>\n<th>Operation<\/th>\n<th>Purpose<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>http:\/\/localhost:2001\/api<\/td>\n<td>GET<\/td>\n<td>Show all the data in the GridDB database<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/localhost:2001\/api<\/td>\n<td>POST<\/td>\n<td>Call OpenAI API and save the data response in the GridDB database<\/td>\n<\/tr>\n<tr>\n<td>http:\/\/localhost:2002\/api\/totalcost<\/td>\n<td>GET<\/td>\n<td>Get the cost data for all prompts<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>OpenAI API\u3067\u30c8\u30fc\u30af\u30f3\u3092\u7ba1\u7406\u3059\u308b<\/h3>\n<p>OpenAI API\u3068Node.js\u306e\u7d71\u5408\u306f\u3001\u516c\u5f0f\u30e9\u30a4\u30d6\u30e9\u30ea<a href=\"https:\/\/github.com\/openai\/openai-node\"><code>openai-node<\/code><\/a>\u306e\u52a9\u3051\u3092\u501f\u308a\u3066\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u4f7f\u7528\u3059\u308b\u30c7\u30d5\u30a9\u30eb\u30c8\u306eOpenAI\u30e2\u30c7\u30eb\u306f <code>gpt-3.5-turbo-16k<\/code> \u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-js\">\/\/ services\/prompt.js\n\nimport { Configuration, OpenAIApi } from 'openai';\n\nconst configuration = new Configuration({\n    apiKey: process.env.OPENAI_API_KEY,\n});\nconst openai = new OpenAIApi(configuration);\n\n\/\/...\n\nconst completion = await openai.createChatCompletion({\n    model: 'gpt-3.5-turbo-16k',\n    messages: [\n        { role: 'system', content: 'You are a helpful assistant.' },\n        { role: 'user', content: prompt },\n    ],\n    max_tokens: 1000,\n});<\/code><\/pre>\n<\/div>\n<p>\u30c8\u30fc\u30af\u30f3\u306e\u30b3\u30b9\u30c8\u8a08\u7b97\u306f <code>priceTag<\/code> \u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\u306b\u57fa\u3065\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-js\">const priceTag = {\n    prompt: 0.003,\n    completion: 0.004,\n};<\/code><\/pre>\n<\/div>\n<p>OpenAI\u306e\u30e2\u30c7\u30eb\u3092\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3001\u30d7\u30e9\u30a4\u30b9\u30bf\u30b0\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9\uff08<a href=\"https:\/\/openai.com\/pricing\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\uff09\u3082\u5909\u66f4\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306eUI\u3092React\u3067\u69cb\u7bc9\u3059\u308b<\/h3>\n<p>OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u76f4\u611f\u7684\u3067\u30e6\u30fc\u30b6\u30fc\u30d5\u30ec\u30f3\u30c9\u30ea\u30fc\u306a\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u3001React\u306e\u529b\u3092\u6d3b\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a6\u30a7\u30d6\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306f\u3001\u4e3b\u306b2\u3064\u306e\u90e8\u5206\u304b\u3089\u69cb\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>\u30d7\u30ed\u30f3\u30d7\u30c8\u5165\u529b<\/strong>\uff1a \u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001OpenAI API\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u5165\u529b\u3057\u307e\u3059\u3002\n<\/li>\n<li>\n<p><strong>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9<\/strong>\uff1a \u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306f\u30c8\u30fc\u30af\u30f3\u306e\u4f7f\u7528\u91cf\u3092\u8868\u793a\u3057\u3001\u95a2\u9023\u3059\u308b\u30b3\u30b9\u30c8\u306e\u898b\u7a4d\u3082\u308a\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30c8\u30fc\u30af\u30f3\u3068\u30b3\u30b9\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u305f\u3081\u306e UI \u8981\u7d20\u306f 3 \u3064\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><strong>Cost<\/strong>\uff1a \u73fe\u5728\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u30fb\u30b3\u30b9\u30c8\u3092\u793a\u3057\u307e\u3059\u3002\n<\/li>\n<li>\n<p><strong>Tokens<\/strong>\uff1a \u73fe\u5728\u306e\u30c8\u30fc\u30af\u30f3\u6570\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p><strong>All Total Cost<\/strong>\uff1a GridDB \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u53d6\u5f97\u3057\u305f\u30b3\u30b9\u30c8\u5408\u8a08\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/08\/openai-dashboard-ui.png\"><img decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/08\/openai-dashboard-ui.png\" alt=\"\" width=\"1728\" height=\"833\" class=\"aligncenter size-full wp-image-29751\" srcset=\"\/wp-content\/uploads\/2023\/08\/openai-dashboard-ui.png 1728w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-300x145.png 300w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-1024x494.png 1024w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-768x370.png 768w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-1536x740.png 1536w, \/wp-content\/uploads\/2023\/08\/openai-dashboard-ui-600x289.png 600w\" sizes=\"(max-width: 1728px) 100vw, 1728px\" \/><\/a><\/p>\n<p>\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306e\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f <code>ui<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u3002React\u3092\u4f7f\u3048\u3070\u3001\u30c7\u30fc\u30bf\u306e\u305f\u3081\u306e\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u306a\u30e6\u30fc\u30b6\u30fc\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u9a5a\u304f\u307b\u3069\u7c21\u5358\u306b\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002\u5148\u307b\u3069\u306eNode.js\u30b5\u30fc\u30d0\u30fc\u30eb\u30fc\u30c8\u3067\u898b\u305f\u3088\u3046\u306b\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304b\u3089\u30c7\u30fc\u30bf\u3092\u4fdd\u5b58\u3057\u305f\u308a\u8aad\u307f\u8fbc\u3093\u3060\u308a\u3059\u308b\u305f\u3081\u306b\u3001\u305d\u308c\u3089\u3092\u7c21\u5358\u306b\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Node.js \u30b5\u30fc\u30d0\u30fc\u30eb\u30fc\u30c8\u3092\u547c\u3073\u51fa\u3057\u3066\u30ec\u30b9\u30dd\u30f3\u30b9\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u306b\u306f\u3001<code>fetch<\/code> WebAPI \u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-js\">fetch('http:\/\/localhost:2001\/api', {\n    method: 'POST',\n    headers: {\n        'Content-Type': 'application\/json',\n    },\n    body: JSON.stringify({ input: inputText }),\n})\n    .then((response) => response.json())\n    .then((data) => {\n        console.log(data);\n        setUsageData(data.data.usage);\n        \/\/ Update totalTokens\n        const promptTokensInK = data.data.usage.prompt_tokens \/ 1000;\n        const completionTokensInK = data.data.usage.completion_tokens \/ 1000;\n        const promptTokensCost = promptTokensInK * 0.003;\n        const completionTokensCost = completionTokensInK * 0.004;\n        setTotalTokens(data.data.usage.total_tokens);\n        setTotalCost(promptTokensCost + completionTokensCost);\n    })\n    .catch((error) => {\n        console.error(error);\n    });<\/code><\/pre>\n<\/div>\n<p><code>inputText<\/code>\u306b\u306f\u3001OpenAI API\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u307e\u3059\u3002OpenAI API \u306b\u306f\u7279\u5b9a\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u30fb\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u304c\u3042\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-js\">{\n    id: 'chatcmpl-7YMGXEuuR4Wi7HKNFa5XAbTL5hWgb',\n    object: 'chat.completion',\n    created: 1688423097,\n    model: 'gpt-3.5-turbo-16k-0613',\n    choices: [ { index: 0, message: [Object], finish_reason: 'stop' } ],\n    usage: { prompt_tokens: 148, completion_tokens: 6, total_tokens: 154 }\n}<\/code><\/pre>\n<\/div>\n<p>\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u3082\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u3067\u3082\u3001\u30c7\u30fc\u30bf\u3092\u51e6\u7406\u3059\u308b\u306e\u306f\u7c21\u5358\u3060\u3002React\u3067\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001<code>useState<\/code>\u3092\u4f7f\u3063\u3066\u81ea\u52d5\u7684\u306bUI\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"clipboard\">\n<pre><code class=\"language-js\">const [totalTokens, setTotalTokens] = useState(0);\n\n\/\/ Set total tokens to update Tokens ui\nsetTotalTokens(data.data.usage.total_tokens);<\/code><\/pre>\n<\/div>\n<blockquote><p>\n  \u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3001\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u305f\u3081\u306b\u7279\u5225\u306b\u4f5c\u3089\u308c\u305f <strong>Tremor<\/strong> UI\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n  <a href=\"https:\/\/github.com\/tremorlabs\/tremor\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\n<\/p><\/blockquote>\n<div class=\"clipboard\">\n<pre><code class=\"language-js\">&lt;Card&gt;\n    &lt;div className=\"h-24\"&gt;\n        &lt;Title&gt;Tokens&lt;\/Title&gt;\n        &lt;Metric&gt;{totalTokens}&lt;\/Metric&gt;\n        &lt;Flex className=\"mt-2\"&gt;\n            {usageData ? (\n                &lt;Text&gt;\n                    {usageData.prompt_tokens} Prompt{' '}\n                    {usageData.completion_tokens} Completion{' '}\n                &lt;\/Text&gt;\n            ) : (\n                &lt;p&gt;Loading...&lt;\/p&gt;\n            )}\n        &lt;\/Flex&gt;\n    &lt;\/div&gt;\n&lt;\/Card&gt;<\/code><\/pre>\n<\/div>\n<p><a href=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/08\/tokens-ui.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/griddb.net\/wp-content\/uploads\/2023\/08\/tokens-ui.png\" alt=\"\" width=\"574\" height=\"238\" class=\"aligncenter size-full wp-image-29750\" srcset=\"\/wp-content\/uploads\/2023\/08\/tokens-ui.png 574w, \/wp-content\/uploads\/2023\/08\/tokens-ui-300x124.png 300w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/a><\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30d6\u30ed\u30b0\u8a18\u4e8b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306fMVP\u306b\u904e\u304e\u307e\u305b\u3093\u3002\u5c65\u6b74\u3084\u30ed\u30b0\u306e\u8868\u793a\u3001\u30c7\u30fc\u30bf\u306e\u8996\u899a\u5316\u306e\u6539\u5584\u3001\u3088\u308a\u512a\u308c\u305f\u5206\u6790\u30d3\u30e5\u30fc\u306a\u3069\u306e\u6a5f\u80fd\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3067\u3001\u3055\u3089\u306b\u5f37\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u7d44\u7e54\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306bOpenAI API\u306e\u3088\u3046\u306a\u9ad8\u5ea6\u306aAPI\u306b\u4f9d\u5b58\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306eAPI\u306fAI\u3084\u6a5f\u68b0\u5b66\u7fd2\u30e2\u30c7\u30eb\u3068\u306e\u5bfe\u8a71\u3092\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001API\u547c\u3073\u51fa\u3057\u306e\u30b3\u30b9\u30c8\u3092\u6c7a\u5b9a\u3059\u308bAPI\u30c8\u30fc\u30af\u30f3 [&hellip;]<\/p>\n","protected":false},"author":41,"featured_media":49564,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1005],"tags":[],"class_list":["post-50872","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1005"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b | GridDB: Open Source Time Series Database for IoT<\/title>\n<meta name=\"description\" content=\"\u306f\u3058\u3081\u306b \u7d44\u7e54\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306bOpenAI\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b | GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"og:description\" content=\"\u306f\u3058\u3081\u306b \u7d44\u7e54\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306bOpenAI\" \/>\n<meta property=\"og:url\" content=\"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/\" \/>\n<meta property=\"og:site_name\" content=\"GridDB: Open Source Time Series Database for IoT\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/griddbcommunity\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-18T07:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-30T19:19:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/503.gif\" \/>\n\t<meta property=\"og:image:width\" content=\"450\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/gif\" \/>\n<meta name=\"author\" content=\"griddb-admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:site\" content=\"@GridDBCommunity\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"griddb-admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/\"},\"author\":{\"name\":\"griddb-admin\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\"},\"headline\":\"GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b\",\"datePublished\":\"2023-08-18T07:00:00+00:00\",\"dateModified\":\"2026-03-30T19:19:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/\"},\"wordCount\":331,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/\",\"url\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/\",\"name\":\"GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b | GridDB: Open Source Time Series Database for IoT\",\"isPartOf\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#primaryimage\"},\"thumbnailUrl\":\"\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg\",\"datePublished\":\"2023-08-18T07:00:00+00:00\",\"dateModified\":\"2026-03-30T19:19:09+00:00\",\"description\":\"\u306f\u3058\u3081\u306b \u7d44\u7e54\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306bOpenAI\",\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#primaryimage\",\"url\":\"\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg\",\"contentUrl\":\"\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg\",\"width\":1249.0110560825892,\"height\":783.7801906040736},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/\",\"name\":\"GridDB: Open Source Time Series Database for IoT\",\"description\":\"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL\",\"publisher\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization\",\"name\":\"Fixstars\",\"url\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"contentUrl\":\"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png\",\"width\":200,\"height\":83,\"caption\":\"Fixstars\"},\"image\":{\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/griddbcommunity\/\",\"https:\/\/x.com\/GridDBCommunity\",\"https:\/\/www.linkedin.com\/company\/griddb-by-toshiba\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233\",\"name\":\"griddb-admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g\",\"caption\":\"griddb-admin\"},\"url\":\"https:\/\/griddb.net\/ja\/author\/griddb-admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b | GridDB: Open Source Time Series Database for IoT","description":"\u306f\u3058\u3081\u306b \u7d44\u7e54\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306bOpenAI","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:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/","og_locale":"ja_JP","og_type":"article","og_title":"GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b | GridDB: Open Source Time Series Database for IoT","og_description":"\u306f\u3058\u3081\u306b \u7d44\u7e54\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306bOpenAI","og_url":"https:\/\/griddb.net\/ja\/\u672a\u5206\u985e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/","og_site_name":"GridDB: Open Source Time Series Database for IoT","article_publisher":"https:\/\/www.facebook.com\/griddbcommunity\/","article_published_time":"2023-08-18T07:00:00+00:00","article_modified_time":"2026-03-30T19:19:09+00:00","og_image":[{"width":450,"height":400,"url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/503.gif","type":"image\/gif"}],"author":"griddb-admin","twitter_card":"summary_large_image","twitter_creator":"@GridDBCommunity","twitter_site":"@GridDBCommunity","twitter_misc":{"\u57f7\u7b46\u8005":"griddb-admin","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#article","isPartOf":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/"},"author":{"name":"griddb-admin","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233"},"headline":"GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b","datePublished":"2023-08-18T07:00:00+00:00","dateModified":"2026-03-30T19:19:09+00:00","mainEntityOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/"},"wordCount":331,"commentCount":0,"publisher":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg","inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/","url":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/","name":"GridDB\u3001Node.js\u3001React\u3092\u4f7f\u3063\u3066OpenAI API\u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u72b6\u6cc1\u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u3092\u69cb\u7bc9\u3059\u308b | GridDB: Open Source Time Series Database for IoT","isPartOf":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#primaryimage"},"image":{"@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#primaryimage"},"thumbnailUrl":"\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg","datePublished":"2023-08-18T07:00:00+00:00","dateModified":"2026-03-30T19:19:09+00:00","description":"\u306f\u3058\u3081\u306b \u7d44\u7e54\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u306bOpenAI","inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb.net\/ja\/%e6%9c%aa%e5%88%86%e9%a1%9e\/building-an-openai-api-tokens-usage-dashboard-using-griddb-node-js-and-react\/#primaryimage","url":"\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg","contentUrl":"\/wp-content\/uploads\/2023\/08\/openai-tokens-usage-2023-06-27-0509.svg","width":1249.0110560825892,"height":783.7801906040736},{"@type":"WebSite","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#website","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/","name":"GridDB: Open Source Time Series Database for IoT","description":"GridDB is an open source time-series database with the performance of NoSQL and convenience of SQL","publisher":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#organization","name":"Fixstars","url":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/","url":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","contentUrl":"https:\/\/griddb.net\/wp-content\/uploads\/2019\/04\/fixstars_logo_web_tagline.png","width":200,"height":83,"caption":"Fixstars"},"image":{"@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/griddbcommunity\/","https:\/\/x.com\/GridDBCommunity","https:\/\/www.linkedin.com\/company\/griddb-by-toshiba"]},{"@type":"Person","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/4fe914ca9576878e82f5e8dd3ba52233","name":"griddb-admin","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/griddb-linux-hte8hndjf8cka8ht.westus-01.azurewebsites.net\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5bceca1cafc06886a7ba873e2f0a28011a1176c4dea59709f735b63ae30d0342?s=96&d=mm&r=g","caption":"griddb-admin"},"url":"https:\/\/griddb.net\/ja\/author\/griddb-admin\/"}]}},"_links":{"self":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50872","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/comments?post=50872"}],"version-history":[{"count":2,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50872\/revisions"}],"predecessor-version":[{"id":55116,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/posts\/50872\/revisions\/55116"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media\/49564"}],"wp:attachment":[{"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/media?parent=50872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/categories?post=50872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/griddb.net\/ja\/wp-json\/wp\/v2\/tags?post=50872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}