View a markdown version of this page

Claude Haiku 4.5 - Amazon Bedrock

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

Claude Haiku 4.5

Ikon persegi bundar oranye dengan desain pemintal pemuatan radial putih. Antropik — Claude Haiku 4.5

Rincian Model

Claude Haiku 4.5 adalah model ringan Anthropic yang dioptimalkan untuk kecepatan dan efisiensi dengan pengkodean yang kuat dan kinerja agen. Untuk informasi lebih lanjut tentang pengembangan model dan kinerja, lihat model/service kartu.

  • Tanggal peluncuran model: 16 Oktober 2025

  • Tanggal Model EOL: Tidak lebih cepat dari /2026 10/1

  • Perjanjian Lisensi Pengguna Akhir dan Ketentuan Penggunaan: Lihat

  • Siklus hidup model: Aktif

  • Jendela konteks: 200K token

  • Token keluaran maksimum: 64K

  • Penalaran: Didukung

  • Pemutusan pengetahuan: Februari 2025

  • ID produk pasar: prod-xdkflymybwmvi

Modalitas Input Modalitas Output API didukung Titik akhir didukung
Red circle with white X icon indicating error, cancel, or close action.AudioRed circle with white X icon indicating error, cancel, or close action.MenanamkanRed circle with white X icon indicating error, cancel, or close action. ResponsesGreen circle with white checkmark icon. bedrock-runtime
Green circle with white checkmark icon.GambarRed circle with white X icon indicating error, cancel, or close action.GambarRed circle with white X icon indicating error, cancel, or close action. Chat CompletionsGreen circle with white checkmark icon. bedrock-mantle
Red circle with white X icon indicating error, cancel, or close action.PidatoRed circle with white X icon indicating error, cancel, or close action.PidatoGreen circle with white checkmark icon. Invoke
Green circle with white checkmark icon.TeksGreen circle with white checkmark icon.TeksGreen circle with white checkmark icon. Converse
Red circle with white X icon indicating error, cancel, or close action.VideoRed circle with white X icon indicating error, cancel, or close action.VideoGreen circle with white checkmark icon. Messages
Tip

Jika memungkinkan, kami sarankan menggunakan titik bedrock-runtime akhir untuk aplikasi baru. Lihat Titik akhir didukung oleh Amazon Bedrock untuk detail.

Kemampuan dan Fitur

Fitur Bedrock

Fitur yang didukung menggunakan bedrock-mantle titik akhir

Fitur yang didukung menggunakan bedrock-runtime titik akhir

Caching cepat

Untuk informasi selengkapnya, lihat Caching prompt untuk inferensi model yang lebih cepat.

Caching cepat didukung Token minimum per pos pemeriksaan cache Pos pemeriksaan cache maksimum per permintaan TTL yang didukung Bidang yang menerima pos pemeriksaan cache prompt
Ya 4.096 4 5 menit, 1 jam system, messages, dan tools

Penggunaan komputer bedrock-runtime dan titik bedrock-mantle akhir

Untuk informasi selengkapnya, lihat Penggunaan komputer.

Jenis alat Header beta
computer_20250124 computer-use-2025-01-24

Harga

Untuk informasi harga, lihat halaman Harga Amazon Bedrock.

Akses Terprogram

Gunakan ID model dan URL titik akhir berikut untuk mengakses model ini secara terprogram. Untuk informasi selengkapnya tentang API dan titik akhir yang tersedia, lihat API yang didukung dan T itik Akhir didukung.

Titik akhir Model ID In-Region URL titik akhir ID inferensi geografis ID inferensi global
bedrock-runtime anthropic.claude-haiku-4-5-20251001-v1:0 N/A

us.anthropic.claude-haiku-4-5-20251001-v1:0

eu.anthropic.claude-haiku-4-5-20251001-v1:0

au.anthropic.claude-haiku-4-5-20251001-v1:0

jp.anthropic.claude-haiku-4-5-20251001-v1:0

