API provides building blocks and routines for developing software applications consistently across operating systems. Direct3D and OpenGL are 3D graphics APIs that make it easier for developers to create 3D graphics. The graphics pipeline is the stages required to transform 3D images into 2D for display, processing vertex properties like position and color through stages like assembly, lighting and rendering for output.