AiOptimization
Live Gemini LLM Responses endpoint allows you to retrieve structured responses from a specific Gemini AI model, based on the input parameters.
post/v3/ai_optimization/gemini/llm_responses/live
Request
- Base URL: https://api.dataforseo.com
- URL: https://api.dataforseo.com/v3/ai_optimization/gemini/llm_responses/live
- Auth: HTTP basic
Request body
Example request
[
{
"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"
}
]Response
Successful operation
Changes
- breaking
added to the
///////////////////response propertyoneOflist for the response status - info
added the new optional request property
///// - info
added the optional property
//////////////////to the response with the status - info
removed from the
///////////////////response propertyoneOflist for the response status
- breaking
- info
api operation id
AiOptimizationGeminiLlmResponsesLiveremoved and replaced withGeminiLlmResponsesLive - info
added the optional property
//////////////////to the response with the status
- info