Feature Request: Machine-Readable Model Capabilities API

Summary

I would like to request a model capabilities API (or an extension to /v1/models) that allows applications to programmatically discover the capabilities and constraints of a specific model.

Today, applications that support multiple OpenAI models have to manually maintain capability mappings in code or configuration. This becomes increasingly difficult as new models are introduced, capabilities evolve, and models have different parameter requirements.

A machine-readable capability descriptor would allow applications to dynamically determine how they should communicate with a model.

Proposed capability information

For example, given:

GET /v1/models/{model}/capabilities

the API could return something similar to:

{
  "model": "gpt-5-mini",
  "capabilities": {
    "text_conversation": true,
    "structured_outputs": true,
    "tool_calling": true,
    "streaming": true,
    "reasoning": {
      "supported": true,
      "values": ["low", "medium", "high"]
    },
    "vision": true,
    "audio_input": false,
    "audio_output": false,
    "realtime": false,
    "text_embedding": false
  }
}

The exact schema could obviously be designed by OpenAI. The important part is that the information is authoritative, structured, and accessible through the API.

Capabilities could include, for example:

  • Text conversation

  • Image/vision input

  • Audio input/output

  • Streaming

  • Structured outputs / JSON Schema

  • Tool/function calling

  • Tool choice

  • Reasoning

    • Supported or not

    • Supported reasoning values/levels

  • Realtime

  • Embeddings

  • Image generation

  • Transcription

  • Text-to-speech

  • Supported input/output modalities

  • Context window

  • Maximum output tokens

  • Supported parameters and their valid ranges

  • Other model-specific API constraints

Why this is important

The current /v1/models endpoint provides basic model information, but applications cannot use it to reliably determine what a model actually supports.

As a result, developers end up maintaining code such as:

if (model.StartsWith("gpt-5"))
{
    // reasoning supported
}

if (model == "some-model")
{
    // structured outputs supported
}

This approach does not scale and is particularly problematic for applications that allow administrators or users to select models dynamically.

It also creates a maintenance problem whenever OpenAI introduces a new model or changes the capabilities of an existing model.

Instead, an application should be able to do something like:

var capabilities = await client.Models.GetCapabilitiesAsync(model);

if (capabilities.StructuredOutputs)
{
    // Use structured outputs
}

if (capabilities.ToolCalling)
{
    // Enable tools
}

if (capabilities.Reasoning.Supported)
{
    // Configure the supported reasoning level
}

The application could then adapt automatically without having to maintain its own model compatibility matrix.

Real-world use case

I am currently building an AI deployment management UI as part of the open-source CrestApps project:

The UI allows administrators to register AI deployments and configure their supported capabilities manually.

This works, but it means the administrator has to know the capabilities of every model and manually keep that information up to date.

Ideally, the deployment system could simply query OpenAI:

Deployment
    ↓
Model: gpt-5-mini
    ↓
GET /v1/models/gpt-5-mini/capabilities
    ↓
Capabilities returned by OpenAI
    ↓
Deployment automatically configured

This would also make it possible for frameworks and platforms to dynamically determine which models are appropriate for a particular operation.

For example:

Need structured output + tool calling + reasoning
                    ↓
        Query model capabilities
                    ↓
        Find compatible models
                    ↓
        Configure API request

Why this should be part of the API

This information already exists in OpenAI’s documentation and model catalog. The missing piece is making the capability information available as a stable, machine-readable API contract.

I believe this would be particularly valuable for:

  • AI orchestration frameworks

  • Agent frameworks

  • AI deployment management systems

  • Multi-model applications

  • BYO-key applications

  • Model routing systems

  • Enterprise AI platforms

  • OpenAI-compatible providers

  • SDKs and libraries

It would also reduce the need for developers to hardcode model names and capabilities or discover incompatibilities by sending requests and handling errors.

Possible implementation

This could either be:

Option 1 — Extend /v1/models

Add a capabilities property to the existing model object:

{
  "id": "gpt-5-mini",
  "object": "model",
  "owned_by": "openai",
  "capabilities": {
    "structured_outputs": true,
    "tool_calling": true,
    "streaming": true,
    "reasoning": {
      "supported": true,
      "values": ["low", "medium", "high"]
    }
  }
}

Option 2 — Dedicated capabilities endpoint

GET /v1/models/{model}/capabilities

This may be preferable if the capability metadata becomes extensive.

One important consideration

It would be especially useful if the capability response described not only whether a feature is supported, but how it is supported.

For example, rather than:

"reasoning": true

return:

"reasoning": {
  "supported": true,
  "parameter": "reasoning.effort",
  "values": ["low", "medium", "high"]
}

Similarly, parameters could expose their supported values/ranges:

"parameters": {
  "temperature": {
    "supported": true,
    "min": 0,
    "max": 2
  }
}

This would allow frameworks to build requests dynamically and avoid invalid parameters.

Expected benefit

The goal is to make the OpenAI API self-describing from a model capability perspective.

Instead of:

“I know that this model supports X because I maintain a list in my application.”

developers could rely on:

“The API told me that this model supports X.”

That would make model integration significantly more robust as the OpenAI model catalog continues to evolve.

I believe this would be a valuable addition to the OpenAI API and would benefit not only individual applications but the broader ecosystem of AI frameworks and orchestration platforms.

Hi and welcome to the community!

There is no official API endpoint for this feature, but you can just use the official Docs MCP server with the same effect.

The downside is higher token consumption, but it also offers API costs besides the full documentation.

Thanks for pointing that out. I agree that the Docs MCP is useful for discovering the documentation, but I don’t think it addresses the use case I’m proposing.

