The API Tokens module provides an input filter that allows to replace custom parametric tokens with rendered content. Each declared token binds to its handler function, that returns content, token will be replaced with. Token may contain parameters that will be passed to its handler function.