Vala API files (.vapi) are used to map the Vala code to C.
vala is designed to allow access to existing c libraries, especially gobject based libraries, without the need for runtime bindings. Each to be used library requires a Vala API file (.vapi) at compile-time, containing the class and method declarations in Vala syntax.