NAiOS IconNAiOS Logo
Volver al catálogo

AI/ML API

ai_ml_api

AI/ML API provides a suite of AI models and solutions for various tasks, including text generation, image processing, and more.

Acciones
2
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 (2)

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.

Moderation CompletionAI_ML_API_MODERATION_COMPLETIONAcción

Tool to classify input text or image for safety using a moderation model. use after receiving user-generated content to filter out unsafe material.

Parámetros de entrada

  • inputstringObligatorio

    The content to classify for safety. For text, provide the raw string. For images, provide a URL or base64-encoded data URI.

  • modelstringObligatorio

    ID of the content moderation model to use. Choose any model from the documentation: https://docs.aimlapi.com/api-references/moderation-safety-models#all-available-content-moderation-models

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

Text Chat CompletionAI_ML_API_TEXT_CHAT_COMPLETIONAcción

Tool to generate text completions or chat responses using a specified llm model. use after assembling the conversation history to produce the next response.

Parámetros de entrada

  • ninteger

    Number of completions to generate for each prompt.

  • stopstring[]

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

  • userstring

    Unique identifier representing the end-user.

  • modelstringObligatorio

    The identifier of the model to use for generating responses.

  • top_pnumber

    Nucleus sampling threshold; model considers tokens with cumulative probability up to top_p.

  • streamboolean

    Whether to stream the response as tokens are generated.

  • messagesobject[]Obligatorio

    List of message objects for conversation history.

  • logit_biasobject

    Adjust the likelihood of specified tokens appearing in the completion.

  • max_tokensinteger

    Maximum number of tokens to generate in the response.

  • temperaturenumber

    Sampling temperature between 0 and 1; higher values make output more random.

  • presence_penaltynumber

    Penalty for new tokens based on whether they appear in the text so far.

  • frequency_penaltynumber

    Penalty for new tokens based on their existing frequency in the text.

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