global.anthropic.claude-haiku-4-5-20251001-v1:0
bedrock-mantle anthropic.claude-haiku-4-5 https://bedrock-mantle.{region}.api.aws/anthropic/v1/messages N/A N/A

Misalnya, jika wilayah adalah us-east-1 (Virginia Utara), maka URL endpoint bedrock-runtime akan menjadi "" dan untuk bedrock-mantle adalah https://bedrock-runtime.us-east-1.amazonaws.com "”. https://bedrock-mantle.us-east-1.api.aws/anthropic/v1/messages

Tingkat Layanan

Amazon Bedrock menawarkan beberapa tingkatan layanan untuk memenuhi persyaratan beban kerja Anda. Standar menyediakan akses bayar per token tanpa komitmen (atur "service_tier": "default" atau hilangkan bidang). Priority memberikan waktu respons tercepat untuk premi harga (set"service_tier": "priority"). Flex menyediakan akses berbiaya lebih rendah untuk beban kerja yang fleksibel dan tidak peka waktu (set). "service_tier": "flex" Reserved menyediakan throughput khusus dengan komitmen jangka untuk beban kerja yang dapat diprediksi; ini ditetapkan pada tingkat akun, bukan per permintaan (hubungi tim akun AWS Anda untuk mengaktifkan). Untuk informasi selengkapnya, lihat tingkatan layanan.

Standar Prioritas Fleksibel Dicadangkan
Green circle with white checkmark icon. Red circle with white X icon indicating error, cancel, or close action. Red circle with white X icon indicating error, cancel, or close action. Green circle with white checkmark icon.

Ketersediaan Wilayah

Sekilas tentang ketersediaan regional

Amazon Bedrock menawarkan tiga opsi inferensi: In-Region menyimpan permintaan dalam satu Wilayah untuk kepatuhan yang ketat, Cross-Region rute Geo melintasi Wilayah dalam geografi (seperti AS, UE, dan APAC) sambil menghormati residensi data, dan Cross-Region rute Global di mana pun di seluruh dunia ketika tidak ada batasan residensi. Lihat Ketersediaan regional berdasarkan model halaman untuk lebih jelasnya.

Wilayah In-Region Geo Global
us-east-1(Virginia Utara)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-east-2(Ohio)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-west-1(California Utara)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
us-west-2(Oregon)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ca-central-1(Kanada)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ca-west-1(Calgary)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
eu-central-1(Frankfurt)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-central-2(Zürich)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-north-1(Stockholm)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-south-1(Milan)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-south-2(Spanyol)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-1(Irlandia)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-2(London)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
eu-west-3(Paris)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-east-2(Taipei)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-northeast-1(Tokyo)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-northeast-2(Seoul)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-northeast-3(Osaka)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-south-1(Mumbai)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-south-2(Hyderabad)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-1(Singapura)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-2(Sydney)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-southeast-3(Jakarta)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-4(Melbourne)Green circle with white checkmark icon.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-southeast-5(Indonesia)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
ap-southeast-6(Selandia Baru)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Green circle with white checkmark icon.
ap-southeast-7(Thailand)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
il-central-1(Tel Aviv)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
me-central-1(UEA)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
me-south-1(Bahrain)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
af-south-1(Cape Town)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
sa-east-1(Sao Paulo)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
mx-central-1(Meksiko)Red circle with white X icon indicating error, cancel, or close action.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.

Rincian inferensi geografis

Geo: AS

ID inferensi Geo: us.anthropic.claude-haiku-4-5-20251001-v1:0

