Skip to main content

Overview

The Models API provides endpoints to query available AI models configured in DeerFlow. Models are configured in the application’s configuration file and include metadata about their capabilities.

List All Models

GET /api/models

Retrieve a list of all available AI models configured in the system

Response

array
List of all configured models with their metadata

Example Request

Example Response


Get Model Details

GET /api/models/{model_name}

Retrieve detailed information about a specific AI model by its name

Path Parameters

string
required
The unique name of the model to retrieve (e.g., gpt-4, claude-3-opus)

Response

string
required
Unique identifier for the model
string
Human-readable name
string
Model description
boolean
default:"false"
Whether model supports thinking mode
boolean
default:"false"
Whether model supports reasoning effort

Example Request

Example Response

Error Responses

Not Found
Model not found

Model Capabilities

Thinking Mode

Models with supports_thinking: true can use extended thinking/reasoning capabilities. This is typically available in Claude models.

Reasoning Effort

Models with supports_reasoning_effort: true support configurable reasoning effort levels (e.g., OpenAI’s o1 series). This allows you to control how much computational effort the model applies to reasoning.

Use Cases

Frontend Model Selection

Use the /api/models endpoint to populate model selection dropdowns:

Capability Detection

Check if a specific model supports certain features:

Gateway Overview

Learn about the Gateway API

Configuration

Configure AI models