1. How does OpenAI split billing between input, cached input, and output tokens?
OpenAI bills per 1,000,000 tokens separately for uncached input, cached input reads, and generated output. Autoregressive output generation costs roughly 4x to 5x more than standard input because each output token requires sequential KV-cache memory reads across transformer layers.
2. What is the difference between default 30-minute and extended 12-hour prompt cache retention?
Standard in-memory prefix caches remain warm for roughly 5 to 30 minutes of inactivity at no extra write fee, whereas extended 12-hour retention options keep persistent agent contexts cached longer across sparse sessions in exchange for a higher cache-write rate.
3. What file size and request limits apply to OpenAI Batch JSONL jobs?
A single Batch input JSONL file can contain up to 50,000 individual requests and up to 200 MB of payload data, with up to 2,000 batch creation requests per hour and an SLA turnaround window of 24 hours.
4. Do reasoning tokens and image tokens count toward TPM rate limits?
Yes. Hidden internal reasoning tokens generated by reasoning-capable models are billed at the output token rate and consume Tokens Per Minute (TPM) capacity alongside visible output and input prompt tokens.
5. How is GPT Image billed compared to text models?
Dedicated image endpoints meter per generated image (e.g., ~$0.04/image at standard quality) based on output dimensions and quality level, plus minimal text-prompt token overhead when rich instructions are passed.
6. How can engineers maximize prompt cache hit rates in production?
Keep static system prompts, JSON schemas, and tool definitions strictly at the top of the prompt array, and place timestamps, user IDs, or dynamic retrieval chunks at the end so prefix hashes match deterministically.