Anthropic
Claude Haiku 4.5
Hızlı, ekonomik ve güvenilir genel amaçlı LLM
Input 800 kredi/1M token
Output 4.000 kredi/1M token
Hakkında
Claude Haiku, Anthropic tarafından geliştirilen hızlı ve güvenli bir yapay zeka modelidir. Claude 4.5 ailesinin en hafif üyesi olarak düşük gecikme süresi ile gerçek zamanlı sohbet, intent routing ve sınıflandırma görevlerinde öne çıkar. Dense Transformer mimarisi güçlü güvenlik hizalaması sağlar. Parel API ile yüksek hacimli, düşük maliyetli chatbot projelerinize entegre edilebilir.
Kullanım Alanları
- › Chatbot ve müşteri destek otomasyonu
- › İçerik üretimi ve metin özeti
- › Görsel analiz ve belge okuma (OCR)
- › RAG (Retrieval-Augmented Generation) sistemleri
- Provider
- Anthropic
- Tür
- LLM
- Context
- 200K token
- Model ID
- claude-haiku
- Input Fiyat
- 800 kredi/1M token
- Output Fiyat
- 4.000 kredi/1M token
Benzer Modeller
OpenAI SDK ile dakikalar içinde entegre edin.
Authentication #
API anahtarınızı ortam değişkeni olarak tanımlayın.
import os
os.environ["OPENAI_API_KEY"] = "pk-..."Kurulum #
OpenAI SDK'yi yükleyin.
pip install openaiChat Completions #
Temel sohbet tamamlama isteği.
from openai import OpenAI
client = OpenAI(
base_url="https://api.parel.cloud/v1",
api_key="pk-...",
)
response = client.chat.completions.create(
model="claude-haiku",
messages=[
{"role": "user", "content": "Merhaba!"}
],
)
print(response.choices[0].message.content)Streaming #
Yanıtları token token akın halinde alın.
from openai import OpenAI
client = OpenAI(
base_url="https://api.parel.cloud/v1",
api_key="pk-...",
)
stream = client.chat.completions.create(
model="claude-haiku",
messages=[
{"role": "user", "content": "Türkiye'nin başkenti neresidir?"}
],
stream=True,
)
for chunk in stream:
content = chunk.choices[0].delta.content
if content:
print(content, end="", flush=True)System Prompt #
Modelin davranisini system mesajiyla yonlendirin.
from openai import OpenAI
client = OpenAI(
base_url="https://api.parel.cloud/v1",
api_key="pk-...",
)
response = client.chat.completions.create(
model="claude-haiku",
messages=[
{
"role": "system",
"content": "Sen yardimci bir Turkce asistansin. Kisa ve net cevaplar ver."
},
{
"role": "user",
"content": "KVKK nedir?"
}
],
)
print(response.choices[0].message.content)Parametreler #
Yanıt kalitesini ve çeşitliliğini ayarlayın.
from openai import OpenAI
client = OpenAI(
base_url="https://api.parel.cloud/v1",
api_key="pk-...",
)
response = client.chat.completions.create(
model="claude-haiku",
messages=[
{"role": "user", "content": "Yaratici bir hikaye yaz."}
],
temperature=0.9, # 0-2: dusuk = deterministik, yuksek = yaratici
max_tokens=2048, # maksimum cikti token sayisi
top_p=0.95, # nucleus sampling esigi
)
print(response.choices[0].message.content)Kayıt olun, API anahtarınızı alın.