PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/System Design/OpenAI

Design a GPU credit allocation service

Last updated: Mar 29, 2026

Quick Overview

This question evaluates system design proficiency in distributed resource accounting, real-time quota enforcement, billing models, idempotency, and observability for multi-tenant GPU platforms, and falls under the System Design category.

  • hard
  • OpenAI
  • System Design
  • Software Engineer

Design a GPU credit allocation service

Company: OpenAI

Role: Software Engineer

Category: System Design

Difficulty: hard

Interview Round: Technical Screen

Design a GPU credit allocation service for a multi-tenant platform where orgs receive monthly GPU credits to run jobs. Define APIs to issue, transfer, and spend credits; enforce budgets and rate limits in real time under concurrency; and integrate with a job scheduler to admit or reject workloads based on available credits. Address prepaid vs postpaid models, per-user/project quotas, idempotency, prevention of overspend, and audit logging/reporting. Discuss data model, consistency model, failure recovery, scaling (partitioning, caching), and observability/alerting.

Quick Answer: This question evaluates system design proficiency in distributed resource accounting, real-time quota enforcement, billing models, idempotency, and observability for multi-tenant GPU platforms, and falls under the System Design category.

Related Interview Questions

  • Design a Distributed Crossword Solver - OpenAI (hard)
  • Design a Distributed Rate Limiter - OpenAI
  • Design a Distributed Crossword Solver - OpenAI (medium)
  • Design Mobile Model Usage Quotas - OpenAI (medium)
  • Design a Slack-Like Messaging System - OpenAI (medium)
OpenAI logo
OpenAI
Jul 31, 2025, 12:00 AM
Software Engineer
Technical Screen
System Design
17
0

Design a Multi‑Tenant GPU Credit Allocation Service

Context

You are designing a multi-tenant platform where organizations run GPU jobs. Each organization receives monthly GPU credits that are consumed as jobs run. The system must expose APIs to issue, transfer, and spend credits; enforce budgets and rate limits in real time; and integrate with a job scheduler to admit or reject workloads based on available credits.

Assume credits are the unit of spend (e.g., 1 credit = $0.01 of GPU time) and that different GPU types have different prices (credits per GPU-minute). Jobs may be submitted by users to projects within an org. The platform should support prepaid and postpaid billing models.

Requirements

Design a service that:

  1. Defines APIs to:
    • Issue and expire monthly credits.
    • Transfer credits between org, project, and user accounts.
    • Reserve, spend, and refund credits tied to workloads.
    • Query balances, budgets, and audit logs.
  2. Enforces budgets, quotas, and rate limits in real time under concurrency.
  3. Integrates with a job scheduler to admit/reject jobs based on available credits and quotas.
  4. Supports prepaid vs. postpaid models and per-user/project quotas.
  5. Ensures idempotency, prevents overspend, and provides audit logging/reporting.
  6. Addresses data model, consistency model, failure recovery, scaling (partitioning, caching), and observability/alerting.

Make minimal reasonable assumptions where unspecified, and call them out.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More System Design•More OpenAI•More Software Engineer•OpenAI Software Engineer•OpenAI System Design•Software Engineer System Design
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.