techlist.io

Sora

3 posts

OpenAI2026-02-123 min readCurated summary

Beyond rate limits: scaling access to Codex and Sora

# Scaling Codex and Sora Beyond Rate Limits with a Hybrid Credits System OpenAI found that rate limits alone frustrate engaged users, while pure usage-based billing charges people from the first token. To bridge the gap, they built an in-house access engine that treats rate limits and prepaid credits as layers in a single decision flow. Each request is evaluated in real time, so users keep working past their limits without interruption, and every charge is traceable and auditable. ## Why Existing Access Models Fell Short - Rate limits protect capacity and fairness, but users who hit them get a "come back later" dead end. - Usage-based billing is flexible, but it charges from the first token, which discourages early exploration. - Raising rate limits would erode demand smoothing and capacity, while purely asynchronous billing introduces lag, overages, and reconciliation problems. - The required system had to enforce rate limits first, switch to credits within the same request, make that decision in real time, and track credit consumption with rigorous accuracy. ## Access as a Waterfall - Instead of asking "is this allowed?", the system asks "how much is allowed, and from where?" - Rate limits, free tiers, credits, promotions, and enterprise entitlements are all layers in one decision stack. - Users never "switch systems," which is why credits feel invisible in daily use. ## Why They Built It In-House Third-party metering and billing platforms suit invoicing and reporting, but they fell short on two requirements: - **Real-time correctness:** Delayed or best-effort counting causes surprise blocks, inconsistent balances, and incorrect charges. - **Reconcilability and trust:** Every outcome needed to be explainable, including why a request was allowed or blocked, how much usage it consumed, and which limits or balances applied. That level of visibility required tight integration with the decision waterfall. ## A High-Scale Usage and Balance System - Tracks usage per user and per feature - Maintains rate-limit windows and real-time credit balances - Debits balances idempotently through a streaming async processor - Routes every request through one evaluation path that synchronously consumes rate limits and verifies credit sufficiency, then returns a single outcome while settling credit debits asynchronously. This keeps behavior consistent across products and avoids duplicated logic across teams. ## A Provably Correct Billing System The system maintains three linked datasets, each triggering the next: - **Product usage events:** What the user actually did, published for all activity whether or not it consumed credits, providing an audit trail that explains every charge or non-charge. - **Monetization events:** What the user is charged for their usage. - **Balance updates:** How much the credit balance changed and why. Key mechanisms: - **Stable idempotency keys** on every event ensure retries, replays, or worker restarts can never double-debit a balance. They also enable offline batch reconciliation. - **Near-real-time asynchronous balance updates** trade a small delay for auditability. If that delay causes a balance overshoot, the user is automatically refunded, so the team prioritizes provable correctness and trust over strict enforcement. - **Atomic transactions** decrease the credit balance and insert a Balance Update record together. Updates are serialized per account, so concurrent requests cannot race to spend the same credits, and every adjustment links back to the monetization event that triggered it. ## Architecture in Service of Momentum The design goal is to keep users working. Real-time balances prevent unnecessary interruptions, atomic consumption prevents double-charging, and unified access logic makes behavior predictable. The team treats the underlying access, usage, and billing as one system, and expects the same foundation to extend beyond Codex and Sora to other products.

OpenAI2025-12-114 min readCurated summary

How We Used Codex to Ship Sora for Android in 28 Days

