API 1.7 for custom visuals is available in the PowerBI-visuals-tools.
This version introduces the much anticipated advanced filtering API, to enable semantic queries on the Power BI data model.
Start by adding the advanced filtering reference to your project, and then you can go ahead and use it in your custom visual.
If you need a more comprehensive tutorial with samples, use our sample slicer custom visual, which already includes the use of the advanced filtering API.
If you already have the developer tools, don't forget to update your version.
Senior Program Manager
Power BI Custom Visuals