When using my own API key, is the context length limited by the cursor, or is it the full context length?

I want to use Gemini to achieve a 1M context length, but I’m not sure if this is possible.