Execute a search query.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Search request
The search query.
An ordered list of message objects that define the conversation context for the LLM. Each message contains a role and content. Currently, only the "user" role is supported.
The optional format parameter can be "text" or "markdown" (default). "text" returns plain text without formatting, useful for logs or custom-styled outputs. "markdown" includes rich formatting (bold, italics, lists, code, links) for apps that can render Markdown. If omitted, the API defaults to "markdown".
text, markdown Search response
The main response generated by the API based on the provided prompt and context.
The format of the response, as specified by the user.
The list of sources used to generate the response.
The total time taken to generate the response, in milliseconds.