Chat
POST /v1/chat/completions
LLM ve vision modelleri için chat completions kullanılır. stream: true ile SSE streaming desteklenir.
{ "model": "gemini-3-flash", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "2+2 kaçtır?"} ], "temperature": 0.7, "max_tokens": 1024, "stream": false}| Alan | Tip | Zorunlu | Açıklama |
|---|---|---|---|
model | string | evet | Model ID |
messages | array | evet | Sohbet mesajları |
temperature | number | hayır | Sampling sıcaklığı |
max_tokens | integer | hayır | Maksimum çıktı token |
stream | boolean | hayır | SSE streaming |
tools | array | hayır | Function calling araçları |
response_format | object | hayır | JSON modu |
think | boolean | hayır | Desteklenen modellerde reasoning modu |
Vision
Section titled “Vision”{ "model": "gemini-3-flash", "messages": [ { "role": "user", "content": [ {"type": "text", "text": "Bu görseli açıkla."}, {"type": "image_url", "image_url": {"url": "https://example.com/image.jpg"}} ] } ]}