API = Application Programming Interface
Python, C++, Java, Fortran, etc are languages
OpenGL, Direct3D, etc are graphics APIs
A graphics API can be used with any language, if there's a binding