# Canlı Gemini LLM Responses

**API:** Data API

**Endpoint:** `POST /v1/beta/dataforseo/ai_optimization/gemini/llm_responses/live`

**Tags:** DataForSEO

Bir Gemini modeline `user_prompt` gönderir ve yanıtını eşzamanlı olarak döndürür. `model_name` `get_dataforseo_ai_gemini_llm_responses_models` içinden gelmelidir. Claude ve ChatGPT canlı uç noktalarından farklı olarak burada `system_message` kabul edilir. `model_name`, `input_tokens`, `output_tokens`, `reasoning_tokens`, `web_search`, `money_spent`, `datetime`, `items` ve `fan_out_queries` döndürür. Bir istemin gerçekte ne kadara mal olduğunu görmek için yanıttaki `money_spent` değerini okuyun. DataForSEO zarfı içinde: veriler `tasks[0].result`, sonuç `tasks[0].status_code` içinde — reddedilen bir istek yine de HTTP 200 döndürür.

### Fiyatlandırma referansı

- Ölçümlendirme: Bildirilen yanıt maliyeti.
- Referans istek tahmini: USD 0.0707.
- Referans müşteri çarpanı: 1.0. Kesinleşmiş müşteri tutarına yeniden uygulamayın.

Yalnızca referans üst verisi; hesap teklifi, garantili fiyat veya harcama üst sınırı değildir. Kaynak kredileri Felo kredisi değildir. Nihai ücretler Felo faturalandırma kayıtlarını izler.

## Related links

