

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

# Claude 3 Haiku
<a name="model-card-anthropic-claude-3-haiku"></a>

## ![Ikon persegi bundar oranye dengan desain pemintal pemuatan radial putih.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/models/claude.png) Antropik — Claude 3 Haiku
<a name="model-card-anthropic-claude-3-haiku-header"></a>

## Detail Model
<a name="model-card-anthropic-claude-3-haiku-details"></a>

Claude 3 Haiku adalah model Claude 3 tercepat dan paling ringkas dari Anthropic, dioptimalkan untuk kecepatan dan efisiensi dalam respons yang hampir instan. Untuk informasi lebih lanjut tentang pengembangan model dan kinerja, lihat [ model/service kartu](https://www-cdn.anthropic.com/de8ba9b01c9ab7cbabf5c33b80b7bbc618857627/Model_Card_Claude_3.pdf).
+ **Tanggal peluncuran model: 13 ** Maret 2024
+ **Tanggal Model EOL: 10 ** September 2026
+ **Perjanjian Lisensi Pengguna Akhir dan Ketentuan Penggunaan: ** [ Lihat ](https://aws.amazon.com/legal/bedrock/third-party-models/)
+ **Siklus hidup model: ** Legacy (wilayah tertentu)
+ **Jendela konteks: ** 200K token
+ **Token keluaran maksimum: ** 4K
+ **Pemutusan pengetahuan: ** Agustus 2023
+ **ID produk pasar: ** `prod-ozonys2hmmpeu`


| **Modalitas Input ** | **Modalitas Output ** | **[API didukung ](bedrock/latest/userguide/apis.html) ** | **[Titik akhir didukung ](bedrock/latest/userguide/endpoints.html) ** | 
| --- | --- | --- | --- | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png)Audio | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png)Menanamkan | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) Responses | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) bedrock-runtime | 
| ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png)Gambar | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png)Gambar | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) Chat Completions | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) bedrock-mantle | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png)Pidato | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png)Pidato | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) Invoke |  | 
| ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png)Teks | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png)Teks | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) Converse |  | 
| ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png)Video | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png)Video |  |  | 

**Tip**  
Jika memungkinkan, kami sarankan menggunakan titik `bedrock-runtime` akhir untuk aplikasi baru. Lihat [Titik akhir didukung oleh Amazon Bedrock](endpoints.md) untuk detail.

## Harga
<a name="model-card-anthropic-claude-3-haiku-pricing"></a>

Untuk informasi harga, lihat [ halaman ](https://aws.amazon.com/bedrock/pricing/) Harga Amazon Bedrock.

## Akses Terprogram
<a name="model-card-anthropic-claude-3-haiku-programmatic-access"></a>

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 ](bedrock/latest/userguide/apis.html) dan T [ itik Akhir didukung. ](bedrock/latest/userguide/endpoints.html)


| **Titik akhir ** | **Model ID ** | **In-Region URL titik akhir ** | **ID inferensi geografis ** | **ID inferensi global ** | 
| --- | --- | --- | --- | --- | 
| bedrock-runtime | anthropic.claude-3-haiku-20240307-v1:0 | https://bedrock-runtime.{region}.amazonaws.com | `us.anthropic.claude-3-haiku-20240307-v1:0`<br />`eu.anthropic.claude-3-haiku-20240307-v1:0` | N/A | 

*Misalnya, jika wilayah adalah us-east-1 (Virginia Utara), maka URL endpoint bedrock-runtime akan menjadi "”. https://bedrock-runtime.us-east-1.amazonaws.com *

## Tingkat Layanan
<a name="model-card-anthropic-claude-3-haiku-tiers"></a>

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](bedrock/latest/userguide/service-tiers-inference.html).


| **Standar** | **Prioritas** | **Fleksibel ** | **Dicadangkan ** | 
| --- | --- | --- | --- | 
| ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 