The team behind Sora for Android built the app's first production version in 28 days, from October 8 to November 5, 2025, with a four-person engineering team using an early version of GPT-5.1-Codex. The app reached #1 on the Play Store at launch and reached a 99.9 percent crash-free rate. The authors argue that Codex works best when humans make the architectural decisions and give it clear context, and that AI-assisted development raises the need for engineering rigor rather than reducing it. The post notes that the Sora product was discontinued on April 26, 2026. ### Staying small to move fast - The team deliberately avoided adding engineers, following Fred Brooks's warning that adding people to a late project makes it later. - Four engineers, each equipped with Codex, shipped an internal build to employees in 18 days and launched publicly 10 days later. - The app consumed roughly 5 billion tokens, and the team estimates Codex wrote about 85 percent of the code. ### Treating Codex like a new senior engineer - Codex struggles to infer unstated preferences, such as architecture patterns, product strategy, user behavior, and team conventions, so each session needs onboarding. - It cannot run the app on a device, so it can't notice a janky scroll or a confusing flow. The team handled those experiential judgments. - Left alone, it tends to add unnecessary view models or put logic in the UI layer, prioritizing a working result over long-term cleanliness. - Strengths include rapidly reading large codebases, writing broad unit test coverage, reacting to pasted CI logs, running many disposable experiments in parallel, and catching bugs in code review. - The team placed many AGENTS.md files throughout the codebase to carry style rules across sessions. For example, the top-level file requires running `./gradlew detektFix` before every commit. ### Laying the foundation by hand - The humans designed the architecture, modularization, dependency injection, navigation, authentication, and base networking. - They then wrote a few representative features end to end and documented the patterns they wanted repeated. - A single prompt asking Codex to "build the Sora Android app based on the iOS code" produced code that compiled but delivered a subpar product experience, so the team abandoned that approach. - Prompts that pointed to an existing screen and said to follow its architecture worked far better. ### Planning before coding - For non-trivial changes, the team first asked Codex to summarize how a feature works, such as how data flows from the API through the repository and view model into the UI, then corrected its understanding. - Codex then produced a miniature design document listing the files to change, new states, and logic flow, which the team reviewed before implementation. - For long tasks, the plan was saved to a file so it could carry across sessions and context windows. - Plans enabled Codex to run unsupervised for long stretches and made code review and debugging easier, since problems could be traced to the plan or the code. ### Managing parallel sessions - At peak, several Codex sessions ran at once on playback, search, error handling, and tests. - The bottleneck shifted from writing code to making decisions, giving feedback, and integrating changes. - The authors describe the work as conducting an orchestra rather than playing faster solo, since each additional session adds coordination overhead. ### Cross-platform development through translation - Because Sora already shipped on iOS and had a backend, the team pointed Codex at all three repositories in the same environment. - Application logic such as data models, network calls, validation, and business rules is portable across Swift and Kotlin, and Codex translated iOS implementations into equivalent Android code. - Concrete examples gave Codex far more context than natural-language descriptions alone, so the team achieved cross-platform development through translation rather than shared abstractions. ### Closing takeaway The authors conclude that Codex made manual coding far less central, but it did not remove the need for humans who understand system constraints, architecture, and long-term product plans. Their advice is to set up Codex in a context-rich environment that reflects how the team builds, and then treat its output like a teammate's.

OpenAI2024-02-143 min readCurated summary

Video generation models as world simulators

Sora, OpenAI's video generation model, shows that scaling diffusion transformers on video is a promising route to general-purpose world simulators. The model is trained jointly on videos and images of varying durations, resolutions, and aspect ratios, using a unified representation of spacetime patches in a compressed latent space. It can generate up to a minute of high-fidelity video and displays emergent simulation abilities such as 3D consistency and object permanence, though it still has clear physical limitations. The report describes the approach and capabilities but omits model and implementation details. ## Turning Visual Data into Patches - Inspired by LLMs, which unify diverse text through tokens, Sora uses visual patches as its equivalent unit for images and video. - A video compression network first maps raw video to a lower-dimensional latent space, compressed both temporally and spatially, along with a matching decoder that maps latents back to pixels. - Spacetime patches extracted from these latents serve as transformer tokens. Images are handled as single-frame videos. ## Diffusion Transformer Architecture - Sora is a diffusion transformer trained to predict the original clean patches from noisy input patches and conditioning information such as text. - Sample quality improves markedly as training compute increases, with fixed seeds and inputs used for comparison. ## Native Size Training - Instead of resizing, cropping, or trimming videos to a standard size, Sora trains on data at its native resolution and aspect ratio. - This allows sampling at 1920x1080 (widescreen), 1080x1920 (vertical), and anything in between, and lets content be prototyped at low resolution before full-resolution generation with the same model. - Training on native aspect ratios improves framing. A model trained on square crops often cut subjects out of view, while Sora's framing stays intact. ## Captioning and Prompt Understanding - Following DALL·E 3, a highly descriptive captioner generates captions for the training videos, which improves text fidelity and overall quality. - GPT expands short user prompts into detailed captions before they reach the video model. ## Prompting with Images and Video - Beyond text-to-video, Sora accepts images and videos as input, enabling animation of static images (including DALL·E images), forward and backward video extension, and seamless looping. - Video-to-video editing uses SDEdit to restyle environments zero-shot. - Interpolating between two input videos creates transitions between clips with different subjects and compositions. - Image generation is handled by arranging Gaussian noise patches in a single-frame grid, supporting resolutions up to 2048x2048. ## Emergent Simulation Capabilities These behaviors arise from scale alone, with no explicit 3D or object-level inductive biases: - **3D consistency:** People and scene elements move coherently through space during dynamic camera motion. - **Long-range coherence and object permanence:** People and objects persist through occlusion and leaving the frame, and characters keep their appearance across multiple shots in one sample. - **Interacting with the world:** Actions leave lasting effects, such as paint strokes on a canvas or bite marks on a burger. - **Simulating digital worlds:** Sora can control a basic Minecraft policy while rendering the game world in high fidelity, elicited zero-shot through captions. ## Limitations - Physics is often inaccurate. For example, glass shattering is not modeled correctly. - Some interactions, like eating, don't always change object state correctly. - Long samples can develop incoherence, and objects can appear spontaneously.