- [Models uç noktasına](<https://docs.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models/>)
- [Fiyatlandırma](<https://ai.google.dev/gemini-api/docs/pricing>)

## Base URL

- `https://openapi.felo.ai`

## Authentication

- `FeloBearerAuth` (http bearer, bearer format Felo API Key)
- `FeloApiKey` (apiKey in header `X-API-Key`)

## Request body

Required: **no**

### application/json

Schema:

```json
{
  "type": "array",
  "items": {
    "type": [
      "object",
      "null"
    ],
    "oneOf": [
      {
        "type": "object",
        "properties": {
          "user_prompt": {
            "type": "string",
            "description": "<em>AI modeli için prompt</em><br><strong>zorunlu alan</strong><br>AI modeline göndermek istediğiniz soru veya görev;<br><code>user_prompt</code> alanında <strong>en fazla 500 karakter</strong> belirtebilirsiniz"
          },
          "model_name": {
            "type": "string",
            "description": "<em>AI modelinin adı</em><br><strong>zorunlu alan</strong><br><code>model_name</code >gerçek model adı ve sürüm adından oluşur;<br>temel model adı belirtilirse varsayılan olarak en son sürümü ayarlanır;<br>örneğin <code>gemini-1.5-pro</code> belirtilirse <code>model_name</code> olarak otomatikman <code>gemini-1.5-pro-002</code> ayarlanır;<br>mevcut LLM modellerinin listesini ayrı bir istek göndererek şu adresten alabilirsiniz: <code>https://api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/models</code>"
          },
          "max_output_tokens": {
            "type": [
              "integer",
              "null"
            ],
            "description": "<em>AI yanıtındaki maksimum token sayısı</em><br>isteğe bağlı alan<br>minimum değer: <code>1</code><br>maksimum değer: <code>4096</code>;<br>varsayılan değer: <code>2048</code>;<br><strong>Not:</strong> <code>web_search</code> <code>true</code> olarak ayarlanırsa veya istekte akıl yürütme modeli belirtilirse çıktı token sayısı belirtilen <code>max_output_tokens</code> sınırını aşabilir<br><strong>Not 2:</strong> <code>use_reasoning</code> <code>true</code> olarak ayarlanırsa <code>max_output_tokens</code> için minimum değer <code>1024</code> olur"
          },
          "temperature": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>AI yanıtının rastgeleliği</em><br>isteğe bağlı alan<br>yüksek değerler çıktıyı daha çeşitli hale getirir <br>düşük değerler çıktıyı daha odaklı hale getirir<br>minimum değer: <code>0</code><br>maksimum değer: <code>2</code><br>varsayılan değer: <code>1.3</code>"
          },
          "top_p": {
            "type": [
              "number",
              "null"
            ],
            "description": "<em>AI yanıtının çeşitliliği</em><br>isteğe bağlı alan <br>token seçimini sınırlayarak yanıtın çeşitliliğini kontrol eder<br>minimum değer: <code>0</code><br>maksimum değer: <code>1</code> <br>varsayılan değer: <code>0.9</code>"
          },
          "web_search": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>güncel bilgiler için web aramasını etkinleştir</em><br>isteğe bağlı alan<br>etkinleştirildiğinde AI modeli güncel web bilgilerine erişebilir ve bunları alıntılayabilir;<br><strong>Not:</strong> <code>web_search</code> destekleyen modellerin listesi için Models uç noktasına bakın; <br>varsayılan değer: <code>false</code>;<br>Parametrenin maliyeti Fiyatlandırma sayfasında hesaplanabilir"
          },
          "system_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>AI davranışına yönelik talimatlar</em><br>isteğe bağlı alan<br>AI'nın rolünü, tonunu veya belirli davranışını tanımlar <br><code>system_message</code> alanında <strong>en fazla 500 karakter</strong> belirtebilirsiniz"
          },
          "message_chain": {
            "type": [
              "array",
              "null"
            ],
            "items": {
              "type": [
                "object",
                "null"
              ],
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "mesajın kaynaklandığı kullanıcının rolü"
                    },
                    "message": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "mesaj metni"
                    }
                  }
                }
              ]
            },
            "description": "konuşma geçmişi\nisteğe bağlı alan\nönceki konuşma turlarını temsil eden mesaj nesneleri dizisi;\nher nesne şunları içermelidir:\nuser veya ai rolünü içeren role dizesi;\nmesaj içeriğini içeren message dizesi (maks. 500 karakter);\ndizide en fazla 10 mesaj nesnesi belirtebilirsiniz;\nNot: Perplexity modellerinde mesajlar user ve AI rolleri arasında kesinlikle sırayla değişmelidir (user → ai);\nörnek:\n\"message_chain\": [{\"role\":\"user\",\"message\":\"Hello, what’s up?\"},{\"role\":\"ai\",\"message\":\"Hello! I’m doing well, thank you. How can I assist you today?\"}]"
          },
          "use_reasoning": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "<em>AI modeli için akıl yürütmeyi etkinleştir</em><br>isteğe bağlı alan<br>etkinleştirildiğinde model yanıt üretmeden önce akıl yürütme yapar<br><code>reasoning</code> destekleyen modellerin listesi için Models uç noktasına bakın<br>varsayılan değer: <code>false</code><br><strong>Not:</strong> <code>true</code> olarak ayarlanırsa <code>max_output_tokens</code> için minimum değer <code>1024</code> olur<br><strong>Not 2:</strong> Gemini Pro modellerinde <code>use_reasoning</code> otomatik olarak <code>true</code> değerine ayarlanır"
          },
          "tag": {
            "type": [
              "string",
              "null"
            ],
            "description": "<em>kullanıcı tanımlı görev tanımlayıcısı</em><br>isteğe bağlı alan<br><em>karakter sınırı 255</em><br>bu parametreyi görevi tanımlamak ve sonuçla eşleştirmek için kullanabilirsiniz<br>belirtilen <code>tag</code> değerini yanıtın <code>data</code> nesnesinde bulacaksınız"
          }
        },
        "example": [
          {
            "system_message": "communicate as if we are in a business meeting",
            "message_chain": [
              {
                "role": "user",
                "message": "Hello, what’s up?"
              },
              {
                "role": "ai",
                "message": "Hello! I’m doing well, thank you. How can I assist you today? Are there any specific topics or projects you’d like to discuss in our meeting?"
              }
            ],
            "max_output_tokens": 200,
            "temperature": 0.3,
            "top_p": 0.5,
            "model_name": "gemini-2.5-flash",
            "web_search": true,
            "user_prompt": "provide information on how relevant the amusement park business is in France now"
          }
        ]
      }
    ]
  },
  "example": [
    {
      "system_message": "communicate as if we are in a business meeting",
      "message_chain": [
        {
          "role": "user",
          "message": "Hello, what’s up?"
        },
        {
          "role": "ai",
          "message": "Hello! I’m doing well, thank you. How can I assist you today? Are there any specific topics or projects you’d like to discuss in our meeting?"
        }
      ],
      "max_output_tokens": 200,
      "temperature": 0.3,
      "top_p": 0.5,
      "model_name": "gemini-2.5-flash",
      "web_search": true,
      "user_prompt": "provide information on how relevant the amusement park business is in France now"
    }
  ]
}
```

## Responses

### 200 — Başarılı işlem

Headers:
- `X-Request-Id` (string) — Felo desteğiyle iletişime geçerken belirtilecek istek tanımlayıcısı.

**application/json**

Schema: object | null

```json
{
  "type": [
    "object",
    "null"
  ],
  "oneOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveResponseInfo"
    }
  ]
}
```

### 400 — İstek işlenemedi. İstek parametrelerini kontrol edin.

### 401 — Geçerli bir Felo API anahtarı gerekir.

### 402 — Faturalandırma koşulu karşılanmadığı için istek devam edemiyor.

### 403 — Hesabın bu işlemi gerçekleştirme izni yok.

### 429 — İstek veya harcama sınırına ulaşıldı.

### 502 — Hizmet isteği tamamlayamadı.

### 503 — API veya faturalandırma hizmeti geçici olarak kullanılamıyor.

### 504 — İstek işlenirken hizmet zaman aşımına uğradı.

### default — Hata yanıtı; upstream sağlayıcıdan doğrudan aktarılan yanıtlar sağlayıcı biçimlerini kullanabilir

**application/json**

Schema:

```json
{}
```

## Schema definitions

### Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveResponseInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveResponseInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseInfo"
    },
    {
      "type": "object",
      "properties": {
        "tasks": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveTaskInfo"
              }
            ]
          },
          "description": "<em>görev dizisi</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveResultInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveResultInfo`

