[API] Add depth setting

Signed-off-by: Emilien Kenler <hello@emilienkenler.com>