View a markdown version of this page

Hebat 4.6 - Amazon Bedrock

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

Hebat 4.6

Ikon yang menunjukkan logo XAI. Xai — Grok 4.6

Detail Model

Grok 4.6 adalah model perbatasan XAI yang dibangun untuk pengkodean, tugas agen, dan pekerjaan pengetahuan. Ini dibangun di atas generasi Grok sebelumnya dengan fokus khusus pada agen yang sudah berjalan lama dan pekerjaan interaktif yang lebih ambisius. Ini menawarkan jendela konteks 500K dan upaya penalaran yang dapat dikonfigurasi (rendah, sedang, tinggi, xtinggi).

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.MenanamkanGreen circle with white checkmark icon. 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.GambarGreen circle with white checkmark icon. 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. Converse
Green circle with white checkmark icon.TeksGreen circle with white checkmark icon.TeksGreen circle with white checkmark icon. Invoke
Red circle with white X icon indicating error, cancel, or close action.VideoRed circle with white X icon indicating error, cancel, or close action.Video

Kemampuan dan Fitur

Fitur Bedrock

Fitur yang didukung menggunakan bedrock-runtime titik akhir

Fitur yang didukung menggunakan bedrock-mantle titik akhir

Didukung Tidak Didukung

Harga

Opsi inferensi Masukan Keluaran Cache dibaca
In-Region$2,20$6,60$0,55
Geografis CRIS$2,20$6,60$0,55
CRIS global$2,00$6,00$0,50

Semua harga per 1 juta token. Harga yang ditampilkan adalah untuk tingkat Standar.

Dukungan tingkat Prioritas dan Flex: Selain Standar, Grok 4.6 mendukung tingkatan layanan Prioritas dan Flex. Prioritas ditagih sebesar 1,75x tarif Standar per token (premi 75%) dan Flex sebesar 0,5x tarif Standar (diskon 50%); terapkan pengganda ini ke tarif Standar yang ditunjukkan di atas. Untuk detail tentang setiap tingkat layanan, lihat tingkatan layanan.

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-mantle xai.grok-4.6 https://bedrock-mantle.{region}.api.aws/openai/v1 Tidak didukung Tidak didukung
bedrock-runtime xai.grok-4.6 Tidak didukung us.xai.grok-4.6 global.xai.grok-4.6

Misalnya, jika wilayah adalah us-west-2 (Oregon), maka URL titik akhir landrock-mantle akan menjadi "”. https://bedrock-mantle.us-west-2.api.aws/openai/v1 Padabedrock-runtime, URL dasarnya adalah "https://bedrock-runtime.{region} .amazonaws. com/openai/v1 "dan permintaan harus memberi nama ID inferensi lintas wilayah geografis us.xai.grok-4.6 atau global.xai.grok-4.6 sebagai model.

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 pemrosesan yang lebih cepat dan diprioritaskan untuk harga premium (set"service_tier": "priority"). Flex menyediakan akses berbiaya lebih rendah untuk beban kerja yang fleksibel dan tidak peka waktu (set). "service_tier": "flex" Untuk informasi selengkapnya, lihat tingkatan layanan.

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

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.

Ketersediaan berbeda berdasarkan titik akhir.

Ketersediaan menggunakan titik bedrock-mantle akhir

Wilayah In-Region Geo Global
us-west-2(Oregon)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.
us-gov-east-1(GovCloud Timur)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.

Ketersediaan menggunakan titik bedrock-runtime akhir

Wilayah In-Region Geo Global
us-east-1(Virginia 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-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.
us-gov-west-1(GovCloud Barat)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Red circle with white X icon indicating error, cancel, or close action.
us-gov-east-1(GovCloud Timur)Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.Red circle with white X icon indicating error, cancel, or close action.
ca-central-1(Kanada)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.
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.Red circle with white X icon indicating error, cancel, or close action.Green circle with white checkmark icon.
eu-central-2(Zurich)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-north-1(Stockholm)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-south-1(Milan)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-south-2(Spanyol)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-west-1(Irlandia)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-west-2(London)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-west-3(Paris)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-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(Tokio)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-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(Sendai)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-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(Haiderabad)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.Red circle with white X icon indicating error, cancel, or close action.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)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-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.Red circle with white X icon indicating error, cancel, or close action.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.

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.

