OpenAI Flex Processing for Product Managers: Cut Inference Costs with Async Workloads
TL;DR
OpenAI Flex processing is a new API service tier that prices requests at Batch API rates (50% off standard) in exchange for slower, variable response times and occasional resource unavailability. You enable it with a single parameter: service_tier: "flex". Ideal for model evaluations, data enrichment pipelines, background analysis, and any workload where results can arrive minutes or hours later. Stack it with prompt caching for the deepest cost cuts. This article covers the mechanics, the right use cases, and how to design your product architecture around async AI patterns.
The AI PM Minute
One tactic to make you a sharper AI PM, twice a week. 60 seconds to read. Free.
No fluff. Unsubscribe anytime.
What Flex Processing Is and How It Differs from Standard Inference
Standard OpenAI API calls run on the highest priority compute tier. Your request joins a queue, gets GPU resources quickly, and returns within seconds. You pay for that priority in the per-token price.
Flex processing uses the same API endpoints but routes your request to a lower-priority queue. OpenAI fills Flex requests in the gaps between high-priority traffic. Response times slow and become unpredictable. Occasionally, when compute is constrained, Flex requests may not be serviced immediately at all. In exchange, you pay Batch API rates: 50% off the standard price.
The API change is a single parameter on your existing Responses or Chat Completions call:
{
"model": "gpt-4.1",
"service_tier": "flex",
"messages": [
{ "role": "user", "content": "Summarize this article..." }
]
}No new SDK. No new endpoint. No webhook setup required (though optional webhooks are available for completion notification). You retrofit existing calls with one parameter and get dramatically lower costs on eligible workloads.
Pricing
Batch API rates, which are 50% off standard pricing. Prompt caching discounts apply on top, so cached long system prompts can reduce effective input cost further.
Latency
Variable. Seconds to minutes depending on OpenAI infrastructure load. Not suitable for user-facing real-time interactions.
Availability
Beta. Model availability for Flex is listed on the OpenAI pricing page and expands over time. Check before assuming your target model is eligible.
Model compatibility
Same API, same models as standard tier. No capability difference. Flex only affects priority and cost, not output quality.
The Cost Math: Flex vs. Standard vs. Batch API
OpenAI has three inference pricing tiers now. Understanding the tradeoffs across all three is essential for cost modeling.
| Tier | Price | Latency | Best for |
|---|---|---|---|
| Standard | Full price | Seconds | Real-time user-facing features |
| Flex (service_tier: flex) | 50% off (Batch rates) | Seconds to minutes | Background tasks where delay is acceptable |
| Batch API (async file upload) | 50% off | Up to 24 hours | High-volume overnight processing jobs |
Flex and Batch API have the same price, but different mechanics. Batch API requires file upload, async job management, and polling or webhooks. Flex is a synchronous API call that just happens to be slower. If your engineering team is already using the standard API, Flex is a one-line change. Batch API requires a separate integration.
Stacking with prompt caching
Flex respects prompt caching. If your request includes a long cached system prompt, you pay the cached input rate (already discounted) on top of the Flex rate. On large-context workloads with repetitive system prompts, the effective per-request cost can drop substantially below the already-discounted Flex rate.
The Right Use Cases: Where Flex Saves Real Money
Flex processing makes economic sense whenever your product has workloads that do not need results in under a second. Here are the patterns where it delivers the clearest return.
Model evaluations and evals pipelines
Why it fits: Running evals is high-volume, non-urgent, and batchy by nature. You submit hundreds or thousands of completions and analyze the aggregate results. Speed per completion does not matter. Flex cuts the cost of running evals by 50%, which means you can afford to run them more frequently.
Examples: Nightly eval runs against your full regression suite, new model bake-offs, prompt regression testing after system prompt changes.
Data enrichment and content processing
Why it fits: Summarizing, classifying, extracting structured data from documents. These pipelines run in the background. Users see the enriched data after the fact, not in real time.
Examples: Enriching a CRM with AI-generated lead summaries, classifying support tickets overnight, extracting entities from uploaded documents.
Personalization precomputation
Why it fits: Pre-generating personalized content (email copy, recommendations, onboarding flows) for users before they log in. The generation happens in background; the user experiences instant delivery.
Examples: Generating personalized weekly digests for all users the night before delivery, pre-building tailored FAQ answers per user segment.
Analytics and reporting generation
Why it fits: AI-synthesized reports, summaries, and insights that users request and receive asynchronously (email delivery, notification). The generation is behind a latency buffer anyway.
Examples: End-of-week sales summary reports, monthly product analytics narratives, competitive intel digests.
Build Profitable AI Products
The AI PM Masterclass covers inference cost optimization, async architecture, and the financial modeling AI products require. Taught live by a Salesforce Sr. Director PM.
Designing Async AI Product Patterns
Shipping async AI features requires a different product design pattern than the typical request-response flow. Here is how to handle it without degrading the user experience.
Optimistic UI with background completion
Show a loading state or placeholder immediately. The AI generation runs on Flex in the background. When the result arrives (polling or webhook), update the UI. Users see progress, not a blank wait.
Asynchronous result delivery
For non-interactive features (digests, reports, summaries), deliver results via email, push notification, or in-app inbox. The user is not waiting at the screen. This is the natural UX for Flex workloads.
Fallback to standard tier on timeout
If Flex has not returned within a user-acceptable window and a user is actively waiting, fall back to a standard tier call. Build a timeout threshold into your orchestration layer.
Job queue abstraction
Wrap Flex calls in an internal job queue (SQS, Redis, Celery). Enqueue the AI work, process it asynchronously, and store results. This decouples your product layer from API timing variability.
Webhook integration
OpenAI supports async event handling with webhooks on the Batch API. For Flex, polling is simpler. Set a reasonable polling interval (10 to 30 seconds) for background jobs rather than continuous polling.
Cost tracking by tier
Tag requests by service_tier in your logging. Measure actual cost per feature and per tier separately. This makes the ROI of Flex visible and helps you identify additional workloads to migrate.
When Not to Use Flex: The Clear Anti-Patterns
Flex is the wrong choice for several common AI product patterns. Misapplying it creates a poor user experience that is hard to diagnose.
Chat and conversational interfaces
Users expect responses in seconds. Flex can take minutes. Do not route any synchronous conversation turn through Flex.
Copilot features with inline suggestions
Code completion, writing suggestions, and inline AI features need sub-second latency. Flex is not a fit regardless of cost savings.
Real-time voice or audio processing
Latency requirements for real-time audio are measured in milliseconds, not seconds. Flex adds unacceptable delays.
Any feature that blocks a user workflow
If the user cannot proceed until the AI result arrives, they are waiting. Use standard tier. Flex is only appropriate when the wait is invisible or explicitly expected.
SLA-sensitive production pipelines
Flex can be unavailable when OpenAI compute is constrained. If your pipeline has strict SLAs, standard or Batch API with predictable 24-hour turnaround is safer.
The strategic takeaway
Most AI products have a mix of latency-sensitive and latency-tolerant workloads, but they charge all of them at the same tier because it is simpler. Flex processing creates the economic case for auditing your AI feature inventory and segmenting it. The savings on background workloads can meaningfully offset the cost of premium real-time features.
Build AI Products That Are Profitable, Not Just Functional
Cost optimization, async architecture, and inference tier strategy are core AI PM skills. The Masterclass covers all of them in a live cohort format.
Related Articles
Before you go: get the AI PM Minute
One tactic to make you a sharper AI PM, twice a week. 60 seconds to read. Free.
No fluff. Unsubscribe anytime.