How are input tokens charged in assistants?

Are the input tokens cumalative when the user continues a chat? For example, If the user sends n messages, will I be charged (system_prompt+1+2+3…+n) messages as input tokens per message? Or are input tokens just per message? Many thanks.