You can find the VPU API document from our Linux release.
"i.MX5x_Linux_VPU_API.pdf"
For i.MX6 we use the same API as i.MX5x.
I also attached the API document.
For the sample code you can refer to our Linux VPU unit test code,
it will call the VPU API directly.