My goal isn’t to have an AI agent search the documentation to determine what a model supports. I’m looking for a machine-readable, authoritative capability contract that an application can query directly at runtime.

For example, if my application is given a deployment using gpt-5-mini, I would like to be able to make a deterministic API request such as:

GET /v1/models/gpt-5-mini/capabilities

and receive something like:

{
  "model": "gpt-5-mini",
  "capabilities": {
    "text_conversation": true,
    "structured_outputs": true,
    "tool_calling": true,
    "streaming": true,
    "reasoning": {
      "supported": true,
      "values": ["low", "medium", "high"]
    },
    "vision": true,
    "realtime": false
  }
}

The important part is that this would be consumed by software, rather than by an LLM.

For example, my deployment management system could use the response to automatically configure the deployment and determine which API features and parameters are valid. It could also prevent an administrator from configuring a deployment with features that the selected model doesn’t support.

This is particularly important for frameworks that support multiple models and providers. Maintaining our own model/capability matrix becomes increasingly difficult as new models and capabilities are introduced.

The OpenAI model documentation already contains much of this information — for example, the model pages expose things such as supported features, tools, reasoning options, and streaming. What is missing is an API representation of that information that applications can reliably consume.

So I see Docs MCP as useful for documentation discovery, whereas this request is about runtime model introspection.

I think both solve very different problems.

Well, if needed, you can request the model capabilities in a structured format via a tool call.

I am saying this because this feature has been requested quite a few times over the years, and OpenAI ultimately delivered the Docs MCP. I can only suggest using this as the tool.

OpenAI has exposed an API now not needing a web session key:

https://api.openai.com/dashboard/models

I noted this before:

It is your org models, including fine tunings.

It has an undocumented response schema, particularly in regards to the usefulness of string arrays returned.

I had AI code up a little Python viewer making the API call, based on first building out all the enums seen. You can try to interpret the meanings.

import json
import os
import tkinter as tk
from tkinter import ttk

import httpx


def fetch_models() -> list[dict[str, object]]:
    key = os.environ.get("OPENAI_API_KEY")
    if not key:
        raise ValueError("Set OPENAI_API_KEY before running.")
    response = httpx.get(
        "https://api.openai.com/dashboard/models",
        headers={"Authorization": f"Bearer {key}"},
        timeout=20,
    )
    response.raise_for_status()
    return response.json()["data"]


def show_models(models: list[dict[str, object]]) -> None:
    by_id = {str(model["id"]): model for model in models}
    enums: dict[str, set[str]] = {}
    for model in models:
        for field, value in model.items():
            if isinstance(value, list) and all(isinstance(v, str) for v in value):
                enums.setdefault(field, set()).update(value)

    root = tk.Tk()
    root.title(f"Models ({len(models)})")
    root.geometry("1100x700")
    panes = ttk.Panedwindow(root, orient="horizontal")
    panes.pack(fill="both", expand=True)
    trees: list[ttk.Treeview] = []
    for heading, width in (("Model ID", 420), ("Field / enum", 340)):
        frame = ttk.Frame(panes)
        panes.add(frame, weight=1)
        tree = ttk.Treeview(frame, columns=("value",), selectmode="browse")
        tree.heading("#0", text=heading)
        tree.column("#0", width=width)
        vertical = ttk.Scrollbar(frame, orient="vertical", command=tree.yview)
        horizontal = ttk.Scrollbar(frame, orient="horizontal", command=tree.xview)
        tree.configure(yscrollcommand=vertical.set, xscrollcommand=horizontal.set)
        vertical.pack(side="right", fill="y")
        horizontal.pack(side="bottom", fill="x")
        tree.pack(fill="both", expand=True)
        trees.append(tree)

    ids, details = trees
    ids.configure(displaycolumns=())
    details.heading("value", text="Value / membership")
    details.column("value", width=240)

    def select_model(_event: object) -> None:
        selection = ids.selection()
        if not selection:
            return
        model = by_id[selection[0]]
        details.delete(*details.get_children())
        fields = list(model) + [field for field in enums if field not in model]
        for field in fields:
            value = model.get(field)
            if isinstance(value, list) and all(isinstance(v, str) for v in value):
                label = f"{len(value)} returned"
            else:
                label = json.dumps(value)
            if field not in model:
                label = "Field not returned"
            node = details.insert("", "end", text=field, values=(label,), open=True)
            if field in enums:
                for item in sorted(enums[field]):
                    present = isinstance(value, list) and item in value
                    status = "[x] returned" if present else "[ ] not returned"
                    details.insert(node, "end", text=item, values=(status,))
        details.yview_moveto(0)

    ids.bind("<<TreeviewSelect>>", select_model)
    for model_id in sorted(by_id):
        ids.insert("", "end", iid=model_id, text=model_id)
    if by_id:
        first = ids.get_children()[0]
        ids.selection_set(first)
        ids.focus(first)
    root.mainloop()


if __name__ == "__main__":
    try:
        show_models(fetch_models())
    except httpx.HTTPStatusError as error:
        raise SystemExit(
            f"HTTP {error.response.status_code}\n{error.response.text}"
        ) from None
    except (httpx.RequestError, KeyError, TypeError, ValueError) as error:
        raise SystemExit(str(error)) from None

Hey @MikeAlhayek,

With what you’re building, I can see why having the API return those details would help.

VeitB’s suggestion could help with looking up model information. Having your app read those capabilities directly would make the setup easier to automate.

I’ll pass your request and examples along to the team for consideration.

-Sandra