OpenRouter (獨立發行者) (預覽版)
LLM 的高效能統一接口,整合了來自不同提供者的大量模型。
此連接器適用於以下產品和區域:
| 服務 | Class | Regions |
|---|---|---|
| 副駕駛工作室 | 進階 | 除下列區域外的所有 Power Automate 區域 : - 美國政府 (GCC) - 美國政府(海灣合作委員會高中) - 由 21Vianet 營運的中國雲 - 美國國防部 (DoD) |
| 邏輯應用程式 | 標準 | 所有 Logic Apps 區域, 但下列區域除外: - Azure Government 區域 - Azure 中國區域 - 美國國防部 (DoD) |
| Power Apps | 進階 | 除下列區域外的所有 Power Apps 區域 : - 美國政府 (GCC) - 美國政府(海灣合作委員會高中) - 由 21Vianet 營運的中國雲 - 美國國防部 (DoD) |
| Power Automate(自動化服務) | 進階 | 除下列區域外的所有 Power Automate 區域 : - 美國政府 (GCC) - 美國政府(海灣合作委員會高中) - 由 21Vianet 營運的中國雲 - 美國國防部 (DoD) |
| 連絡人 | |
|---|---|
| 名稱 | Fördős András |
| fordosa90+ipc_openr@gmail.com |
| 連接器中繼資料 | |
|---|---|
| Publisher | Fördős András |
| 網站 | https://openrouter.ai/ |
| 隱私策略 | https://openrouter.ai/privacy |
| 類別 | AI |
正在建立連線
連接器支援下列驗證類型:
| 預設值 | 建立連線的參數。 | 所有區域 | 不可共享 |
預設
適用:所有地區
建立連線的參數。
這不是可共用的連線。 如果 Power App 與其他使用者共用,系統會明確提示其他使用者建立新連線。
| 名稱 | 類型 | Description | 為必填項目 |
|---|---|---|---|
| API 金鑰 | securestring | 此 API 的 API 金鑰 | 對 |
節流限制
| 名稱 | 呼叫 | 續約期間 |
|---|---|---|
| 每個連線的 API 呼叫 | 100 | 60 秒 |
動作
| Completion |
將完成要求傳送至選取的模型 (純文字格式)。 |
| 列出模型端點 |
模型的端點清單。 |
| 列出模型: |
傳回透過 API 提供的模型清單。 |
| 取得生成 |
傳回特定產生請求的中繼資料。 |
| 取得積分 |
傳回已驗證使用者購買和使用的點數總計。 |
| 對話完成 |
將聊天完成請求傳送給選取的模型。 |
Completion
將完成要求傳送至選取的模型 (純文字格式)。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
型號
|
model | True | string |
要用於完成的模型 ID。 |
|
Prompt
|
prompt | True | string |
要完成的文字提示。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
ID
|
id | string |
唯一識別碼。 |
|
Choices
|
choices | array of object |
產生選擇的詳細資料。 |
|
文字
|
choices.text | string |
生成的文本。 |
|
Index
|
choices.index | integer |
索引。 |
|
完成原因
|
choices.finish_reason | string |
完成原因。 |
列出模型端點
模型的端點清單。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
作者
|
author | True | string |
模型的作者,模型 ID 的第一部分。 |
|
動態資料欄位
|
slug | True | string |
模型的 Slug,模型 ID 的第二部分。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
識別碼
|
data.id | string |
識別碼 |
|
名稱
|
data.name | string |
名稱 |
|
創建
|
data.created | float |
創建 |
|
說明
|
data.description | string |
說明 |
|
權杖化工具
|
data.architecture.tokenizer | string |
權杖化工具 |
|
instruct_type
|
data.architecture.instruct_type | string |
instruct_type |
|
形式
|
data.architecture.modality | string |
形式 |
|
Endpoints
|
data.endpoints | array of object |
可用端點的詳細資料。 |
|
名稱
|
data.endpoints.name | string |
名稱. |
|
內容長度
|
data.endpoints.context_length | float |
內容長度。 |
|
Request
|
data.endpoints.pricing.request | string |
請求的定價詳細資訊。 |
|
影像
|
data.endpoints.pricing.image | string |
圖像的定價詳細信息。 |
|
Prompt
|
data.endpoints.pricing.prompt | string |
提示的定價詳細資訊。 |
|
Completion
|
data.endpoints.pricing.completion | string |
完成的定價詳細資訊。 |
|
提供者名稱
|
data.endpoints.provider_name | string |
模型和端點提供者的名稱。 |
|
支援的參數
|
data.endpoints.supported_parameters | array of string |
支援參數的詳細資料。 |
列出模型:
傳回透過 API 提供的模型清單。
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
資料
|
data | array of object |
傳回的資料套件。 |
|
ID
|
data.id | string |
模型的唯一 ID。 |
|
名稱
|
data.name | string |
模型的名稱。 |
|
Description
|
data.description | string |
模型描述。 |
|
Prompt
|
data.pricing.prompt | string |
有關提示的定價信息。 |
|
Completion
|
data.pricing.completion | string |
有關完成的定價信息。 |
取得生成
傳回特定產生請求的中繼資料。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
ID
|
id | True | string |
世代的唯一識別碼。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
識別碼
|
data.id | string |
識別碼 |
|
total_cost
|
data.total_cost | float |
total_cost |
|
建立於
|
data.created_at | string |
建立於 |
|
型號
|
data.model | string |
型號 |
|
原點
|
data.origin | string |
原點 |
|
使用方式
|
data.usage | float |
使用方式 |
|
is_byok
|
data.is_byok | boolean |
is_byok |
|
upstream_id
|
data.upstream_id | string |
upstream_id |
|
cache_discount
|
data.cache_discount | float |
cache_discount |
|
app_id
|
data.app_id | integer |
app_id |
|
串流
|
data.streamed | boolean |
串流 |
|
cancelled
|
data.cancelled | boolean |
cancelled |
|
provider_name
|
data.provider_name | string |
provider_name |
|
延遲
|
data.latency | integer |
延遲 |
|
moderation_latency
|
data.moderation_latency | integer |
moderation_latency |
|
generation_time
|
data.generation_time | integer |
generation_time |
|
finish_reason
|
data.finish_reason | string |
finish_reason |
|
native_finish_reason
|
data.native_finish_reason | string |
native_finish_reason |
|
tokens_prompt
|
data.tokens_prompt | integer |
tokens_prompt |
|
tokens_completion
|
data.tokens_completion | integer |
tokens_completion |
|
native_tokens_prompt
|
data.native_tokens_prompt | integer |
native_tokens_prompt |
|
native_tokens_completion
|
data.native_tokens_completion | integer |
native_tokens_completion |
|
native_tokens_reasoning
|
data.native_tokens_reasoning | integer |
native_tokens_reasoning |
|
num_media_prompt
|
data.num_media_prompt | integer |
num_media_prompt |
|
num_media_completion
|
data.num_media_completion | integer |
num_media_completion |
|
num_search_results
|
data.num_search_results | integer |
num_search_results |
取得積分
傳回已驗證使用者購買和使用的點數總計。
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
總積分
|
data.total_credits | double |
購買的積分總數 |
|
總使用量
|
data.total_usage | double |
已使用的積分總數 |
對話完成
將聊天完成請求傳送給選取的模型。
參數
| 名稱 | 機碼 | 必要 | 類型 | Description |
|---|---|---|---|---|
|
型號
|
model | True | string |
要使用的型號 ID。 |
|
Role
|
role | True | string |
相關聯的角色輸入文字。 |
|
Content
|
content | True | string |
用於完成聊天的內容。 |
傳回
| 名稱 | 路徑 | 類型 | Description |
|---|---|---|---|
|
ID
|
id | string |
唯一識別碼。 |
|
Choices
|
choices | array of object |
選擇的細節。 |
|
Role
|
choices.message.role | string |
生成內容的演講者角色。 |
|
Content
|
choices.message.content | string |
產生訊息的結果內容。 |