Add 2D annotation with python?

Hello here,
I want to create 2D square in the camera view with x and y position in a Python script.
I try to do it with GreasePencil, but GreasePencil use 3D coordonates.
I then try to use the “Annotate” tool, But I do not find Python documentation about it.
Does someone has an idea?