I have done multiple projects in Qt (for my current employer), these projects are mostly for embedded devices interface e.g CAN/UART/UDP-socket.
It would be helpful if you can give more details about required API. As the given detail seems a basic.
The time to complete the task depends on your requirements, but I am certain it won't take more than 5 days.