{"id":28300,"date":"2025-02-19T10:03:11","date_gmt":"2025-02-19T01:03:11","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=28300"},"modified":"2025-02-19T10:03:11","modified_gmt":"2025-02-19T01:03:11","slug":"amazon-bedrock-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%8cai%e3%82%ab%e3%82%af%e3%83%86%e3%83%ab%e3%83%a1%e3%83%bc%e3%82%ab%e3%83%bc%e3%80%8d%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e9%81%8a","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/amazon-bedrock-%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%8cai%e3%82%ab%e3%82%af%e3%83%86%e3%83%ab%e3%83%a1%e3%83%bc%e3%82%ab%e3%83%bc%e3%80%8d%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e9%81%8a\/","title":{"rendered":"Amazon Bedrock \u3092\u4f7f\u7528\u3057\u3066\u300cAI\u30ab\u30af\u30c6\u30eb\u30e1\u30fc\u30ab\u30fc\u300d\u3092\u4f5c\u3063\u3066\u904a\u3093\u3067\u307f\u307e\u3057\u305f"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p><a href=\"https:\/\/aws.amazon.com\/jp\/bedrock\/\">Amazon Bedrock<\/a> \u3092\u4f7f\u3063\u3066\u4f55\u304b\u3057\u305f\u3044\u306a\u3042\u3001\u3068\u5e38\u65e5\u9803\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3001\u7c21\u5358\u306aAI\u30ab\u30af\u30c6\u30eb\u30e1\u30fc\u30ab\u30fc\u3092\u4f5c\u3063\u3066\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u3002\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u305d\u306e\u8a18\u9332\u3092\u8a18\u4e8b\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u3067\u304d\u305f\u3082\u306e<\/h2>\n<p>5\u5e74\u3076\u308a\u304f\u3089\u3044\u306b HTML \u3092\u66f8\u304d\u3001\u81ea\u5206\u306a\u308a\u306b\u4e00\u751f\u61f8\u547d\u4f5c\u3063\u305f\u30d5\u30ed\u30f3\u30c8\u753b\u9762\u304c\u4e0b\u8a18\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/edecb0d183c8de0ff4f0187aac1106be.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/edecb0d183c8de0ff4f0187aac1106be-1024x554.png\" alt=\"\u3067\u304d\u305f\u3082\u306e\" \/><\/a>\n<p>\u5165\u529b\u6b04\u306e\u307f\u3060\u3068\u306a\u3093\u3060\u304b\u5bc2\u3057\u304b\u3063\u305f\u306e\u3067<a href=\"https:\/\/www.irasutoya.com\/\">\u3044\u3089\u3059\u3068\u3084<\/a>\u3055\u3093\u304b\u3089\u30d0\u30fc\u30c6\u30f3\u30c0\u30fc\u306e\u753b\u50cf\u3092\u304a\u501f\u308a\u3057\u3066\u914d\u7f6e\u3057\u307e\u3057\u305f\u3002<br \/>\n\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u901a\u308a\u300c\u7518\u3044\u306e\u304c\u98f2\u307f\u305f\u3044\u300d\u3084\u300c\u30a2\u30eb\u30b3\u30fc\u30eb\u5f37\u304f\u3066\u3068\u306b\u304b\u304f\u9154\u3046\u3084\u3064\u304c\u3044\u3044\u306a\u300d\u7b49\u3001\u98f2\u307f\u305f\u3044\u30ab\u30af\u30c6\u30eb\u306e\u5473\u3092\u5165\u529b\u3059\u308b\u3068\u3001Bedrock \u306e\u5fdc\u7b54\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/fcce0fa8831bedc3fe15e0bbb19eee3c.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/fcce0fa8831bedc3fe15e0bbb19eee3c-1024x555.png\" alt=\"\u751f\u6210\u753b\u9762\" \/><\/a>\n<p>\u5f53\u521d\u306f\u305f\u3060\u30ab\u30af\u30c6\u30eb\u306e\u30ec\u30b7\u30d4\u3092\u6559\u3048\u3066\u304f\u308c\u308b\u3060\u3051\u306e\u4ed5\u7d44\u307f\u306b\u3059\u308b\u4e88\u5b9a\u3067\u3057\u305f\u304c\u300c\u305d\u308c\u3060\u3051\u306a\u3089\u308f\u3056\u308f\u3056\u4f5c\u3089\u306a\u304f\u3066\u3082ChatGPT\u3060\u3051\u3067\u5b8c\u7d50\u3059\u308b\u3058\u3083\u3093(\u7b11)\u300d\u3068\u3044\u3046\u58f0\u304c\u805e\u3053\u3048\u305f\u305f\u3081\u3001\u82e6\u3057\u7d1b\u308c\u3067\u30ec\u30b3\u30e1\u30f3\u30c9\u6a5f\u80fd\u3082\u3069\u304d\u3082\u642d\u8f09\u3057\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/d0942f7fb92c19747c652c032fe6390e.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/d0942f7fb92c19747c652c032fe6390e-1024x554.png\" alt=\"\u30ec\u30b3\u30e1\u30f3\u30c9\u6a5f\u80fd\" \/><\/a>\n<p>\u4eca\u307e\u3067\u751f\u6210\u3055\u308c\u305f\u30ab\u30af\u30c6\u30eb\u306e\u30ec\u30b7\u30d4\u3092 DynamoDB \u306b\u4fdd\u5b58\u3057\u3001\u305d\u306e\u4e2d\u304b\u3089\u65b0\u305f\u306b\u751f\u6210\u3055\u308c\u305f\u30ec\u30b7\u30d4\u3068\u540c\u3058\u5473\u3092\u6301\u3064\u30ec\u30b7\u30d4\u3092\u6700\u5927 5 \u3064\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30ab\u30af\u30c6\u30eb\u540d\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u305d\u306e\u30ab\u30af\u30c6\u30eb\u306e\u30ec\u30b7\u30d4\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<h2>\u69cb\u6210<\/h2>\n<p>\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u304c\u3001\u69cb\u6210\u56f3\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/eaea6cc56280fc8b59a73872c4742300.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/eaea6cc56280fc8b59a73872c4742300.png\" alt=\"\u69cb\u6210\u56f3\" \/><\/a>\n<p>\u4ee5\u4e0b\u3001\u305d\u308c\u305e\u308c\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u4f7f\u7528\u7528\u9014\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h3>Amazon S3<\/h3>\n<p>\u9759\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u914d\u7f6e\u7528\u3067\u3059\u3002\u6700\u4f4e\u9650\u306e HTML \u3068 CSS \u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/aws.amazon.com\/jp\/amplify\/\">AWS Amplify<\/a> \u306e\u4f7f\u7528\u3082\u8003\u3048\u305f\u306e\u3067\u3059\u304c\u3001\u30a2\u30d7\u30ea\u306e\u898f\u6a21\u304c\u305d\u3053\u307e\u3067\u5927\u304d\u304f\u306a\u3044\u3053\u3068\u306b\u52a0\u3048\u3001<del>\u306f\u3084\u304f Bedrock \u3092\u89e6\u308a\u305f\u304b\u3063\u305f<\/del>\u30ce\u30a6\u30cf\u30a6\u304c\u3042\u307e\u308a\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u4eca\u56de\u306f\u898b\u9001\u308a\u307e\u3057\u305f\u3002<\/p>\n<h3>Amazon API Gateway<\/h3>\n<p>S3 \u306b\u914d\u7f6e\u3057\u305f\u9759\u7684\u30b3\u30f3\u30c6\u30f3\u30c4\u3078\u306e\u5165\u529b\u3092 Lambda \u3078\u9001\u4fe1\u3059\u308b\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u3002<br \/>\n\u7279\u5225\u5909\u308f\u3063\u305f\u8a2d\u5b9a\u306f\u3057\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u5185\u5bb9\u306b\u3064\u3044\u3066\u306f\u7701\u7565\u3057\u307e\u3059\u3002<\/p>\n<h3>AWS Lambda<\/h3>\n<p>\u53d7\u3051\u53d6\u3063\u305f\u5165\u529b\u5185\u5bb9\u3092\u7528\u3044\u3066\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4f5c\u6210\u3057\u3001Bedrock \u3078\u9001\u4fe1\u3057\u307e\u3059\u3002<br \/>\n\u307e\u305f Bedrock \u306e\u5fdc\u7b54\u3092 DynamoDB \u306b\u767b\u9332\u3057\u305f\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u3092\u57fa\u306b DB \u5185\u306e\u30ab\u30af\u30c6\u30eb\u3092\u691c\u7d22\u3057\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u5168\u4f53\u306e\u6d41\u308c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<pre class=\"\">\ndef lambda_handler(event, context):\n    # \u30e6\u30fc\u30b6\u30fc\u5165\u529b\u3092\u53d6\u5f97\n    user_input = event['body']\n    user_input_value = ast.literal_eval(user_input)\n    value = user_input_value['taste']\n\n    # \u65e2\u5b58\u30ab\u30af\u30c6\u30eb\u306e\u540d\u524d\u306a\u3089\u51e6\u7406\u7d42\u4e86\n    cocktail_recipes = get_cocktails(value)\n    if cocktail_recipes:\n        cocktail_recipe = cocktail_recipes[0]\n        return generate_return(cocktail_recipe, [])\n\n    # Bedrock\u306b\u9001\u4fe1\u3059\u308b\u30d7\u30ed\u30f3\u30d7\u30c8\u3092\u4f5c\u6210\n    prompt = generate_prompt(value)\n    body = generate_body(prompt)\n\n    # Bedrock\u547c\u3073\u51fa\u3057\n    bedrock_response = bedrock.invoke_model(\n         modelId='anthropic.claude-3-haiku-20240307-v1:0',\n         contentType='application\/json',\n         accept='application\/json',\n         body=body\n     )\n\n    # \u30ec\u30b9\u30dd\u30f3\u30b9\u3092JSON\u5f62\u5f0f\u306b\u5909\u63db\n    response_body = bedrock_response['body'].read()\n    response_data = json.loads(response_body)\n\n    # Bedrock\u306e\u5fdc\u7b54\u3092\u51fa\u529b\n    cocktail_recipes = response_data['content'][0]['text']\n\n    # JSON\u3092\u8f9e\u66f8\u306b\u5909\u63db\u3057DynamoDB\u306b\u767b\u9332\n    recipe = json.loads(cocktail_recipes)\n    register_to_dynamodb(recipe)\n\n    # \u985e\u4f3c\u30ab\u30af\u30c6\u30eb\u3092\u53d6\u5f97\n    taste = recipe[\"taste\"]\n    recommendation = get_similar_cocktails(taste)\n\n    # \u51e6\u7406\u7d42\u4e86\n    return generate_return(recipe,recommendation)\n    <\/pre>\n<p>\u95a2\u6570\u3092\u542b\u3093\u3060\u5168\u6587\u306f\u5c11\u3057\u9577\u3044\u306e\u3067\u3001\u8981\u6240\u8981\u6240\u629c\u7c8b\u3057\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h4>\u30d7\u30ed\u30f3\u30d7\u30c8\u4f5c\u6210<\/h4>\n<pre class=\"\">\ndef generate_prompt(user_input):\n    prompt = f\"\"\"\n    \\n\\nHuman:\u300c{user_input}\u300d\n    \u3053\u3061\u3089\u306e\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u308b\u30aa\u30ea\u30b8\u30ca\u30eb\u30ab\u30af\u30c6\u30eb\u3092\u4e00\u3064\u8003\u3048\u3066\u304f\u3060\u3055\u3044\u3002\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u3001\u5fc5\u305a\u30a2\u30eb\u30b3\u30fc\u30eb\u3092\u542b\u3093\u3067\u304f\u3060\u3055\u3044\u3002\n    \u540d\u524d\uff08name\uff09\u3001\u6750\u6599\uff08material\uff09\u3001\u4f5c\u308a\u65b9\uff08making\uff09\u3001\u8aac\u660e\uff08summary\uff09\u3001\u5473\uff08taste\uff09\u306e\u9806\u756a\u306bJSON\u5f62\u5f0f\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    \u540d\u524d\uff08name)\u306f\u5275\u4f5c\u6027\u306e\u9ad8\u3044\u8a00\u8449\u3092\u9078\u3093\u3067\u304f\u3060\u3055\u3044\u3002\n    \u5473\uff08taste\uff09\u306f\u300c\u7518\u3044\u300d\u300c\u8f9b\u3044\u300d\u7b49\u306e\u4e00\u3064\u306e\u5358\u8a9e\u3067\u8868\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    \u6750\u6599\uff08material)\u306fml\u7b49\u306e\u5358\u4f4d\u3092\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002\n    \u5fdc\u7b54\u306f\u65e5\u672c\u8a9e\u3067\u8a18\u8ff0\u3057\u3001JSON\u306e\u307f\u8fd4\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    \u6750\u6599\uff08material\uff09\u3001\u4f5c\u308a\u65b9\uff08making\uff09\u306f\u914d\u5217\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n    \\n\\nAssistant:\n    \"\"\"\n    return prompt\n\n<\/pre>\n<p>\u51e6\u7406\u3092\u697d\u306b\u3059\u308b\u305f\u3081\u3001\u8af8\u3005\u7d30\u304b\u304f\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u300c\u6307\u5b9a\u304c\u306a\u3044\u5834\u5408\u3001\u5fc5\u305a\u30a2\u30eb\u30b3\u30fc\u30eb\u3092\u542b\u3093\u3067\u304f\u3060\u3055\u3044\u3002\u300d\u3068\u3044\u3046\u4e00\u6587\u306f\u3001\u30e2\u30c7\u30eb\u304c\u7a00\u306b\u9ebb\u5a46\u8c46\u8150\u3084\u30d7\u30ea\u30f3\u306e\u4f5c\u308a\u65b9\u3092\u751f\u6210\u3057\u305f\u305f\u3081\u3001\u4e88\u9632\u3068\u3057\u3066\u5165\u308c\u3066\u3044\u307e\u3059\u3002\uff08\u6599\u7406\u3092\u4f5c\u3089\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3001\u3068\u3044\u3046\u6307\u5b9a\u3067\u306f\u3046\u307e\u304f\u3044\u304b\u305a\u2026\uff09<\/p>\n<h4>\u30ec\u30b3\u30e1\u30f3\u30c9\u6a5f\u80fd\u3082\u3069\u304d<\/h4>\n<pre class=\"\">\ndef get_similar_cocktails(taste, max_items):\n    try:\n        response = table.query(\n            IndexName=\"\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u540d\u524d\",\n            KeyConditionExpression=\"taste = :taste_value\",\n            ExpressionAttributeValues={\":taste_value\": taste},\n            Limit=max_items \n        )\n\n        recommendation = response.get(\"Items\", [])\n        if not recommendation:\n            print(\"\u8a72\u5f53\u3059\u308b\u30ab\u30af\u30c6\u30eb\u306f\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002\")\n            return []\n        return recommendation\n\n    except ClientError as e:\n        print(f\"\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f: {e.response['Error']['Message']}\")\n        return []\n\n<\/pre>\n<p>\u540d\u524d\u3068\u5473\u3060\u3051\u3067\u69cb\u6210\u3055\u308c\u308b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u53c2\u7167\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u5165\u529b\u306b\u3088\u308a\u65b0\u305f\u306b\u751f\u6210\u3055\u308c\u305f\u30ab\u30af\u30c6\u30eb\u3068\u540c\u3058\u5473\u3092\u6301\u3064\u3082\u306e\u304c\u3042\u3063\u305f\u5834\u5408\u3001\u305d\u306e\u60c5\u5831\u3092\u8fd4\u3057\u307e\u3059\u3002<br \/>\n\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001DB\u5185\u306e\u7dcf\u9805\u76ee\u6570\u304c\u5897\u52a0\u3057\u305f\u5834\u5408\u306b\u3082\u30b9\u30e0\u30fc\u30ba\u306b\u5fdc\u7b54\u3092\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>DynamoDB<\/h3>\n<p>\u5404\u30ec\u30b7\u30d4\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u5f62\u5f0f\u3067\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30ec\u30b3\u30e1\u30f3\u30c9\u7528\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u4f5c\u6210\u3057\u3066\u3044\u308b\u4ee5\u5916\u3001\u7279\u5225\u306a\u8a2d\u5b9a\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"\">\n{\n  \"name\": {\n    \"S\": \"\u591c\u660e\u3051\u524d\u306e\u30eb\u30df\u30ca\u30ea\u30a8\"\n  },\n  \"making\": {\n    \"L\": [\n      {\n        \"S\": \"\u30b0\u30e9\u30b9\u306b\u30a2\u30a4\u30b9\u3092\u5165\u308c\u308b\"\n      },\n      {\n        \"S\": \"\u30d6\u30e9\u30c3\u30af\u30b9\u30d1\u30fc\u30af\u30ea\u30f3\u30b0\u3068\u767d\u30c8\u30de\u30c8\u30b8\u30e5\u30fc\u30b9\u3092\u6ce8\u3050\"\n      },\n      {\n        \"S\": \"\u30e9\u30a4\u30e0\u3092\u7d5e\u308a\u5165\u308c\u3001\u767d\u7802\u7cd6\u3092\u52a0\u3048\u3066\u3088\u304f\u6df7\u305c\u308b\"\n      }\n    ]\n  },\n  \"material\": {\n    \"L\": [\n      {\n        \"S\": \"\u30d6\u30e9\u30c3\u30af\u30b9\u30d1\u30fc\u30af\u30ea\u30f3\u30b0 150ml\"\n      },\n      {\n        \"S\": \"\u767d\u30c8\u30de\u30c8\u30b8\u30e5\u30fc\u30b9 100ml\"\n      },\n      {\n        \"S\": \"\u30e9\u30a4\u30e0 1\/2\u500b\"\n      },\n      {\n        \"S\": \"\u767d\u7802\u7cd6 \u5927\u3055\u30581\"\n      },\n      {\n        \"S\": \"\u30a2\u30a4\u30b9 \u9069\u91cf\"\n      }\n    ]\n  },\n  \"summary\": {\n    \"S\": \"\u591c\u660e\u3051\u524d\u306e\u8857\u3092\u7167\u3089\u3059\u767d\u3044\u5149\u3092\u30a4\u30e1\u30fc\u30b8\u3057\u305f\u30ab\u30af\u30c6\u30eb\u3002\u30c8\u30de\u30c8\u30b8\u30e5\u30fc\u30b9\u3068\u30b9\u30d1\u30fc\u30af\u30ea\u30f3\u30b0\u306e\u76f8\u6027\u304c\u826f\u304f\u3001\u30e9\u30a4\u30e0\u306e\u723d\u3084\u304b\u306a\u9999\u308a\u304c\u5168\u4f53\u3092\u5f15\u304d\u7de0\u3081\u308b\u3002\"\n  },\n  \"taste\": {\n    \"S\": \"\u723d\u3084\u304b\"\n  }\n}\n<\/pre>\n<h3>Bedrock<\/h3>\n<p>\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u306b\u57fa\u3065\u304d\u30aa\u30ea\u30b8\u30ca\u30eb\u30ab\u30af\u30c6\u30eb\u306e\u30ec\u30b7\u30d4\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u30e2\u30c7\u30eb\u306f <code>Claude 3 Haiku<\/code> \u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<br \/>\n<a href=\"https:\/\/aws.amazon.com\/jp\/blogs\/news\/anthropics-claude-3-haiku-model-is-now-available-in-amazon-bedrock\/\">https:\/\/aws.amazon.com\/jp\/blogs\/news\/anthropics-claude-3-haiku-model-is-now-available-in-amazon-bedrock\/<\/a><\/p>\n<p><code>Claude<\/code>\u3092\u89e6\u3063\u3066\u307f\u305f\u304b\u3063\u305f\u3068\u3044\u3046\u79c1\u60c5\u3092\u9664\u304f\u3068\u3001\u4ee5\u4e0b\u3075\u305f\u3064\u306e\u7406\u7531\u304b\u3089\u9078\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<h4>\u30b3\u30b9\u30c8\u304c\u3044\u3044\u611f\u3058<\/h4>\n<p>\u30b3\u30b9\u30c8\u304c\u5b89\u4fa1\u306e\u70ba\u300c\u3053\u3093\u306a\u306b\u5165\u529b\u3057\u3066\u2026\u3044\u3063\u305f\u3044\u6708\u672b\u306b\u3044\u304f\u3089\u306e\u8acb\u6c42\u304c\u2026\u300d\u3068\u7f6a\u60aa\u611f\u306b\u304a\u3073\u3048\u308b\u3053\u3068\u306a\u304f\u4f7f\u3044\u3084\u3059\u3044\u3067\u3059\u3002<code>Claude<\/code>\u306e\u4ed6\u306e\u30e2\u30c7\u30eb\u3068\u6bd4\u8f03\u3059\u308b\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u30e2\u30c7\u30eb\u540d<\/th>\n<th>\u5165\u529b\u30c8\u30fc\u30af\u30f3 1,000 \u500b\u3042\u305f\u308a\u306e\u4fa1\u683c<\/th>\n<th>1,000 \u51fa\u529b\u30c8\u30fc\u30af\u30f3\u3042\u305f\u308a\u306e\u6599\u91d1<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Claude Instant<\/td>\n<td>0.0008 USD<\/td>\n<td>0.0024 USD<\/td>\n<\/tr>\n<tr>\n<td>Claude 2.0\/2.1<\/td>\n<td>0.008 USD<\/td>\n<td>0.024 USD<\/td>\n<\/tr>\n<tr>\n<td>Claude 3 Haiku<\/td>\n<td>0.00025 USD<\/td>\n<td>0.00125 USD<\/td>\n<\/tr>\n<tr>\n<td>Claude 3.5 Sonnet<\/td>\n<td>0.003 USD<\/td>\n<td>0.015 USD<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5f15\u7528\u5143:<a href=\"https:\/\/aws.amazon.com\/jp\/bedrock\/pricing\/\">https:\/\/aws.amazon.com\/jp\/bedrock\/pricing\/<\/a><\/p>\n<p>\u7cbe\u5ea6\u3068\u3044\u3046\u304b\u3001\u6587\u7ae0\u306e\u5965\u884c\u3067\u3044\u3048\u3070\u3084\u306f\u308a<code>Claude 3.5 Sonnet<\/code>\u306e\u65b9\u304c\u82e5\u5e72\u4e0a\u56de\u308b\u304b\u306a\u2026\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u304c\u3001\u4eca\u56de\u306e\u3088\u3046\u306b\u5fdc\u7b54\u304c\u77ed\u6587\u3067\u6e08\u3080\u5834\u5408\u306b\u306f\u6c17\u306b\u306a\u3089\u306a\u3044\u7bc4\u56f2\u3067\u3057\u305f\u3002<\/p>\n<h4>\u30af\u30a9\u30fc\u30bf\u306e\u554f\u984c<\/h4>\n<p>Amazon Bedrock \u306b\u306f\u3001\u4ed6\u30b5\u30fc\u30d3\u30b9\u3068\u540c\u3058\u3088\u3046\u306b\u30b5\u30fc\u30d3\u30b9\u30af\u30a9\u30fc\u30bf\u304c\u8a2d\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u306e\u4e2d\u306b\u30e2\u30c7\u30eb\u3054\u3068\u306e<code>On-demand InvokeModel requests per minute for {\u30e2\u30c7\u30eb\u540d}<\/code>\u3068\u3044\u3046\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u4e00\u5206\u9593\u306b\u305d\u306e\u30e2\u30c7\u30eb\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u6570\u306e\u6700\u5927\u5024\u3067\u3059\u3002<br \/>\n\u79c1\u306e\u6301\u3063\u3066\u3044\u308b\u74b0\u5883\u3067\u306f\u521d\u671f\u5024\u304b\u3089\u7279\u306b\u624b\u3092\u52a0\u3048\u3066\u3044\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/54decfdee1576130c104a1f936e5d734.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/54decfdee1576130c104a1f936e5d734-1024x541.png\" alt=\"\u30af\u30a9\u30fc\u30bf\" \/><\/a>\n<p>\u3055\u3059\u304c\u306b\u5206\u95931\u30ea\u30af\u30a8\u30b9\u30c8\u3060\u3068\u52d5\u4f5c\u78ba\u8a8d\u306e\u6642\u70b9\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3001\u81ea\u5206\u4e00\u4eba\u3067\u697d\u3057\u3080\u5206\u306b\u306f4\u30ea\u30af\u30a8\u30b9\u30c8\u3082\u3042\u308c\u3070\u5341\u5206\u3067\u3057\u305f\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u52c9\u5f37\u3082\u304b\u306d\u3066\u4f55\u304b\u4f5c\u3063\u3066\u307f\u305f\u3044\u306a\u30fc\u3068\u8efd\u3044\u6c17\u6301\u3061\u3067\u59cb\u3081\u305f\u3053\u3068\u3067\u3059\u304c\u3001\u9577\u3089\u304f\u95a2\u308f\u308a\u306e\u306a\u304b\u3063\u305fAmazon API Gateway\u7b49\u306e\u30b5\u30fc\u30d3\u30b9\u3078\u4e45\u3057\u3076\u308a\u306b\u89e6\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u826f\u3044\u52c9\u5f37\u306b\u306a\u308a\u307e\u3057\u305f\u3002\uff08\u30b3\u30f3\u30bd\u30fc\u30eb\u304c\u5909\u308f\u308a\u3059\u304e\u3066\u3044\u3066\u3073\u3063\u304f\u308a\u3057\u307e\u3057\u305f\u3002\uff09<br \/>\n\u7686\u69d8\u3082\u305c\u3072Amazon Bedrock\u3067\u904a\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u5f8c\u307e\u3067\u76ee\u3092\u901a\u3057\u3066\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n<h2>\u304a\u307e\u3051<\/h2>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001Bedrock\u304c\u63d0\u6848\u3057\u3066\u304f\u308c\u305f\u30ab\u30af\u30c6\u30eb\uff08\u30ce\u30f3\u30a2\u30eb\u30b3\u30fc\u30eb\uff09\u3092\u4f5c\u3063\u3066\u98f2\u3093\u3067\u307f\u307e\u3057\u305f\u3002<\/p>\n<h3>\u305d\u306e\u540d\u3082\u30c9\u30e9\u30b4\u30f3\u30ba\u30a2\u30a4<\/h3>\n<p>\u30ec\u30b7\u30d4\u304c\u3053\u3061\u3089\u3067\u3059\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/ca7dbff6aa19584f9a31d5ae1e254e80.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/ca7dbff6aa19584f9a31d5ae1e254e80-300x228.png\" alt=\"\u30ec\u30b7\u30d4\" \/><\/a>\n<p>\u30aa\u30ec\u30f3\u30b8\u30b9\u30e9\u30a4\u30b9\u306f\u7528\u610f\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u305d\u308c\u4ee5\u5916\u306f\u5206\u91cf\u3092\u542b\u3081\u5b8c\u74a7\u30ec\u30b7\u30d4\u901a\u308a\u306b\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/IMG_6311-scaled.jpg\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/02\/IMG_6311-300x225.jpg\" alt=\"\u6210\u679c\u7269\" \/><\/a>\n<h4>\u611f\u60f3<\/h4>\n<p>\u30d3\u30fc\u30eb\u307f\u305f\u3044\u306a\u898b\u305f\u76ee\u306b\u53cd\u3057\u3001\u3068\u3066\u3082\u304a\u3044\u3057\u3044\u30aa\u30ec\u30f3\u30b8\u30b8\u30e5\u30fc\u30b9\u3067\u3057\u305f\u3002\u30ec\u30e2\u30f3\u306e\u3059\u3063\u3071\u3055\u3068\u30b7\u30ed\u30c3\u30d7\u304c\u30b8\u30e5\u30fc\u30b9\u672c\u6765\u306e\u5473\u3092\u6fc3\u304f\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u6c17\u304c\u3057\u307e\u3059\u3002\u3053\u308c\u304c\u300c\u30c9\u30e9\u30b4\u30f3\u30ba\u30a2\u30a4\u300d\u304b\u2026\u3068\u601d\u3044\u306a\u304c\u3089\u6d78\u3089\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u3067\u3001AI\u304c\u751f\u6210\u3057\u3066\u3044\u308b\u306e\u306f\u9069\u5f53\u306a\u56de\u7b54\u3067\u306f\u306a\u304f\u3001\u304a\u3044\u3057\u304f\u98f2\u3081\u308b\u30ec\u30b7\u30d4\u3067\u3042\u308b\u3068\u3044\u3046\u691c\u8a3c\u304c\u3067\u304d\u3066\u826f\u304b\u3063\u305f\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Amazon Bedrock \u3092\u4f7f\u3063\u3066\u4f55\u304b\u3057\u305f\u3044\u306a\u3042\u3001\u3068\u5e38\u65e5\u9803\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3001\u7c21\u5358\u306aAI\u30ab\u30af\u30c6\u30eb\u30e1\u30fc\u30ab\u30fc\u3092\u4f5c\u3063\u3066\u904a\u3093\u3067\u307f\u307e\u3057\u305f\u3002\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u305d\u306e\u8a18\u9332\u3092\u8a18\u4e8b\u306b\u3057\u307e\u3059\u3002 \u3067\u304d\u305f\u3082\u306e 5\u5e74\u3076\u308a\u304f\u3089\u3044\u306b HTML \u3092&#8230;<\/p>\n","protected":false},"author":219,"featured_media":24688,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=28300","footnotes":""},"categories":[1276,20,1277],"tags":[],"class_list":{"0":"post-28300","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-amazon-bedrock","8":"category-aws","9":"category-ai","10":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/28300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/219"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=28300"}],"version-history":[{"count":28,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/28300\/revisions"}],"predecessor-version":[{"id":28339,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/28300\/revisions\/28339"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/24688"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=28300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=28300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=28300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}