## Ketersediaan Wilayah
<a name="model-card-anthropic-claude-3-haiku-regional-availability"></a>

***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](models-region-compatibility.md) halaman untuk lebih jelasnya.


| **Wilayah ** | **In-Region** | **Geo ** | **Global ** | 
| --- | --- | --- | --- | 
| us-east-1(Virginia Utara) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| us-east-2(Ohio) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| us-west-2(Oregon) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| us-gov-east-1 (GovCloud) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| us-gov-west-1 (GovCloud) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| ca-central-1(Kanada) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| eu-central-1(Frankfurt) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| eu-central-2(Zürich) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| eu-west-1(Irlandia) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| eu-west-2(London) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| eu-west-3(Paris) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| ap-northeast-1(Tokyo) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| ap-northeast-2(Seoul) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| ap-south-1(Mumbai) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| ap-southeast-1(Singapura) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| ap-southeast-2(Sydney) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 
| sa-east-1(Sao Paulo) | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | ![Red circle with white X icon indicating error, cancel, or close action.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-no.png) | 

***Rincian inferensi geografis * **

**Geo: AS **

ID inferensi Geo: `us.anthropic.claude-3-haiku-20240307-v1:0`


| **Wilayah Sumber ** | **Daerah Tujuan ** | 
| --- | --- | 
| us-east-1 (us-east-1) | us-timur-1 (Virginia Utara), us-barat-2 (Oregon) | 
| us-timur-2 (Ohio) | us-timur-1 (Virginia Utara), us-timur-2 (Ohio), us-barat-2 (Oregon) | 
| us-west-2 (Oregon) | us-timur-1 (Virginia Utara), us-barat-2 (Oregon) | 
| us-gov-east-1 (AWS ()) GovCloud US-East | us-gov-east-1 (AWS (US-East)), us-gov-west-1 GovCloud (AWS ()) GovCloud US-West | 

**Geo: UE **

ID inferensi Geo: `eu.anthropic.claude-3-haiku-20240307-v1:0`


| **Wilayah Sumber ** | **Daerah Tujuan ** | 
| --- | --- | 
| eu-central-1 (Frankfurt) | eu-central-1 (Frankfurt), eu-west-1 (Irlandia), eu-west-3 (Paris) | 
| eu-west-1 (Irlandia) | eu-central-1 (Frankfurt), eu-west-1 (Irlandia), eu-west-3 (Paris) | 
| eu-west-3 (Paris) | eu-central-1 (Frankfurt), eu-west-1 (Irlandia), eu-west-3 (Paris) | 

## Kuota dan Batas
<a name="model-card-anthropic-claude-3-haiku-quotas"></a>

 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](bedrock/latest/userguide/quotas-increase.html). Untuk informasi selengkapnya, lihat [Kuota untuk Amazon Bedrock](quotas.md) dokumentasi dan lihat [ batasan ](general/latest/gr/bedrock.html#limits_bedrock) untuk model.

## Kode Sampel
<a name="model-card-anthropic-claude-3-haiku-sample-code"></a>

**Langkah 1 - AWS Akun: ** Jika Anda sudah memiliki AWS akun, lewati langkah ini. Jika Anda baru mengenal AWS, daftar untuk akun [ AWS](https://portal.aws.amazon.com/billing/signup).

**Langkah 2 - Kunci API: ** Buka konsol [ Amazon Bedrock ](https://console.aws.amazon.com/bedrock/home#/api-keys/long-term/create) 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.

```
pip install boto3
```

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

```
AWS_BEARER_TOKEN_BEDROCK="<provide your Bedrock API key>"
```

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

------
#### [ Invoke API ]

```
import json
import boto3

client = boto3.client('bedrock-runtime', region_name='us-east-1')
response = client.invoke_model(
    modelId='anthropic.claude-3-haiku-20240307-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-3-haiku-20240307-v1:0',
    messages=[
        {
            'role': 'user',
            'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}]
        }
    ]
)
print(response)
```

------