Mistral
Codestral
codestralKonteks
128K
Input / 1M token
Rp 5.544
Output / 1M token
Rp 16.632
Input ter-cache / 1M token
Rp 1.303
Penulisan cache / 1M token
β (ditagih harga input)
Tentang model ini
Codestral
Codestral adalah model buatan Mistral, tersedia lewat API Anoman AI yang kompatibel dengan OpenAI dengan jendela konteks 128K token. Harganya Rp 5.544 per 1M token input dan Rp 16.632 per 1M token output. Bisa dipakai di: Free (dari kredit atau saldo), Pro, Enterprise.
Fakta utama
- Pembuat
- Mistral
- Jendela konteks
- 128K token
- Output maksimum
- 128K token
- Jalur
- Terjaga: penyedia telah mengonfirmasi tidak melatih model dengan data Anda
- Modalitas
- Teks
- Harga input
- Rp 5.544 per 1M token
- Harga output
- Rp 16.632 per 1M token
- Wilayah pemrosesan
- us
- Bisa dipakai di
- Free (dari kredit atau saldo), Pro, Enterprise
- Perbandingan harga
- Lebih murah daripada 154 dari 190 model terjaga band pro di Anoman (harga gabungan: 1 bagian input, 3 bagian output).
Cara memanggil
Cara memanggil Codestral
Setiap ID model di bawah bisa dipanggil lewat API Anoman AI. Harga dan wilayah pemrosesan bergantung pada rutenya.
| ID model | Input / output per 1M token | Wilayah | Jalur | Konteks |
|---|---|---|---|---|
| codestral | Rp 5.544 / Rp 16.632 | us | Terjaga | 128K |
| codestral-latest | Rp 5.544 / Rp 16.632 | eu | Terjaga | 128K |
Contoh kode
Chat completion dengan Codestral
from openai import OpenAI
client = OpenAI(
base_url="https://api.anoman.io/v1",
api_key="anm-sk-..."
)
response = client.chat.completions.create(
model="codestral",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)Alternatif
Model serupa di katalog kami
Pembuat yang sama lebih dulu, lalu harga terdekat dengan Codestral di katalog Anoman.