Gateway credits – how is OpenAI cached input billed?

Describe the problem/error/question

Hi n8n team,
I’m on n8n Cloud (instance: alejandrov.app.n8n.cloud) and I’m deciding whether to use Gateway credits or my own OpenAI API key for my workflows.
The service pricing page lists OpenAI input and output prices that match OpenAI’s list prices, but it doesn’t show a cached-input price. OpenAI charges much less for cached input (for example, gpt-6.1-sol is $2.00 per 1M input tokens but $0.10 per 1M cached input tokens).
Could you confirm:
When a workflow uses OpenAI models through Gateway credits, are cached input tokens billed at OpenAI’s cached-input rate, or at the full input rate?
Do long-context requests use OpenAI’s long-context rates, or the standard rates on the pricing page?
Do requests through the gateway get OpenAI’s automatic prompt caching at all?
This matters for my workflows that send the same long system prompt many times.
Thanks,
Alejandro Valenzuela

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @gaxval, the Gateway pricing table currently doesn’t publish cached-input or long-context rates. I can’t confirm those Gateway charges, or whether Gateway requests retain OpenAI’s automatic prompt caching, from the published information.

One extra category for your comparison: OpenAI’s GPT-6.1 Sol pricing prices cache-write tokens at $2.50/M on Standard requests up to 272K input tokens, instead of the normal input rate for those tokens. Above that threshold, input/cache rates double and output is 1.5× for the whole request.

Email help@n8n.io with your three questions and ask billing to include cache-write deductions. A cache hit alone doesn’t verify how many Gateway credits were charged.