Improve request performance
- Pass
collection_idwhen you know which collection contains the content. - Request only the search modes your workflow needs.
- Keep
limitand page sizes as small as your interface allows. - Avoid sending image input when a text query is sufficient.
- Use
natural_language=trueonly for conversational queries that benefit from additional interpretation.
Set client timeouts
Allow for normal variation instead of depending on a single latency estimate. Logmeta.request_id and meta.took_ms when available so you can investigate slow requests.
Retry transient server errors with exponential backoff and jitter. Do not automatically retry validation or authentication errors.
Rate limits
Rate limits control request frequency. They are separate from the response time of an individual request. See Rate limits for current limits and429 handling.