Choose where orchestration lives
With Search, your code chooses the queries, model and stopping condition. Add Contents to read known URLs. Use this approach when retrieval is a component of an existing agent or you need direct control over the research process. With DeepResearch, you submit a brief and retrieve the result asynchronously. Your application manages the task’s lifecycle and decides how to use the output. Useinstant mode for a quick cited answer in under 30 seconds.
You can combine these approaches. Evaluate quality, latency and total cost on the same representative tasks before choosing a default.
Carry evidence through the application
Keep source URLs and relevant metadata attached to the material your users see. A citation makes a claim inspectable; it does not guarantee that the source supports it. Check that the retrieved content answers the question and preserve uncertainty when sources disagree. Avoid silently turning an extraction failure or unavailable source into a negative finding. Distinguish no matches, incomplete evidence and a failed request.Define an output contract
If another process consumes the result, specify the fields and types it needs. Validate structured output before storing it or acting on it. Allow missing information explicitly rather than requiring the model to invent a value. For reports, specify the intended audience, scope and required sections. For repeated work, consider versioned Workflows, currently in beta.Design for time and cost
Keep API keys server-side. Apply concurrency controls and bounded retries. Persist asynchronous task IDs so a page reload or worker restart does not start the same research again. Measure cost per useful completed task, including any model calls your own application makes. A lower cost per request does not help if the result requires many retries or manual corrections. See pricing for API charging rules.Establish a baseline before rollout
Test with real questions, known source requirements and explicit acceptance criteria. Measure latency, cost, useful evidence returned and failures. Keep the test set so source, model and prompt changes can be compared over time.Evaluate retrieval
Build a practical evaluation from your application’s tasks.
Embed research
Manage task state, results and errors in production.