What is an SDK?
SDK stands for software development kit, which is a bundle of code and tools that a company gives developers so they can build things for its platform or service. I’ve been using SDKs forever but honestly I never knew why some things were called an SDK and others were called a library.
A library is a chunk of code you pull into your project to do a specific job. An SDK is usually a bigger kit from a platform or company that comes with one or more libraries plus docs and tools like a debugger or an emulator. The Android SDK is a good example of the big version. It has the Android platform files your app gets built against, build tools, the adb tool for debugging on a device and the Android Emulator.
A framework flips the library idea around. Your code calls a library when it needs something, while a framework is the thing in charge and calls your code when it needs to.
An API is the set of rules for talking to a service, usually by sending requests to its server and getting JSON back. A lot of SDKs wrap an API so you can call regular methods in your own language instead of building those requests by hand.
The lines between these are blurry and a lot of it comes down to naming. Stripe lists its Ruby, Python and Node packages under “Server-side SDKs” but each one is called something like the “Stripe Ruby Library” on the same page. They’re really libraries that wrap the Stripe API, so calling them an SDK is mostly convention.