# OpenAI Decisions API now available in AI Gateway

By Steven Van · 2026-10-07

The beta runs on gpt-6-luna and lets Netlify Functions classify, route, and score inputs without managing API keys.

Netlify Functions can now use the OpenAI SDK to classify, route, and score inputs through [Netlify](<https://creatorstoolbox.com/tools/netlify>)’s AI Gateway without configuration or API key management. The Decisions API is in beta and currently runs on gpt-6-luna.

## Answers from declared choices

Instead of generating prose, the API answers questions developers define about an input. For choice questions, the answer is always one of the declared options, so a Function can branch directly on the result without parsing generated text.

## Routing return requests

The [announcement](<https://www.netlify.com/changelog/openai-decisions-api-ai-gateway/>) includes an online store example that sorts return requests into four reasons: wrong size, defective, not as described, or changed mind. A request describing a broken jacket zipper returns “defective”, alongside probabilities for each option and a confidence score.

The selected reason can determine whether to send a prepaid label or offer an exchange. The confidence score can help route unclear requests to a support team.

![Netlify](<https://www.google.com/s2/favicons?domain=netlify.com&sz=128>)

Netlify

Lightning-fast web platform for deploying, hosting, and scaling modern sites — one-click deploys from Git or any modern AI builder.

[View Netlify →](<https://creatorstoolbox.com/tools/netlify>)

[Original source](<https://www.netlify.com/changelog/openai-decisions-api-ai-gateway/>)

[Read OpenAI Decisions API now available in AI Gateway on Creators Toolbox](<https://creatorstoolbox.com/blog/netlify-openai-decisions-api-now-available-in-ai-gateway>)

---
Canonical source: https://creatorstoolbox.com/blog/netlify-openai-decisions-api-now-available-in-ai-gateway
