

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

# GLM 5
<a name="model-card-zai-glm-5"></a>

## ![Ikon menunjukkan pola garis diagonal hitam dan putih.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/models/zai.png) Z.AI — GLM 5
<a name="model-card-zai-glm-5-header"></a>

## Detail Model
<a name="model-card-zai-glm-5-details"></a>

GLM 5 adalah model bahasa besar kelas perbatasan, tujuan umum yang dioptimalkan untuk rekayasa sistem yang kompleks dan tugas agen cakrawala panjang. Ini dibangun di atas garis keturunan agen-sentris GLM 4.5 dan dirancang untuk mendukung penalaran multi-langkah, matematika (termasuk AIME-style tolok ukur), pengkodean lanjutan, dan alur kerja yang ditambah alat, dengan dukungan konteks panjang yang cocok untuk agen canggih dan aplikasi perusahaan. Untuk informasi selengkapnya tentang pengembangan dan kinerja model, lihat [kartu model](https://huggingface.co/zai-org/GLM-5-FP8).
+ **Tanggal peluncuran model:** 11 Feb 2026
+ **Tanggal model EOL:** N/A
+ **Perjanjian Lisensi Pengguna Akhir dan Ketentuan Penggunaan:** [Lihat](https://github.com/zai-org/GLM-5/blob/main/LICENSE)
+ **Siklus hidup model**: Aktif
+ **Jendela konteks:** 200K token
+ **Token keluaran maks:** 128K


| **Modalitas Masukan** | **Modalitas Keluaran** | **[API yang didukung](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html)** | **[Endpoint didukung](https://docs.aws.amazon.com/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)Menyematkan | ![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 | 
| ![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)Gambar | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.png) Chat Completions | ![Green circle with white checkmark icon.](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/images/icons/icon-yes.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 |  |  | 

**catatan**  
Bila memungkinkan, kami sarankan Anda menggunakan `bedrock-mantle` endpoint.

## Kemampuan dan Fitur
<a name="model-card-zai-glm-5-capabilities"></a>

***Fitur Batuan Dasar***

**Fitur yang didukung menggunakan `bedrock-mantle` endpoint**


| **Didukung** | **Tidak Didukung** | 
| --- | --- | 
|  [See the AWS documentation website for more details](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/model-card-zai-glm-5.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/model-card-zai-glm-5.html)  | 

**Fitur yang didukung menggunakan `bedrock-runtime` endpoint**


| **Didukung** | **Tidak Didukung** | 
| --- | --- | 
|  [See the AWS documentation website for more details](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/model-card-zai-glm-5.html)  |  [See the AWS documentation website for more details](http://docs.aws.amazon.com/id_id/bedrock/latest/userguide/model-card-zai-glm-5.html)  | 

## Harga
<a name="model-card-zai-glm-5-pricing"></a>

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

## Akses Terprogram
<a name="model-card-zai-glm-5-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](https://docs.aws.amazon.com/bedrock/latest/userguide/apis.html) dan [Endpoint](https://docs.aws.amazon.com/bedrock/latest/userguide/endpoints.html) didukung.


| **Titik akhir** | **ID Model** | **In-Region URL titik akhir** | **ID inferensi geo** | **ID inferensi global** | 
| --- | --- | --- | --- | --- | 
| bedrock-runtime | zai.glm-5 | https://bedrock-runtime.{region}.amazonaws.com | Tidak didukung | Tidak didukung | 
| bedrock-mantle | zai.glm-5 | https://bedrock-mantle.{region}.api.aws/v1 | Tidak didukung | Tidak didukung | 

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

## Tingkatan Layanan
<a name="model-card-zai-glm-5-tiers"></a>

Amazon Bedrock menawarkan beberapa tingkatan layanan agar sesuai dengan persyaratan beban kerja Anda. **Standar** menyediakan akses bayar per token tanpa komitmen. **Prioritas** menawarkan throughput yang lebih tinggi dengan komitmen berbasis waktu. **Flex** menyediakan akses berbiaya lebih rendah untuk beban kerja yang fleksibel dan tidak sensitif terhadap waktu. **Reserved** menyediakan throughput khusus dengan komitmen jangka untuk beban kerja yang dapat diprediksi. Untuk informasi selengkapnya, lihat [tingkatan layanan](https://docs.aws.amazon.com/bedrock/latest/userguide/service-tiers-inference.html).


| **Standar** | **Prioritas** | **Fleksibel** | **Reserved** | 
| --- | --- | --- | --- | 
| ![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) | ![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) | 

## Ketersediaan Wilayah
<a name="model-card-zai-glm-5-regional-availability"></a>

***Sekilas tentang ketersediaan regional***

Bedrock menawarkan tiga opsi inferensi: **In-Region**menyimpan permintaan dalam satu Wilayah untuk kepatuhan yang ketat, Cross-Region rute **Geo** lintas Wilayah dalam geografi (AS, UE, dll.) untuk throughput yang lebih tinggi sambil menghormati residensi data, dan Cross-Region rute **Global** di mana saja di seluruh dunia untuk throughput maksimum ketika tidak ada kendala residensi. Lihat [Ketersediaan wilayah](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) | ![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) | 
| us-east-2(Ohio) | ![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) | 
| 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) | ![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-north-1(Stockholm) | ![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-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) | 
| 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-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-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) | 
| ap-southeast-3(Jakarta) | ![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) | 
| ap-southeast-4(Melbourne) | ![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) | 

## Kuota dan Batas
<a name="model-card-zai-glm-5-quotas"></a>

Akun AWS Anda memiliki kuota default untuk mempertahankan kinerja layanan dan untuk memastikan penggunaan Amazon Bedrock yang tepat. [Kuota default yang ditetapkan ke akun dapat diperbarui tergantung pada faktor regional, riwayat pembayaran, penggunaan penipuan, and/or persetujuan permintaan peningkatan kuota.](https://docs.aws.amazon.com/bedrock/latest/userguide/quotas-increase.html) Untuk lebih jelasnya, silakan merujuk ke [Kuota untuk Amazon Bedrock](quotas.md) dokumentasi dan lihat [batas](https://docs.aws.amazon.com/general/latest/gr/bedrock.html#limits_bedrock) untuk model.

## Kode Sampel
<a name="model-card-zai-glm-5-sample-code"></a>

**Langkah 1 - Akun AWS:** Jika Anda sudah memiliki akun AWS, lewati langkah ini. Jika Anda baru mengenal AWS, daftar [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 memiliki Python yang sudah diinstal. Kemudian instal perangkat lunak yang relevan tergantung pada API yang Anda gunakan.

------
#### [ Chat Completions API ]

```
pip install boto3 openai
```

------
#### [ Invoke/Converse API ]

```
pip install boto3
```

------

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

------
#### [ Chat Completions API ]

```
OPENAI_API_KEY="<provide your Bedrock API key>"
OPENAI_BASE_URL="https://bedrock-mantle.<your-region>.api.aws/v1"
```

------
#### [ 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`

------
#### [ Chat Completions API ]

```
from openai import OpenAI

client = OpenAI()

response = client.chat.completions.create(
    model="zai.glm-5",
    messages=[{"role": "user", "content": "Can you explain the features of Amazon Bedrock?"}]
    )
print(response)
```

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

```
import json
import boto3

client = boto3.client('bedrock-runtime', region_name='us-east-1')
response = client.invoke_model(
    modelId='zai.glm-5',
    body=json.dumps({
            '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='zai.glm-5',
    messages=[
        {
            'role': 'user',
            'content': [{'text': 'Can you explain the features of Amazon Bedrock?'}]
        }
    ]
)
print(response)
```

------