Design Storage and Delivery for Images Generated Inside ChatGPT

Last updated: November 29, 2026

Quick Overview

Design how images produced by ChatGPT's image generation are stored, served quickly to the user who created them, shared by link, and deleted with the conversation.

OpenAI
System Design
Software Engineer
OpenAI
November 29, 2026
Software Engineer
Phone Screen
System Design
Easy

0

0

0 solved


Design how images produced by ChatGPT's image generation are stored, served quickly to the user who created them, shared by link, and deleted with the conversation.

Image generation in ChatGPT drove sudden surges of traffic, and each output must be stored privately and served fast across the world. A phone screen version checks object storage, signed URLs, CDN caching and lifecycle management.

What the Interviewer Expects
  • Store generated images in object storage with references in the conversation
  • Serve private images through short-lived signed URLs and a CDN
  • Generate thumbnails or resized variants for the UI
  • Support sharing via public links and revocation
  • Delete images when conversations or accounts are deleted
Key Topics to Cover
object storage
CDN
signed URLs
lifecycle policies
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle a viral shared image getting millions of views?
  • How would you cache a private image at the CDN without leaking it?
  • What changes when the user edits an image and wants the version history?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • After generation, the image appears in the chat within a second of completion.
  • Only the owner (and workspace admins per policy) can view, unless shared.
  • Shared links are public until revoked.
  • ...
High-Level Design
  • Image worker writes the PNG to object storage at a random, non-guessable key, plus WebP variants at smaller sizes.
  • Media table `(image_id, owner_id, conversation_id, key, variants, shared)...

Submit Your Answer
Markdown supported