Wilayah Sumber Daerah Tujuan
us-east-1 (us-east-1)us-timur-1 (Virginia Utara), us-timur-2 (Ohio), us-barat-2 (Oregon)
us-timur-2 (Ohio)us-timur-1 (Virginia Utara), us-timur-2 (Ohio), us-barat-2 (Oregon)
us-west-1 (us-west-1)us-timur-1 (Virginia Utara), us-timur-2 (Ohio), us-barat-1 (California Utara), us-barat-2 (Oregon)
us-west-2 (Oregon)us-timur-1 (Virginia Utara), us-timur-2 (Ohio), us-barat-2 (Oregon)
ca-central-1 (Kanada)ca-sentral-1 (Kanada), us-timur-1 (Virginia Utara), us-timur-2 (Ohio), us-barat-2 (Oregon)

Geo: UE

ID inferensi Geo: eu.anthropic.claude-haiku-4-5-20251001-v1:0

Wilayah Sumber Daerah Tujuan
eu-central-1 (Frankfurt)eu-central-1 (Frankfurt), eu-utara-1 (Stockholm), eu-selatan-1 (Milan), eu-selatan-2 (Spanyol), eu-barat-1 (Irlandia), eu-barat-3 (Paris)
eu-central-2 (Zürich)eu-central-1 (Frankfurt), eu-central-2 (Zurich), eu-utara-1 (Stockholm), eu-selatan-1 (Milan), eu-selatan-2 (Spanyol), eu-barat-1 (Irlandia), eu-barat-3 (Paris)
eu-utara-1 (Stockholm)eu-central-1 (Frankfurt), eu-utara-1 (Stockholm), eu-selatan-1 (Milan), eu-selatan-2 (Spanyol), eu-barat-1 (Irlandia), eu-barat-3 (Paris)
eu-selatan-1 (Milan)eu-central-1 (Frankfurt), eu-utara-1 (Stockholm), eu-selatan-1 (Milan), eu-selatan-2 (Spanyol), eu-barat-1 (Irlandia), eu-barat-3 (Paris)
eu-south-2 (Spanyol)eu-central-1 (Frankfurt), eu-utara-1 (Stockholm), eu-selatan-1 (Milan), eu-selatan-2 (Spanyol), eu-barat-1 (Irlandia), eu-barat-3 (Paris)
eu-west-1 (Irlandia)eu-central-1 (Frankfurt), eu-utara-1 (Stockholm), eu-selatan-1 (Milan), eu-selatan-2 (Spanyol), eu-barat-1 (Irlandia), eu-barat-3 (Paris)
eu-west-2 (London)eu-central-1 (Frankfurt), eu-utara-1 (Stockholm), eu-selatan-1 (Milan), eu-selatan-2 (Spanyol), eu-barat-1 (Irlandia), eu-barat-2 (London), eu-barat-3 (Paris)
eu-west-3 (Paris)eu-central-1 (Frankfurt), eu-utara-1 (Stockholm), eu-selatan-1 (Milan), eu-selatan-2 (Spanyol), eu-barat-1 (Irlandia), eu-barat-3 (Paris)

Geografis: AU

ID inferensi Geo: au.anthropic.claude-haiku-4-5-20251001-v1:0

Wilayah Sumber Daerah Tujuan
ap-Southeast-2 (Sydney)ap-Southeast-2 (Sydney), ap-Southeast-4 (Melbourne)
ap-Southeast-4 (Melbourne)ap-Southeast-2 (Sydney), ap-Southeast-4 (Melbourne)
ap-southeast-6 (Selandia Baru)ap-southeast-2 (Sydney), ap-southeast-4 (Melbourne), ap-southeast-6 (Selandia Baru)

Geografis: JP

ID inferensi Geo: jp.anthropic.claude-haiku-4-5-20251001-v1:0

Wilayah Sumber Daerah Tujuan
ap-northeast-1 (Tokyo)ap-northeast-1 (Tokyo), ap-northeast-3 (Osaka)
ap-northeast-3 (Osaka)ap-northeast-1 (Tokyo), ap-northeast-3 (Osaka)

Rincian inferensi global

