Decisions API is in public beta

(developers.openai.com)

152 points | by chiefstorm 5 hours ago

23 comments

  • simonw 3 hours ago

      curl https://api.openai.com/v1/decisions \
        -H "Authorization: Bearer $(llm keys get openai)" \
        -H "Content-Type: application/json" \
        --data '
      {
        "model": "gpt-6-luna",
        "input": [{
          "role": "user",
          "content": [
            {"type": "input_text", "text": "I am angry about the new product feature"}
          ]
        }],
        "questions": [{
          "type": "predicate",
          "name": "complaint",
          "instructions": "Is this a complaint?"
        }, {
          "type": "predicate",
          "name": "compliment",
          "instructions": "Is this a compliment?"
        }]
      }'
    
    Returned:

      {
        "model": "gpt-6-luna",
        "answers": [
          {
            "type": "predicate",
            "name": "complaint",
            "probability": 0.91
          },
          {
            "type": "predicate",
            "name": "compliment",
            "probability": 0.06
          }
        ],
        "usage": {
          "input_tokens": 310,
          "input_tokens_details": {
            "cached_tokens": 0,
            "cache_write_tokens": 0
          },
          "output_tokens": 0,
          "output_tokens_details": {
            "reasoning_tokens": 0
          },
          "total_tokens": 310
        }
      }
    
    That https://api.openai.com/v1/decisions endpoint is notable because usually when OpenAI define an endpoint like that it ends up as a defecto standard for other providers.

    (I turned this all into a new llm plugin: https://github.com/simonw/llm-openai-decisions)

    • chupchap 38 minutes ago
      How is this different from the categorisation models from ML era?
      • sethaurus 23 minutes ago
        The pitch is that it's a fully-general model, so you can skip training/tuning/selecting a particular categorisation model for each task.
        • chupchap 13 minutes ago
          That's great! So someone finally built the zero-shot model from the sales decks of 2015 =D
  • TSiege 3 hours ago
    The response to Jev should be the nail in the coffin over whether or not the AI business is a commodity market.

    Out of no where Jev appeared as the next round of the price wars. Jev showed the value of System One models. A fast yes/no/confidence score not only is cheaper but also often all people want. Open source versions flood hugging face and now the big players are giving up a potentially big driver of output tokens to keep customers and race to the bottom price wise.

    If I were OpenAI or Anthropic I’d be racing to make their products as sticky as possible bc ppl will flock to what’s cheapest otherwise.

    • tripleee 3 hours ago
      It takes me all of 2 keypresses to switch models. I don't know of a less sticky product
      • schleck8 2 hours ago
        You've not seen how long it takes to switch an enterprise claude subscription to github copilot or vice versa with all the compliance and shareholders
        • afavour 3 minutes ago
          Comes to something then OpenAI’s best hope is to essentially become the next Oracle.
        • skissane 29 minutes ago
          A lot of places already subscribe to both. Indeed, in large enterprises it isn’t uncommon to simultaneously subscribe to Copilot, Claude, OpenAI, Cursor, AWS Bedrock, Gemini, etc — you might subscribe to different ones for different teams/projects/employees/etc, but often the approval by legal/IT/etc is generic not scoped to whoever is using it right now

          If you are charged based on usage, you can “soft switch” between them really quickly.

        • htrp 1 hour ago
          isn't that a problem for large enterprises?
          • mikestorrent 1 hour ago
            It's a problem for the security, legal, and IT teams, but not that much for developers, unless they get really particular about their harness. On the other hand, these are the high dollar value accounts that providers want to keep; but if there's no reason to avoid switching, this market really will feel like a utility market (i.e. it'll be like switching ISPs or cell phone providers - annoying but fungible).

            The AI companies want to differentiate and become something more than a commodity, even if it's as critical as a utility is.

          • judge2020 1 hour ago
            Enterprises tend to be your largest customers. Especially when current stock values for tech companies are majority predicated on AI becoming a staple in everyday life.
        • nimchimpsky 12 minutes ago
          [dead]
      • johnfn 2 hours ago
        This implies you didn’t run any sort of evaluations? It is not realistic for any sort of production use case to do this.
        • shermantanktop 1 hour ago
          Agree. Switching models with a keypress is for developer coding.

          Jev and this decisions api are mostly useful for inference at scale in a workload where cost and latency matter… and that’s where evals become crucial. Could coding tools use it? Sure, but that’s probably a special case.

      • st3fan 2 hours ago
        If you are a business dealing with with anything remotely sensitive then this is not so easy and you are basically forced to do business with a big player.
    • gobdovan 3 hours ago
      > If I were OpenAI or Anthropic I’d be racing to make their products as sticky as possible bc ppl will flock to what’s cheapest otherwise.

      Hopefully people will flock to whatever product is making its mission to be commodity and the easiest to replace. Really don't want another free ingress, 100$/TB egress Cloud situation.

    • draw_down 1 hour ago
      [dead]
  • Topfi 3 hours ago
    Ran my decisions evals (still rudimentary, less than 600 calls (UI component selection, chat charting, tag selection, PKM stuff)) on this via OpenRouter against Jev and Mercury Decide. Jev because it has replaced my mt0 efforts by sheer force of affordability (more importantly, the limits running on a MacBook Neo bring even after vocab pruning and quant insanity) and Mercury Decide because I do like dLLM efforts (and I'd like to use fewer model providers if possible).

    Preliminary of course, but seems to be slower than Jev and similar to Mercury Decides latency, though not in growing linearly with the amount of input (346ms p50 and 860ms p95, (Mercury Decide also had some extremes up to 1,3s that were around 800ms today, likely preview related, it scaled far more consistently with size)), less "confidence" concerning my ambiguous UI component and response shape specific tasks (have very specific use cases for these models which Luna often fails to meet at 0.6 and lower), lead to a few failed calls which neither competitor had (4 vs 0 for both) and measured more expensive than Jev to boot by a factor of 3,1 times on average (Mercury Decide pricing I think is still unknown so no numbers there).

    Basically slower, more expensive and less capable than Jev, roughly on par with Mercury Decide (provided, in my insane set of use cases and requirements that are a PKM focused Firefox fork with multiple infinite canvas using decision models to improve information synthesis from multiple sources).

    Seems a bit undercooked overall and I'd rather frontier-labs don't jump on bandwagons until they can offer something competitive in price, performance or both. In fairness, though, I have yet to test image input, maybe that makes all the difference. Also, again, mine is unlikely to reflect everyones use case, so interested in seeing others results.

    Didn't comment at the time, but having read up on Devday after the fact, there seems to have been a lot of that going around. Notion and GDocs, Jev, Muse, most seems to have been cloned from existing competitors (and despite infinite, ultrafast, ultra code tokens with unsandboxed Mega Astra not that amazing to boot).

    Prefer less announcements, but focused and at a higher quality. Considering ChatGPT Atlas (their Chromium based browser) and its insanely fast death, I'd be skeptical to put much into any of these even if they were in some way an improvement over what is out there. Maybe focus on a fresh pre-train and some sandboxing improvements.

    • Shank 2 hours ago
      Well, Jev doesn't meet any real compliance requirements but OpenAI's models do. So even if Jev is faster, any customers with compliance needs will obviously pick OpenAI because they can't pick Jev out of necessity.
      • jasonjmcghee 1 hour ago
        Or even just- they've already procured OpenAI.

        That's a big motivator.

    • scosman 2 hours ago
      They can follow up in N weeks with a better one. Even if your eval is true and it’s worse, planting a flag makes sense. Some people will just use OAI because it’s OAI. No one will remember their week 2 evals in a few months.
    • oh_no 3 hours ago
      I think releasing something like this makes sense even if it's underbaked, it's still very cheap, and if you have existing enterprise OpenAI relationship it's a lot easier to onboard something like this than set up a new Jev contract.

      How these models play out is an open question but existing provider contracts and T&C are important for enterprise.

      • Topfi 3 hours ago
        Good point, commercially, being an existing partner is always easier for adoption. Heck, why I'd like to get Mercury Decide to replace Jev myself, rather than one than two to work with.

        Still surprised they even leveraged Luna for this. Given their resources in data, compute and manpower, would training a decision model from scratch take that much longer to not make sense given the cost, compute and performance advantages that would likely provide?

        3 times more expensive at twice the latency with lower performance is a tough sell, though yeah, prior relationships will likely smooth some of those deficiencies over.

        • oh_no 1 hour ago
          yeah and this isn't a long term solution, stand this up, see what value you get out of it, and in a few months you cans witch to whatever the best decision model is
        • mrkn1 1 hour ago
          [flagged]
    • nostrebored 3 hours ago
      i would be shocked if luna decides is less generally capable than jev. jev has failed to understand any novel domain I've given it. i have found that i use it only when "some data is better than no data"
      • Topfi 2 hours ago
        Very task-dependent of course and mine are unique to say the least, so could see Luna being better in certain domains, even if my measurements have not shown that yet, happy for anyone to show otherwise.

        For what it's worth, ran every task twice on each model, most were for some UI component synthesis and charting insanity that is a bit hard to explain, but some were simple tag selection, basic noul at threshold 60%. Essentially, whether to use the provided tag given the title of a browser tile:

          1. Title: "Mortgage calculator: estimate your monthly payment (Bankrate)"
             Tag:   "house hunting"
             Jev:   0.69 (yes), 0.72 (yes)
             Luna:  0.21 (no),  0.21 (no)
        
          2. Title: "S&P 500 index: live chart and news (Bloomberg)"
             Tag:   "investing"
             Jev:   0.91 (yes), 0.90 (yes)
             Luna:  0.56 (no),  0.56 (no)
        
        Of course, tags can be a bit subjective, but in these cases, I'd argue the values provided by Jev were far more representative of my subjective assessment over Lunas. If SnP stuff on Bloomberg isn't investing, nothing is.

        Goal for tagging is mainly a near instant, over writable, sane default provided to users in the background. Resolve the whole "I love using Notion/Obsidian/PKM software of your choice but spend 80% of my time just thinking about the ideal tag before starting to read" issue. Lunas output is not really helpful here.

  • ashu1461 38 minutes ago
    If we compare this with using the older solution of writing a prompt to find out the answer of the classification

    - Cost : It is the same for both scenarios $0.10 per 1M tokens

    - Speed : decisions is 10x faster than responses API

    - Quality : I guess if we compare with luna which is a pretty good model it itself, both will be at par

    So essentially it has to do more with speed vs any other factor.

    • rockinghigh 17 minutes ago
      With decisions models, you don't pay for output tokens. Also this OpenAI API is multimodal.
  • nico 56 minutes ago
    Just going to drop this here: https://jeffyclassify.com/

    Open source classifier models you can run and train locally on CPU

  • sidcool 3 hours ago
    Jev really shook up the industry. This seems obvious in hindsight
    • OutOfHere 2 hours ago
      All this is for extraordinarily simple decisions. Real world problems often are a lot more complex requiring highly structured outputs covering many output attributes and substructures, for which a conventional structured output via a documented schema is better. If instead you make twenty independent calls to a decisions API, you lose coherence among your twenty decisions. I think any hype surrounding decisions will be forgotten soon enough.
      • devin 59 minutes ago
        I don’t think so. People want more determinism and this is just another step in that direction.
  • jasonjmcghee 1 hour ago
    Different APIs for different things reminds me of the early auto-complete vs instruction apis.

    Will this get folded into models / post training pipelines at some point and make them better at calibrated outputs?

  • mritchie712 3 hours ago
    it already supports image inputs, which was the first big gap I found in Jev.
  • mohsen1 3 hours ago
    Since it is fast and understand images, I wonder if it can play video games. I have a harness setup for the LLM play EA FC but even the fastest LLMs are too slow for it. I need to try this with Decisions API
    • binlog 3 hours ago
      One of the examples on the docs page is it playing a video game. Doubt it’ll be able to run anything complex though. You’re simply trading accuracy for speed.
  • mrkn1 1 hour ago
    If you rather run your decision model on your CPU, check gutsy [0]

    [0] - https://news.ycombinator.com/item?id=49976996

  • swader999 1 hour ago
    I wonder why the decision routing isn't just integrated into all models in addition to this stand alone.
  • stillatit 2 hours ago
    One difference between Decisions and Jev (for now) seems to be that Decisions can take image inputs, which is a pretty common need.
    • chr15m 1 hour ago
      Clef can also do this.
  • MiroslavPokorny 1 hour ago
    What value is there in knowing if a can has a dent ?
    • mikeryan 56 minutes ago
      Manufacturing quality control. There are automated tools to pull things like dented cans off a line.
  • esafak 4 hours ago
    You knew it was going to happen! Benchmarks or it didn't happen.
  • Imustaskforhelp 5 hours ago
    This rather didn't take long for OAI to create*, I remember people giving opinions and discussions that it won't take too long and that openAI should do it[0], so looks like they were right.

    Interesting to see where all this leads us and if other major labs follow suit

    Edit: decisions voice looks really interesting as well[1]

    [0]: https://news.ycombinator.com/item?id=49802161: OpenAI is well positioned to fast-follow Jev

    [1]: https://developers.openai.com/api/docs/guides/decisions-voic...

  • waterTanuki 1 hour ago
    > The tulip became a luxury item and many varieties were introduced. The varieties were classified and the most sought-after, prized tulips were the streaked tulips, especially yellow or white streaks on a red or purple background. These flame-like tulips were highly sought after. Interestingly, the streaks or “flames” of the tulip petals were caused by a virus. The virus is the tulip breaking virus, or tulip mosaic virus.

    Source: https://www.canr.msu.edu/news/tulip_mania_the_history_of_the...

    What's old is new.

  • OutOfHere 2 hours ago
    v3.26.0 of the openai Python SDK covers its use. Those already using the SDK don't need to make explicit HTTP calls.
  • lab14 4 hours ago
    How is the pricing vs Jev?
    • jerrygenser 3 hours ago
      $0.10/mm input vs. $0.042/mm input. Both free output.
    • Topfi 3 hours ago
      In the same bench a full Jev run cost USD 0.0192,- vs Luna at USD 0.06,-, both via OpenRouter today. So about 3x in favour of Jev.
  • peterson_lock 3 hours ago
    Can we use this through subscription?
    • OutOfHere 2 hours ago
      No. The OpenAI subscription has never covered any API calls. The closest you can probably use via subscription is to get structured outputs via Codex.
  • hcentelles 1 hour ago
    [dead]
  • juanfranpaez 3 hours ago
    [flagged]
  • zane_shu 4 hours ago
    [flagged]
  • dvt 3 hours ago
    I genuinely do not understand why anyone would pay OpenAI for this. Running something comparable to Jev is pretty trivial. The whole point of paying for ChatGPT is because OpenAI has a bunch of warehouses that can run a zillion-parameter model.

    Running a decision model is way easier and much cheaper. Are they really just trying to capitalize on the hype here? It feels like they really have absolutely zero moat.

    • mediaman 3 hours ago
      Why would I run it myself? It's $0.10 per million tokens. Dirt cheap. (Jev is even cheaper.)

      You could ask the same question about why anyone would rent a VPS. I can just run my own hardware, it's just a computer!

      Buy vs rent is not just about what's possible, it's about what's economic.

      • lelandfe 1 hour ago
        For one, to remove network RTT
      • dvt 3 hours ago
        Yeah and OAI is twice as expensive as Jev, which is kind of my point. And more expensive than open models, which you don't necessarily have to host yourself. Pure bandwaggoning.
    • tmhall 3 hours ago
      For my use case it will cost like $11 a month and we already have OpenaAI keys and accounts with billing in place. I don't want to run my own model infra and I don't want to get permission to set up an account with typesafe.ai
    • csharpminor 3 hours ago
      If you're in an enterprise that already has a procurement agreement with OpenAI, this means you don't have to onboard another vendor. Bucket platform strategy.
    • simonw 3 hours ago
      Depends on the quality of the results. These things are driven by text prompts. If it turns out the OpenAI one returns better quality results than open weight variants they'll be rewarded by the market.

      Anyone using a decision model like this is going to have to spin up their own evals - these are far harder to vibe-check than regular text output LLMs.

    • TSiege 3 hours ago
      There isn’t a moat in the sense of self hosting but you need a reason for people who don’t want that to stay on your platform. Customers save time and effort managing payments easier this way. However it’s a race to the bottom price wise.

      Going to be all about branding and platform stickiness for OpenAI to make investors and creditors whole.

    • drdexebtjl 2 hours ago
      My opinion is similar, but for a different reason: every use case for decision models that I can think of, I don’t want the model to change in X weeks when the lab decides to “improve it” or “make it safer”.
    • super256 3 hours ago
      Existing enterprise contracts? Data retention contracts (some have zero data retention contracts)? Staying with a single provider because it's easier to have everything in one place?

      There are probably a lot more reasons.

    • jcims 3 hours ago
      If you work for a company that has a 3 to 6 month onboarding period for new vendors and a lifetime commitment to maintain a whole bunch of vendor management horseshit for as long as that relationship exists, it makes a ton of sense.

      Add in a bunch of model governance and oversight for anything you train yourself and it’s pretty much a slam dunk deal.