DataForSEO
Generate an Answer with Gemini 2.5 Flash
Send a current question, a behavior instruction and one or two prior messages to Gemini 2.5 Flash through DataForSEO, with web search enabled. Receive a generated answer and available reference information.

You receive
Get a Gemini 2.5 Flash response containing generated answer text and reported model and token usage. When available, references include source titles, direct links and passages associated with the answer. The result can also report whether search was used and related queries derived from your prompt. Your Agent can present the answer and available references together so you can review the explanation and check its sources.
Start with your task
Explain [how solar panels turn sunlight into electricity] for [someone with no science background]. Use everyday language, and list sources if any are returned.
What to know
A generated answer can be incomplete or incorrect. Enabled search does not guarantee citations or current facts, and references may be empty. The required 200-token setting is a request, not an exact length or a strict cutoff when search is used. Inspect the actual text before relying on it.



