Application Program Interface Tcl and Tk both have script-level and C level API.