{
  "apiVersion": "1.1",
  "schemaVersion": 1,
  "engineVersion": 1,
  "asOf": "2026-11-24",
  "currency": "USD",
  "pair": {
    "slug": "openai-vs-baseten",
    "canonicalSlug": "baseten-vs-openai",
    "isCrossCategory": false,
    "categoryA": {
      "id": "llm-apis",
      "name": "LLM APIs"
    },
    "categoryB": {
      "id": "llm-apis",
      "name": "LLM APIs"
    }
  },
  "citationUrl": "https://costroast.com/vs/baseten-vs-openai?usage=%7B%22cachedTokens%22%3A5000000%2C%22inputTokens%22%3A10000000%2C%22outputTokens%22%3A2000000%7D",
  "canonicalUrl": "https://costroast.com/vs/baseten-vs-openai",
  "markdownUrl": "https://costroast.com/vs/baseten-vs-openai.md?usage=%7B%22cachedTokens%22%3A5000000%2C%22inputTokens%22%3A10000000%2C%22outputTokens%22%3A2000000%7D",
  "calculationUrl": "https://costroast.com/api/v1/calculate?a=openai&b=baseten&usage=%7B%22cachedTokens%22%3A5000000%2C%22inputTokens%22%3A10000000%2C%22outputTokens%22%3A2000000%7D",
  "verdict": {
    "summary": "Baseten costs $0.43 less per month than OpenAI API at this workload. This compares modeled charges, not overall product quality.",
    "cheaperProduct": "B",
    "costDeltaMonthlyUsd": 0.43,
    "costPercentDelta": 14,
    "crossoverSummary": null
  },
  "crossCategoryBridge": null,
  "productA": {
    "id": "openai",
    "name": "OpenAI API",
    "planId": "openai-gpt-4o-mini",
    "planName": "GPT-4o mini",
    "eligible": true,
    "monthlyCostUsd": 3.08,
    "billingInterval": "month",
    "annualCommitmentUsd": null,
    "sourceUrl": "https://developers.openai.com/api/docs/models/gpt-4o-mini",
    "checkedAt": "2026-11-09",
    "warnings": [
      "Deprecated. API shutdown is scheduled for January 14, 2027; this is a current estimate only until that shutdown.",
      "Standard shared API, public USD token rates. Input, output and cachedTokens are separate billed token counts; cachedTokens means actual cache hits, not all repeated text. No additional cache-write fee applies to these earlier models.",
      "128,000-token context window and 16,384-token maximum output per request. Account usage tiers and request/token rate limits are not inferred from monthly token totals.",
      "No annual commitment or monthly subscription is included. API usage is separate from ChatGPT subscriptions; account credit funding is not an extra token charge.",
      "New API accounts use prepaid credits with a USD 5 minimum initial purchase. Purchased credits fund usage, expire after one year and are generally non-refundable. Auto-reload is enabled by default during setup and can be disabled; its minimum purchase is USD 5. This estimate measures consumed tokens, not cash top-ups or expired unused credits."
    ],
    "exclusions": [
      "Fine-tuning, Batch or priority pricing, audio/realtime APIs, image generation, built-in tool call/storage fees and optional paid services.",
      "Per-request context/output limits and account access/rate-limit eligibility are outside this monthly token estimate. Image inputs must already be converted to vendor-billed input tokens; image counts alone are not modeled.",
      "Taxes, local-currency invoices, contract discounts and FedRAMP pricing are outside the standard public USD API scope."
    ],
    "usage": {
      "inputTokens": 10000000,
      "outputTokens": 2000000,
      "cachedTokens": 5000000
    },
    "workloadFields": [
      {
        "id": "inputTokens",
        "label": "Standard input tokens",
        "unit": "tokens / month",
        "min": 0,
        "max": 10000000000,
        "step": 100000,
        "integer": true,
        "defaultValue": 10000000
      },
      {
        "id": "outputTokens",
        "label": "Output tokens",
        "unit": "tokens / month",
        "min": 0,
        "max": 2000000000,
        "step": 50000,
        "integer": true,
        "defaultValue": 2000000
      },
      {
        "id": "cachedTokens",
        "label": "Cached prompt tokens",
        "unit": "tokens / month",
        "min": 0,
        "max": 10000000000,
        "step": 100000,
        "integer": true,
        "defaultValue": 5000000
      }
    ],
    "scope": "Commercial API inference for generative language and reasoning models. Shared multi-tenant API endpoints, standard rate limits, and pay-as-you-go billing without committed use discounts or provisioned throughput. Fine-tuning, batch API discounts, embeddings, and audio generation are excluded.",
    "lineItems": [
      {
        "label": "Monthly subscription",
        "quantity": 1,
        "unit": "month",
        "rate": 0,
        "amount": 0
      },
      {
        "label": "Standard input tokens",
        "quantity": 10,
        "unit": "million tokens",
        "rate": 0.15,
        "amount": 1.5
      },
      {
        "label": "Output completion tokens",
        "quantity": 2,
        "unit": "million tokens",
        "rate": 0.6,
        "amount": 1.2
      },
      {
        "label": "Cached prompt tokens",
        "quantity": 5,
        "unit": "million tokens",
        "rate": 0.075,
        "amount": 0.375
      }
    ],
    "priceVersionId": "openai-gpt-4o-mini:7ac3612173d69a7982fa5a4913644e3a279fd9e4d7b780b177fab2219cad9080",
    "modelHash": "867c53d3500d86393ef988e54ad446bb0a9589f5e88527ed896ebd6fdca51d11",
    "modelSnapshot": {
      "schemaVersion": 1,
      "engineVersion": 1,
      "category": {
        "id": "llm-apis",
        "name": "LLM APIs",
        "description": "Compare token pricing, prompt caching savings, and inference costs across foundation models.",
        "scope": "Commercial API inference for generative language and reasoning models. Shared multi-tenant API endpoints, standard rate limits, and pay-as-you-go billing without committed use discounts or provisioned throughput. Fine-tuning, batch API discounts, embeddings, and audio generation are excluded.",
        "primaryField": "inputTokens",
        "fields": [
          {
            "id": "inputTokens",
            "label": "Standard input tokens",
            "unit": "tokens / month",
            "description": "Uncached input prompt tokens processed by the model API.",
            "defaultValue": 10000000,
            "min": 0,
            "max": 10000000000,
            "step": 100000,
            "integer": true
          },
          {
            "id": "outputTokens",
            "label": "Output tokens",
            "unit": "tokens / month",
            "description": "Generated completion and reasoning tokens returned by the model API.",
            "defaultValue": 2000000,
            "min": 0,
            "max": 2000000000,
            "step": 50000,
            "integer": true
          },
          {
            "id": "cachedTokens",
            "label": "Cached prompt tokens",
            "unit": "tokens / month",
            "description": "Prompt tokens read from context cache (system prompts, docs).",
            "defaultValue": 5000000,
            "min": 0,
            "max": 10000000000,
            "step": 100000,
            "integer": true
          }
        ],
        "capabilities": [
          {
            "id": "prompt_caching",
            "label": "Prompt caching",
            "description": "Automatic or explicit discounts for cached prompt context."
          },
          {
            "id": "vision_multimodal",
            "label": "Multimodal / Vision",
            "description": "Native support for processing images and documents in prompts."
          },
          {
            "id": "structured_outputs",
            "label": "Structured JSON",
            "description": "Guaranteed valid JSON schema mode or constrained decoding."
          },
          {
            "id": "reasoning",
            "label": "Reasoning model",
            "description": "Internal chain-of-thought or reasoning token generation."
          }
        ],
        "presets": [
          {
            "id": "chatbot_rag",
            "name": "RAG Chatbot",
            "description": "Conversational assistant with injected knowledge base context",
            "usage": {
              "cachedTokens": 15000000,
              "inputTokens": 25000000,
              "outputTokens": 5000000
            }
          },
          {
            "id": "agentic_workflow",
            "name": "Autonomous Agent",
            "description": "Multi-step tool calling, iterative planning, and document synthesis",
            "usage": {
              "cachedTokens": 30000000,
              "inputTokens": 50000000,
              "outputTokens": 15000000
            }
          },
          {
            "id": "bulk_classification",
            "name": "High-Volume Extraction",
            "description": "Structured data extraction and entity tagging across records",
            "usage": {
              "cachedTokens": 60000000,
              "inputTokens": 100000000,
              "outputTokens": 2000000
            }
          }
        ]
      },
      "product": {
        "id": "openai",
        "name": "OpenAI API",
        "categoryId": "llm-apis",
        "vendorId": "openai",
        "tagline": "Industry-standard foundation models with automatic prompt caching and vision.",
        "website": "https://openai.com/api/",
        "pricingUrl": "https://openai.com/api/pricing/",
        "color": "#10a37f",
        "plans": [
          {
            "id": "openai-gpt-4o-mini",
            "name": "GPT-4o mini",
            "billing": {
              "currency": "USD",
              "interval": "month"
            },
            "pricingStatus": "published",
            "basePrice": 0,
            "meters": [
              {
                "label": "Standard input tokens",
                "quantity": {
                  "field": "inputTokens"
                },
                "unit": "million tokens",
                "included": 0,
                "unitSize": 1000000,
                "rate": 0.15
              },
              {
                "label": "Output completion tokens",
                "quantity": {
                  "field": "outputTokens"
                },
                "unit": "million tokens",
                "included": 0,
                "unitSize": 1000000,
                "rate": 0.6
              },
              {
                "label": "Cached prompt tokens",
                "quantity": {
                  "field": "cachedTokens"
                },
                "unit": "million tokens",
                "included": 0,
                "unitSize": 1000000,
                "rate": 0.075
              }
            ],
            "limits": [],
            "warnings": [
              "Deprecated. API shutdown is scheduled for January 14, 2027; this is a current estimate only until that shutdown.",
              "Standard shared API, public USD token rates. Input, output and cachedTokens are separate billed token counts; cachedTokens means actual cache hits, not all repeated text. No additional cache-write fee applies to these earlier models.",
              "128,000-token context window and 16,384-token maximum output per request. Account usage tiers and request/token rate limits are not inferred from monthly token totals.",
              "No annual commitment or monthly subscription is included. API usage is separate from ChatGPT subscriptions; account credit funding is not an extra token charge.",
              "New API accounts use prepaid credits with a USD 5 minimum initial purchase. Purchased credits fund usage, expire after one year and are generally non-refundable. Auto-reload is enabled by default during setup and can be disabled; its minimum purchase is USD 5. This estimate measures consumed tokens, not cash top-ups or expired unused credits."
            ],
            "exclusions": [
              "Fine-tuning, Batch or priority pricing, audio/realtime APIs, image generation, built-in tool call/storage fees and optional paid services.",
              "Per-request context/output limits and account access/rate-limit eligibility are outside this monthly token estimate. Image inputs must already be converted to vendor-billed input tokens; image counts alone are not modeled.",
              "Taxes, local-currency invoices, contract discounts and FedRAMP pricing are outside the standard public USD API scope."
            ],
            "source": {
              "url": "https://developers.openai.com/api/docs/models/gpt-4o-mini",
              "checkedAt": "2026-11-09",
              "title": "OpenAI GPT-4o mini model pricing and capabilities"
            },
            "capabilities": [
              "prompt_caching",
              "structured_outputs",
              "vision_multimodal"
            ]
          }
        ]
      }
    },
    "evidence": {
      "kind": "catalog_assertion",
      "observedAt": "2026-11-09",
      "sourceUrl": "https://developers.openai.com/api/docs/models/gpt-4o-mini"
    }
  },
  "productB": {
    "id": "baseten",
    "name": "Baseten",
    "planId": "baseten-glm-53-flash",
    "planName": "GLM-5.3-Flash — Model API",
    "eligible": true,
    "monthlyCostUsd": 2.65,
    "billingInterval": "month",
    "annualCommitmentUsd": null,
    "sourceUrl": "https://www.baseten.co/pricing/",
    "checkedAt": "2026-11-21",
    "warnings": [
      "Enter uncached input and cache reads separately. Model capabilities can differ at the same token count.",
      "Model API usage at public rates after starting credits are exhausted. New accounts are invoiced at month end or when usage exceeds $50. Established accounts can move to monthly invoicing."
    ],
    "exclusions": [
      "Taxes, negotiated discounts, credits, and optional add-ons are excluded.",
      "Batch, priority or region-restricted service, fine-tuning, tools, media generation and reserved GPU deployments are not modeled."
    ],
    "usage": {
      "inputTokens": 10000000,
      "outputTokens": 2000000,
      "cachedTokens": 5000000
    },
    "workloadFields": [
      {
        "id": "inputTokens",
        "label": "Standard input tokens",
        "unit": "tokens / month",
        "min": 0,
        "max": 10000000000,
        "step": 100000,
        "integer": true,
        "defaultValue": 10000000
      },
      {
        "id": "outputTokens",
        "label": "Output tokens",
        "unit": "tokens / month",
        "min": 0,
        "max": 2000000000,
        "step": 50000,
        "integer": true,
        "defaultValue": 2000000
      },
      {
        "id": "cachedTokens",
        "label": "Cached prompt tokens",
        "unit": "tokens / month",
        "min": 0,
        "max": 10000000000,
        "step": 100000,
        "integer": true,
        "defaultValue": 5000000
      }
    ],
    "scope": "Commercial API inference for generative language and reasoning models. Shared multi-tenant API endpoints, standard rate limits, and pay-as-you-go billing without committed use discounts or provisioned throughput. Fine-tuning, batch API discounts, embeddings, and audio generation are excluded.",
    "lineItems": [
      {
        "label": "Monthly subscription",
        "quantity": 1,
        "unit": "month",
        "rate": 0,
        "amount": 0
      },
      {
        "label": "Uncached input tokens",
        "quantity": 10,
        "unit": "million tokens",
        "rate": 0.15,
        "amount": 1.5
      },
      {
        "label": "Output tokens",
        "quantity": 2,
        "unit": "million tokens",
        "rate": 0.5,
        "amount": 1
      },
      {
        "label": "Cached input tokens",
        "quantity": 5,
        "unit": "million tokens",
        "rate": 0.03,
        "amount": 0.15
      }
    ],
    "priceVersionId": "ext-baseten-glm-53-flash-c5166466f1cc8fa7e0554f589cdd77f4a809614999cf5f14897f3766299cd63f",
    "modelHash": "4b358e22e5f69dc066fa2ea190a6def9982338457a040d9fe626e267ed6fc5ea",
    "modelSnapshot": {
      "schemaVersion": 1,
      "engineVersion": 1,
      "category": {
        "id": "llm-apis",
        "name": "LLM APIs",
        "description": "Compare token pricing, prompt caching savings, and inference costs across foundation models.",
        "scope": "Commercial API inference for generative language and reasoning models. Shared multi-tenant API endpoints, standard rate limits, and pay-as-you-go billing without committed use discounts or provisioned throughput. Fine-tuning, batch API discounts, embeddings, and audio generation are excluded.",
        "primaryField": "inputTokens",
        "fields": [
          {
            "id": "inputTokens",
            "label": "Standard input tokens",
            "unit": "tokens / month",
            "description": "Uncached input prompt tokens processed by the model API.",
            "defaultValue": 10000000,
            "min": 0,
            "max": 10000000000,
            "step": 100000,
            "integer": true
          },
          {
            "id": "outputTokens",
            "label": "Output tokens",
            "unit": "tokens / month",
            "description": "Generated completion and reasoning tokens returned by the model API.",
            "defaultValue": 2000000,
            "min": 0,
            "max": 2000000000,
            "step": 50000,
            "integer": true
          },
          {
            "id": "cachedTokens",
            "label": "Cached prompt tokens",
            "unit": "tokens / month",
            "description": "Prompt tokens read from context cache (system prompts, docs).",
            "defaultValue": 5000000,
            "min": 0,
            "max": 10000000000,
            "step": 100000,
            "integer": true
          }
        ],
        "capabilities": [
          {
            "id": "prompt_caching",
            "label": "Prompt caching",
            "description": "Automatic or explicit discounts for cached prompt context."
          },
          {
            "id": "vision_multimodal",
            "label": "Multimodal / Vision",
            "description": "Native support for processing images and documents in prompts."
          },
          {
            "id": "structured_outputs",
            "label": "Structured JSON",
            "description": "Guaranteed valid JSON schema mode or constrained decoding."
          },
          {
            "id": "reasoning",
            "label": "Reasoning model",
            "description": "Internal chain-of-thought or reasoning token generation."
          }
        ],
        "presets": [
          {
            "id": "chatbot_rag",
            "name": "RAG Chatbot",
            "description": "Conversational assistant with injected knowledge base context",
            "usage": {
              "cachedTokens": 15000000,
              "inputTokens": 25000000,
              "outputTokens": 5000000
            }
          },
          {
            "id": "agentic_workflow",
            "name": "Autonomous Agent",
            "description": "Multi-step tool calling, iterative planning, and document synthesis",
            "usage": {
              "cachedTokens": 30000000,
              "inputTokens": 50000000,
              "outputTokens": 15000000
            }
          },
          {
            "id": "bulk_classification",
            "name": "High-Volume Extraction",
            "description": "Structured data extraction and entity tagging across records",
            "usage": {
              "cachedTokens": 60000000,
              "inputTokens": 100000000,
              "outputTokens": 2000000
            }
          }
        ]
      },
      "product": {
        "id": "baseten",
        "name": "Baseten",
        "vendorId": "baseten",
        "categoryId": "llm-apis",
        "tagline": "Explore Baseten with source-reviewed pricing for the named plans below.",
        "website": "https://www.baseten.co/",
        "pricingUrl": "https://www.baseten.co/pricing/",
        "color": "#16a34a",
        "capabilities": [
          "prompt_caching"
        ],
        "plans": [
          {
            "id": "baseten-glm-53-flash",
            "name": "GLM-5.3-Flash — Model API",
            "basePrice": 0,
            "source": {
              "url": "https://www.baseten.co/pricing/",
              "title": "GLM-5.3-Flash — Model API — official per-million-token rates",
              "checkedAt": "2026-11-21"
            },
            "meters": [
              {
                "label": "Uncached input tokens",
                "quantity": {
                  "field": "inputTokens"
                },
                "included": 0,
                "rate": 0.15,
                "unitSize": 1000000,
                "unit": "million tokens"
              },
              {
                "label": "Output tokens",
                "quantity": {
                  "field": "outputTokens"
                },
                "included": 0,
                "rate": 0.5,
                "unitSize": 1000000,
                "unit": "million tokens"
              },
              {
                "label": "Cached input tokens",
                "quantity": {
                  "field": "cachedTokens"
                },
                "included": 0,
                "rate": 0.03,
                "unitSize": 1000000,
                "unit": "million tokens"
              }
            ],
            "limits": [],
            "warnings": [
              "Enter uncached input and cache reads separately. Model capabilities can differ at the same token count.",
              "Model API usage at public rates after starting credits are exhausted. New accounts are invoiced at month end or when usage exceeds $50. Established accounts can move to monthly invoicing."
            ],
            "exclusions": [
              "Taxes, negotiated discounts, credits, and optional add-ons are excluded.",
              "Batch, priority or region-restricted service, fine-tuning, tools, media generation and reserved GPU deployments are not modeled."
            ],
            "pricingStatus": "published",
            "billing": {
              "currency": "USD",
              "interval": "month"
            },
            "capabilities": [
              "prompt_caching"
            ]
          }
        ]
      }
    },
    "evidence": {
      "kind": "reviewed_static_schedule",
      "observedAt": "2026-11-21",
      "sourceUrl": "https://www.baseten.co/pricing/"
    }
  },
  "scenarios": [
    {
      "name": "RAG Chatbot",
      "description": "Conversational assistant with injected knowledge base context",
      "costA": 7.88,
      "costB": 6.7,
      "winner": "B"
    },
    {
      "name": "Autonomous Agent",
      "description": "Multi-step tool calling, iterative planning, and document synthesis",
      "costA": 18.75,
      "costB": 15.9,
      "winner": "B"
    },
    {
      "name": "High-Volume Extraction",
      "description": "Structured data extraction and entity tagging across records",
      "costA": 20.7,
      "costB": 17.8,
      "winner": "B"
    }
  ],
  "reproducibility": "Replay the selected public model snapshots with schema1/engine1 and the returned effective usage and asOf. This response is not a persisted historical receipt.",
  "calculationId": "be6a410bf687d904a9f006cf2a52ae89476aa5dda4e714c37064760141db64be"
}