Skip to content
Stainless SDKs
Select theme
Dark
Light
Auto
Language
HTTP
TypeScript
Python
Getting started
API Reference
Agents
Overview
API Keys
Create an Agent API Key
Update API Key for an Agent
List Agent API Keys
Delete API Key for an Agent
Regenerate API Key for an Agent
Chat
Completions
Creates a model response for the given chat conversation.
Evaluation Metrics
Workspaces
Agents
List agents by Workspace
Move Agents to a Workspace
Create a Workspace
Retrieve an Existing Workspace
Update a Workspace
List Workspaces
Delete a Workspace
List Evaluation Test Cases by Workspace
List Evaluation Metrics
Evaluation Runs
Run an Evaluation Test Case
Retrieve Information About an Existing Evaluation Run
Retrieve Results of an Evaluation Run
Retrieve Results of an Evaluation Run Prompt
Evaluation Test Cases
Create Evaluation Test Case.
Retrieve Information About an Existing Evaluation Test Case
Update an Evaluation Test Case.
List Evaluation Test Cases
List Evaluation Runs by Test Case
Evaluation Datasets
Create Evaluation Dataset
Create Presigned URLs for Evaluation Dataset File Upload
Functions
Add Function Route to an Agent
Update Function Route for an Agent
Delete Function Route for an Agent
Versions
Rollback to Agent Version
List Agent Versions
Knowledge Bases
Attach Knowledge Bases to an Agent
Attach Knowledge Base to an Agent
Detach Knowledge Base from an Agent
Routes
Update Agent Route for an Agent
Delete Agent Route for an Agent
Add Agent Route to an Agent
View Agent Routes
Create an Agent
Retrieve an Existing Agent
Update an Agent
List Agents
Delete an Agent
Update Agent Status
Chat
Overview
Completions
Creates a model response for the given chat conversation.
Regions
Overview
List Datacenter Regions
Knowledge Bases
Overview
Data Sources
Add Data Source to a Knowledge Base
List Data Sources for a Knowledge Base
Delete a Data Source from a Knowledge Base
Indexing Jobs
Start Indexing Job for a Knowledge Base
Retrieve Status of Indexing Job for a Knowledge Base
List Indexing Jobs for a Knowledge Base
List Data Sources for Indexing Job for a Knowledge Base
Cancel Indexing Job for a Knowledge Base
Create a Knowledge Base
Retrieve Information About an Existing Knowledge Base
Update a Knowledge Base
List Knowledge Bases
Delete a Knowledge Base
Inference
Overview
API Keys
Create a Model API Key
Update API Key for a Model
List Model API Keys
Delete API Key for a Model
Regenerate API Key for a Model
Models
Overview
Providers
Anthropic
Create Anthropic API Key
Get Anthropic API Key
Update Anthropic API Key
List Anthropic API Keys
Delete Anthropic API Key
List agents by Anthropic key
OpenAI
Create OpenAI API Key
Get OpenAI API Key
Update OpenAI API Key
List OpenAI API Keys
Delete OpenAI API Key
List agents by OpenAI key
List Available Models
Shared
Overview
GitHub
Select theme
Dark
Light
Auto
Regions
Regions
Regions
regions
Methods
List Datacenter Regions
get
/v2/gen-ai/regions
To list all datacenter regions, send a GET request to
/v2/gen-ai/regions
.