NAiOS IconNAiOS Logo
Volver al catálogo

Openrouter

openrouter

OpenRouter is a platform that provides a unified API for accessing various large language models (LLMs) from different providers, allowing developers to integrate multiple AI models seamlessly.

Acciones
7
Triggers
0
Autenticación
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (7)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create Chat CompletionOPENROUTER_CREATE_CHAT_COMPLETIONAcción

Tool to generate a chat-style completion. use after assembling messages and selecting a model. supports streaming and function calls.

Parámetros de entrada

  • ninteger

    Number of completion choices to generate.

  • stopstring

    Sequences where the API will stop generating further tokens.

  • userstring

    A unique identifier for the end-user to help detect abuse.

  • modelstringObligatorio

    ID of the model to use for the chat completion.

  • top_pnumber

    Nucleus sampling probability, between 0 and 1.

  • streamboolean

    Whether to stream back partial message deltas.

  • messagesobject[]Obligatorio

    List of conversation messages to provide as context.

  • functionsobject[]

    List of functions the model may call.

  • logit_biasobject

    Adjust the likelihood of specified tokens.

  • max_tokensinteger

    Maximum number of tokens to generate.

  • temperaturenumber

    Sampling temperature to use, between 0 and 2.

  • function_callstringenum

    Control function call behavior: 'none', 'auto', or specify {'name': function_name}.

    noneauto
  • presence_penaltynumber

    Penalty for new tokens based on presence in the text so far.

  • frequency_penaltynumber

    Penalty for new tokens based on frequency in the text so far.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Create CompletionOPENROUTER_CREATE_COMPLETIONAcción

Tool to generate a text completion for a given prompt or set of messages. use when you need a model-generated response from a specified model.

Parámetros de entrada

  • stopstring

    Up to 4 sequences where the API will stop generating further tokens.

  • modelstringObligatorio

    Identifier of the model to use, e.g., 'openai/gpt-3.5-turbo'.

  • top_kinteger

    Top-k sampling limit (>=1).

  • top_pnumber

    Nucleus sampling probability threshold between 0 and 1.

  • promptstring

    Prompt text for completion. Either 'prompt' or 'messages' must be provided.

  • streamboolean

    If true, stream back partial progress as SSE.

  • messagesobject[]

    List of chat messages. Either 'prompt' or 'messages' must be provided.

  • max_tokensinteger

    Maximum number of tokens to generate (>=1).

  • temperaturenumber

    Sampling temperature between 0 and 2.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get CreditsOPENROUTER_GET_CREDITSAcción

Tool to get the current api credit balance for the authenticated user. use after authenticating to monitor remaining credits before making further api calls.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataobjectObligatorio

    Container with total credits and usage information

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get GenerationOPENROUTER_GET_GENERATIONAcción

Tool to retrieve a generation result by its unique id. use after a generation completes to fetch metadata like token counts, cost, and latency.

Parámetros de entrada

  • idstringObligatorio

    Unique identifier of the generation to retrieve.

Parámetros de salida

  • dataobjectObligatorio

    The detailed generation metadata.

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Available ModelsOPENROUTER_LIST_AVAILABLE_MODELSAcción

Tool to list available models via openrouter api. use after confirming authentication to fetch the model catalog.

Parámetros de entrada

  • use_rssboolean

    Return RSS XML feed instead of JSON (BETA).

  • categorystring

    Filter models by category (e.g., 'programming'). Sorted from most to least used.

  • use_rss_chat_linksboolean

    Use chat URLs instead of model page URLs in RSS items (only applies when use_rss=true) (BETA).

Parámetros de salida

  • dataobject[]Obligatorio

    List of available models.

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

OpenRouter List Model EndpointsOPENROUTER_OPENROUTER_LIST_MODEL_ENDPOINTSAcción

Tool to list endpoints for a specific model. use after specifying model author and slug to get endpoint details including pricing, context length, and supported parameters.

Parámetros de entrada

  • slugstringObligatorio

    Model's unique slug under the author namespace (e.g., 'gpt4').

  • authorstringObligatorio

    Model author's username as it appears in the model URL (e.g., 'anon').

Parámetros de salida

  • dataobjectObligatorio
  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

OpenRouter List ProvidersOPENROUTER_OPENROUTER_LIST_PROVIDERSAcción

Tool to list all ai model providers available through the openrouter api. use after authentication to retrieve available provider options for routing configuration.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataobject[]Obligatorio

    List of available AI model providers

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not