```json
{
  "type": "object",
  "properties": {
    "model_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>kullanılan AI modelinin adı</em>"
    },
    "input_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>girişteki token sayısı</em><br>işlenen toplam token sayısı"
    },
    "output_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>çıktıdaki token sayısı</em><br>AI yanıtında oluşturulan toplam token sayısı"
    },
    "reasoning_tokens": {
      "type": [
        "integer",
        "null"
      ],
      "description": "<em>akıl yürütme tokenlarının sayısı</em><br>akıl yürütme içeriğini oluşturmak için kullanılan toplam token sayısı"
    },
    "web_search": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "<em>web aramasının kullanılıp kullanılmadığını belirtir</em>"
    },
    "money_spent": {
      "type": [
        "number",
        "null"
      ],
      "description": "<em>AI token maliyeti, USD</em><br>üçüncü taraf AI model sağlayıcısının fiyatlandırmasına göre aldığı ücret"
    },
    "datetime": {
      "type": [
        "string",
        "null"
      ],
      "description": "<em>sonucun alındığı tarih ve saat</em><br>UTC biçiminde: “yyyy-mm-dd hh-mm-ss +00:00”<br>örnek:<br><code class=\"long-string\">2019-11-15 12:57:46 +00:00</code>"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "object",
          "null"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem"
          }
        ]
      },
      "description": "<em>yanıt öğeleri dizisi</em><br>yapılandırılmış AI yanıt verilerini içerir"
    },
    "fan_out_queries": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "<em>fan-out sorguları dizisi</em><br>daha kapsamlı bir yanıt sağlamak için ana sorgudan türetilen ilgili arama sorgularını içerir"
    }
  }
}
```

### Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveTaskInfo

`#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveTaskInfo`

```json
{
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo"
    },
    {
      "type": "object",
      "properties": {
        "result": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": [
              "object",
              "null"
            ],
            "oneOf": [
              {
                "$ref": "#/components/schemas/Response36Afe1097B20_AiOptimizationGeminiLlmResponsesLiveResultInfo"
              }
            ]
          },
          "description": "<em>sonuç dizisi</em>"
        }
      }
    }
  ]
}
```

### Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem

`#/components/schemas/Response36Afe1097B20_BaseAiOptimizationLlmResponseElementItem`

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": [
        "string",
        "null"
      ],
      "description": "öğe türü"
    }
  },
  "additionalProperties": false,
  "discriminator": {
    "propertyName": "type",
    "mapping": {
      "reasoning": "#/components/schemas/Response36Afe1097B20_ReasoningAiOptimizationLlmResponseElementItem",
      "message": "#/components/schemas/Response36Afe1097B20_MessageAiOptimizationLlmResponseElementItem"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseInfo`

```json
{
  "properties": {
    "version": {
      "type": [
        "string",
        "null"
      ],
      "description": "API'nin geçerli sürümü"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "genel durum kodu\nyanıt kodlarının tam listesini burada bulabilirsiniz"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "genel bilgilendirme mesajı\ngenel bilgilendirme mesajlarının tam listesini burada bulabilirsiniz"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "toplam yürütme süresi, saniye"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "toplam görev maliyeti, USD",
      "format": "double"
    },
    "tasks_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks dizisindeki görev sayısı",
      "format": "int64"
    },
    "tasks_error": {
      "type": [
        "integer",
        "null"
      ],
      "description": "tasks dizisinde hata ile dönen görev sayısı",
      "format": "int64"
    }
  }
}
```

### Response36Afe1097B20_BaseResponseTaskInfo

`#/components/schemas/Response36Afe1097B20_BaseResponseTaskInfo`

```json
{
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ],
      "description": "görev tanımlayıcısı\nsistemimizde UUID biçiminde benzersiz görev tanımlayıcısı"
    },
    "status_code": {
      "type": [
        "integer",
        "null"
      ],
      "description": "görevin durum kodu\nDataForSEO tarafından oluşturulur; şu aralıkta olabilir: 10000-60000\nyanıt kodlarının tam listesini burada bulabilirsiniz"
    },
    "status_message": {
      "type": [
        "string",
        "null"
      ],
      "description": "görevin bilgilendirme mesajı\ngenel bilgilendirme mesajlarının tam listesini burada bulabilirsiniz"
    },
    "time": {
      "type": [
        "string",
        "null"
      ],
      "description": "yürütme süresi, saniye"
    },
    "cost": {
      "type": [
        "number",
        "null"
      ],
      "description": "toplam görev maliyeti, USD",
      "format": "double"
    },
    "result_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "result dizisindeki öğe sayısı",
      "format": "int64"
    },
    "path": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": [
          "string",
          "null"
        ]
      },
      "description": "URL yolu"
    },
    "data": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": [
          "object",
          "null"
        ]
      },
      "description": "POST isteğinde belirttiğiniz parametrelerin aynısını içerir"
    }
  }
}
```
