How to generate document referencing similar to Gemini chat in API?

In gemini.google.com, the chat can reference attachment page directly. (see image:

Is it possible to recreate similar output in api directly? I’m hoping to be able to create easy reference in my own app.

Hi @cubesat, I don’t think you can extract the reference pages in the document using the API for generated content as you get in the gemini.google.com . Thank You