ID Inferensi Global Amerika EMEA Asia Pasifik
global.anthropic.laude-haiku-4-5-20251001-v 1:0
  • us-east-1 (us-east-1)

  • us-timur-2 (Ohio)

  • us-west-1 (us-west-1)

  • us-west-2 (Oregon)

  • ca-central-1 (Kanada)

  • ca-west-1 (Calgary)

  • sa-east-1 (Sao Paulo)

  • mx-central-1 (Meksiko)

  • eu-central-1 (Frankfurt)

  • eu-central-2 (Zürich)

  • eu-utara-1 (Stockholm)

  • eu-selatan-1 (Milan)

  • eu-south-2 (Spanyol)

  • eu-west-1 (Irlandia)

  • eu-west-2 (London)

  • eu-west-3 (Paris)

  • il-central-1 (Tel Aviv)

  • me-central-1 (UEA)

  • saya-selatan-1 (Bahrain)

  • af-south-1 (Cape Town)

  • ap-east-2 (Taipei)

  • ap-northeast-1 (Tokyo)

  • ap-northeast-2 (Seoul)

  • ap-northeast-3 (Osaka)

  • ap-south-1 (Mumbai)

  • ap-south-2 (Haiderabad)

  • ap-southeast-1 (Singapura)

  • ap-Southeast-2 (Sydney)

  • ap-Southeast-3 (Jakarta)

  • ap-Southeast-4 (Melbourne)

  • ap-southeast-5 (Malaysia)

  • ap-southeast-6 (Selandia Baru)

  • ap-southeast-7 (Thailand)

Kuota dan Batas

AWS Akun Anda memiliki kuota default untuk mempertahankan kinerja layanan dan untuk memastikan penggunaan Amazon Bedrock yang tepat. Kuota default yang ditetapkan ke akun mungkin diperbarui tergantung pada faktor regional, riwayat pembayaran, penggunaan penipuan, and/or persetujuan permintaan peningkatan kuota. Untuk informasi selengkapnya, lihat Kuota untuk Amazon Bedrock dokumentasi dan lihat batasan untuk model.

Kode Sampel

Langkah 1 - AWS Akun: Jika Anda sudah memiliki AWS akun, lewati langkah ini. Jika Anda baru mengenal AWS, daftar untuk akun AWS.

Langkah 2 - Kunci API: Buka konsol Amazon Bedrock dan buat kunci API jangka panjang.

Langkah 3 - Dapatkan SDK: Untuk menggunakan panduan memulai ini, Anda harus sudah menginstal Python. Kemudian instal perangkat lunak yang relevan tergantung pada API yang Anda gunakan.

Messages API
pip install -U "anthropic[bedrock]"
Invoke/Converse API
pip install boto3

Langkah 4 - Mengatur variabel lingkungan: Konfigurasikan lingkungan Anda untuk menggunakan kunci API untuk otentikasi.

Messages API
AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"
Invoke/Converse API
AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"

Langkah 5 - Jalankan permintaan inferensi pertama Anda: Simpan file sebagai bedrock-first-request.py

Messages API
from anthropic import AnthropicBedrockMantle client = AnthropicBedrockMantle(aws_region="us-east-1") message = client.messages.create( model="anthropic.claude-haiku-4-5", max_tokens=1024, messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}], ) print(message.content[0].text)
Invoke API
import json import boto3 client = boto3.client('bedrock-runtime', region_name='us-east-1') response = client.invoke_model( modelId='anthropic.claude-haiku-4-5-20251001-v1:0', body=json.dumps({ 'anthropic_version': 'bedrock-2023-05-31', 'messages': [{ 'role': 'user', 'content': 'Can you explain the features of Amazon Bedrock?'}], 'max_tokens': 1024 }) ) print(json.loads(response['body'].read()))
Converse API
import boto3 client = boto3.client('bedrock-runtime', region_name='us-east-1') response = client.converse( modelId='anthropic.claude-haiku-4-5-20251001-v1:0', messages=[ { 'role': 'user', 'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}] } ] ) print(response)