CFFI offers two main modes: ABI and API. While ABI mode is simpler (accessing libraries at the binary level), the API mode is generally faster and more robust. API mode achieves this by compiling a CPython C wrapper that directly invokes the target function, often being "massively faster" than ABI mode or `libffi` for certain scenarios, especially when using 'out-of-line' compilation.