prompt size limit on 1M context models?

I am using GPT 4.1 which has 1M context window, but when i try putting in a system prompt thats around 300k tokens, i get an error "Payload too large. Hot tip, try reducing the size of yoru request body.

What is the max size for the system prompt? do i need to use files instead?
Was this page helpful?