API reference for TokenSpark: base URL, authentication, chat completions, streaming, tools, models list, errors and SDK examples in Python and Node.