consolidate token usage for api