Share via


OpenRouter (Independent Publisher) (Preview)

A high-performance unified interface for LLMs, integrating a vast number of models from various providers.

This connector is available in the following products and regions:

Service Class Regions
Copilot Studio Premium All Power Automate regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
     -   US Department of Defense (DoD)
Power Apps Premium All Power Apps regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Power Automate Premium All Power Automate regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Contact
Name Fördős András
Email fordosa90+ipc_openr@gmail.com
Connector Metadata
Publisher Fördős András
Website https://openrouter.ai/
Privacy policy https://openrouter.ai/privacy
Categories AI

Creating a connection

The connector supports the following authentication types:

Default Parameters for creating connection. All regions Not shareable

Default

Applicable: All regions

Parameters for creating connection.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
API Key securestring The API Key for this api True

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds

Actions

Chat completion

Send a chat completion request to a selected model.

Completion

Send a completion request to a selected model (text-only format).

Get credits

Returns the total credits purchased and used for the authenticated user.

Get generation

Returns metadata about a specific generation request.

List model endpoints

List of endpoints for the model.

List models

Returns a list of models available through the API.

Chat completion

Send a chat completion request to a selected model.

Parameters

Name Key Required Type Description
Model
model True string

Model ID to be used.

Role
role True string

Associated role the input text.

Content
content True string

Content used for chat completion.

Returns

Name Path Type Description
ID
id string

Unique identifier.

Choices
choices array of object

Details of choices.

Role
choices.message.role string

Role of the speaker for the generated content.

Content
choices.message.content string

Resulting content of generated message.

Completion

Send a completion request to a selected model (text-only format).

Parameters

Name Key Required Type Description
Model
model True string

Model ID to be used for completion.

Prompt
prompt True string

The text prompt to complete.

Returns

Name Path Type Description
ID
id string

Unique identifier.

Choices
choices array of object

Details of generated choices.

Text
choices.text string

Generated text.

Index
choices.index integer

Index.

Finish reason
choices.finish_reason string

Finish reason.

Get credits

Returns the total credits purchased and used for the authenticated user.

Returns

Name Path Type Description
Total credits
data.total_credits double

Total credits purchased

Total usage
data.total_usage double

Total credits used

Get generation

Returns metadata about a specific generation request.

Parameters

Name Key Required Type Description
ID
id True string

Unique identifier of the generation.

Returns

Name Path Type Description
id
data.id string

id

total_cost
data.total_cost float

total_cost

created_at
data.created_at string

created_at

model
data.model string

model

origin
data.origin string

origin

usage
data.usage float

usage

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

streamed
data.streamed boolean

streamed

cancelled
data.cancelled boolean

cancelled

provider_name
data.provider_name string

provider_name

latency
data.latency integer

latency

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

List model endpoints

List of endpoints for the model.

Parameters

Name Key Required Type Description
Author
author True string

Author of the model, first part of the model ID.

Slug
slug True string

Slug of the model, second part of the model ID.

Returns

Name Path Type Description
id
data.id string

id

name
data.name string

name

created
data.created float

created

description
data.description string

description

tokenizer
data.architecture.tokenizer string

tokenizer

instruct_type
data.architecture.instruct_type string

instruct_type

modality
data.architecture.modality string

modality

Endpoints
data.endpoints array of object

Details of available endpoints.

Name
data.endpoints.name string

Name.

Context length
data.endpoints.context_length float

Context length.

Request
data.endpoints.pricing.request string

Pricing details of request.

Image
data.endpoints.pricing.image string

Pricing details of image.

Prompt
data.endpoints.pricing.prompt string

Pricing details of prompt.

Completion
data.endpoints.pricing.completion string

Pricing details of completion.

Provider name
data.endpoints.provider_name string

The name of the model and endpoint provider.

Supported parameters
data.endpoints.supported_parameters array of string

Details of supported parameters.

List models

Returns a list of models available through the API.

Returns

Name Path Type Description
Data
data array of object

Returned data package.

ID
data.id string

Unique ID of the model.

Name
data.name string

Name of the model.

Description
data.description string

Description of the model.

Prompt
data.pricing.prompt string

Pricing information regarding prompt.

Completion
data.pricing.completion string

Pricing information regarding completion.