Azure AI

Azure AI is Microsoft’s integrated AI platform on Azure for building AI applications and AI agents, spanning Azure OpenAI Service, Azure AI Services (Vision/Speech/Language/Translator/Content Safety), Azure AI Search, Azure Machine Learning, and Azure AI Studio. This solutions page offers an overview and entry points. Azure AI Inference provides OpenAI‑compatible /v1 endpoints for quick integration and migration.

基础 URL
https://api.openai.com/v1
认证
Bearer / Authorization: Bearer $AZURE_API_KEY
官方 SDK
Python, JavaScript/TypeScript, .NET, Java
🔑 API Key 获取
前置要求:Requires a valid Azure account and Azure AI resources; complete identity verification and subscription setup. Some models require access approval.
入口:https://ai.azure.com/
说明:Sign in to Azure and open Azure AI Studio (ai.azure.com). Create or select a project/resource, then obtain an access token or key from the project’s secrets/deployments. Some services require creating the corresponding resource in Azure Portal and retrieving keys from the ‘Keys and Endpoint’ page.

支持模型

API 接口列表

POST /v1/chat/completions Docs

Chat Completions (OpenAI‑compatible) for generating responses from message arrays, with streaming support.

认证Yes
频率限制60/min
计费模式按模型/区域计费,多数采用按令牌计费(输入/输出分开);具体价格以 Azure 定价页面为准。
{
  "model": "gpt-4o-mini",
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "Summarize Azure AI in one sentence."
    }
  ],
  "stream": true
}
POST /v1/embeddings Docs

Create text embeddings (OpenAI‑compatible) for retrieval augmentation and similarity calculations.

认证Yes
频率限制60/min
计费模式按模型/区域计费;通常仅对输入令牌计费,以官方定价为准。
{
  "model": "text-embedding-3-large",
  "input": "Azure AI provides end‑to‑end capabilities for AI apps and agents."
}