catatan

Grok 4.6 adalah model XAI. Amazon Bedrock menyajikan API Tanggapan dan Penyelesaian Obrolan melalui OpenAI-compatible titik akhir, sehingga contoh-contoh tersebut menggunakan OpenAI Python SDK sebagai klien. Konfigurasikan SDK dengan kunci API Amazon Bedrock Anda dan URL dasar Amazon Bedrock seperti yang ditunjukkan di bawah ini; permintaan memanggil model XAI di Amazon Bedrock dan tidak dikirim ke OpenAI.

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.

Responses API / Chat Completions API
pip install openai
Converse API
pip install boto3

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

bedrock-mantle
OPENAI_API_KEY="<provide your Bedrock API key>" OPENAI_BASE_URL="https://bedrock-mantle.us-west-2.api.aws/openai/v1"
bedrock-runtime
OPENAI_API_KEY="<provide your Bedrock API key>" OPENAI_BASE_URL="https://bedrock-runtime.us-east-1.amazonaws.com/openai/v1"
catatan

Aktifbedrock-runtime, beri nama profil inferensi lintas wilayah sebagai model — us.xai.grok-4.6 atau. global.xai.grok-4.6 Model ini tidak tersedia untuk inferensi In-region pada titik akhir tersebut. Identitas IAM Anda juga perlu bedrock:InvokeModel di project default akun Anda (arn:aws:bedrock:{region}:{account-id}:project/default) selain profil inferensi.

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

Responses API (bedrock-mantle)
from openai import OpenAI client = OpenAI() response = client.responses.create( model="xai.grok-4.6", input="Can you explain the features of Amazon Bedrock?" ) print(response)
Responses API (bedrock-runtime)
from openai import OpenAI client = OpenAI() response = client.responses.create( model="us.xai.grok-4.6", input="Can you explain the features of Amazon Bedrock?" ) print(response)
Chat Completions API (bedrock-mantle)
from openai import OpenAI client = OpenAI() response = client.chat.completions.create( model="xai.grok-4.6", messages=[ {"role": "user", "content": "Can you explain the features of Amazon Bedrock?"} ] ) print(response)
Chat Completions API (bedrock-runtime)
from openai import OpenAI client = OpenAI() response = client.chat.completions.create( model="us.xai.grok-4.6", messages=[ {"role": "user", "content": "Can you explain the features of Amazon Bedrock?"} ] ) print(response)
Converse API (bedrock-runtime)
import boto3 client = boto3.client("bedrock-runtime", region_name="us-east-1") response = client.converse( modelId="us.xai.grok-4.6", messages=[ {"role": "user", "content": [{"text": "Can you explain the features of Amazon Bedrock?"}]} ] ) print(response["output"]["message"]["content"][0]["text"])

Pertimbangan dan Batasan Penggunaan

  • Upaya penalaran — Penalaran selalu aktif secara default. Anda dapat mengonfigurasi upaya melalui reasoning parameter: "low" (default),"medium","high", atau"xhigh". Konten penalaran dienkripsi dan dapat dikembalikan dengan include: ["reasoning.encrypted_content"] meneruskan permintaan API Tanggapan. Anda dapat mengirim konten terenkripsi kembali pada giliran berikutnya untuk memberikan konteks penalaran untuk percakapan multi-putaran. API Penyelesaian Obrolan tidak mengembalikan token penalaran.

    response = client.responses.create( model="us.xai.grok-4.6", reasoning={"effort": "high"}, include=["reasoning.encrypted_content"], input="Explain quantum entanglement simply." ) print(response.output_text)