Volver al catálogo

CometAPI

cometapi

CometAPI provides a unified API gateway for text, image, audio, video, and other generative AI models from multiple providers.

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

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 CompletionCOMETAPI_CREATE_CHAT_COMPLETIONAcción

Create a non-streaming Chat Completions result for message-based conversations and function-calling workflows. Use this for models or integrations that require the OpenAI Chat Completions protocol. Requires funded organization balance.

Parámetros de entrada

  • stopany

    One or more stop sequences, up to the provider's limit of four.

  • userstring

    Stable, non-sensitive end-user identifier for abuse monitoring.

  • modelstringObligatorio

    Model ID from the List Models tool with openai in supported_endpoint_types.

  • toolsobject[]

    Function tools the model may call.

  • top_pnumber

    Nucleus sampling value from 0 to 1. Omit unless needed; do not tune together with temperature.

  • messagesobject[]Obligatorio

    Conversation messages in order.

  • temperaturenumber

    Sampling temperature from 0 to 2. Omit unless needed; do not tune together with top_p.

  • tool_choiceany

    Tool selection mode or a specific function the model must call. Send it only together with tools; omitted otherwise, leaving the provider default.

  • response_formatobject

    Output format configuration for text, JSON mode, or JSON Schema output.

  • reasoning_effortstringenum

    Reasoning effort for compatible models.

    lowmediumhigh
  • max_completion_tokensinteger

    Maximum generated tokens, including reasoning tokens, for compatible models.

Parámetros de salida

  • dataanyObligatorio

    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 EmbeddingsCOMETAPI_CREATE_EMBEDDINGSAcción

Create OpenAI-compatible embedding vectors for one text or a batch of texts. This metered operation requires funded organization balance.

Parámetros de entrada

  • userstring

    Stable non-sensitive end-user identifier for abuse monitoring.

  • inputanyObligatorio

    One text or a batch of texts to embed. Batch results preserve input order.

  • modelstringObligatorio

    Embedding model ID, such as text-embedding-3-small. Verify current availability with the List Models tool.

  • dimensionsinteger

    Requested vector dimensions for models that support dimensionality reduction.

  • encoding_formatstringenum

    Embedding representation. Use float for numeric vectors or base64 to reduce large response payloads.

    floatbase64

Parámetros de salida

  • dataanyObligatorio

    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 ResponseCOMETAPI_CREATE_RESPONSEAcción

Create a non-streaming OpenAI Responses API result. Use this for stateful continuation via previous_response_id, reasoning controls, or structured text output; use Chat Completion for Chat Completions workflows. Requires funded organization balance. Set store=true when a later call will continue from this response.

Parámetros de entrada

  • textobject

    Text output format and verbosity configuration.

  • inputstringObligatorio

    Plain text input for the model.

  • modelstringObligatorio

    Model ID from the List Models tool that supports the OpenAI-compatible Responses API.

  • storeboolean

    Whether CometAPI should store the response. Set true if its ID will be reused with previous_response_id; defaults to false for data minimization.

  • top_pnumber

    Nucleus sampling value from 0 to 1. Do not tune together with temperature.

  • reasoningobject

    Reasoning configuration for compatible models.

  • truncationstringenum

    Context overflow behavior: fail when disabled or drop oldest inputs when auto.

    autodisabled
  • temperaturenumber

    Sampling temperature from 0 to 2. Do not tune together with top_p.

  • instructionsstring

    System or developer instructions for this response.

  • max_output_tokensinteger

    Maximum generated tokens, including visible output and reasoning tokens.

  • previous_response_idstring

    Previous response ID for a stateful follow-up. The earlier response must have been created with store=true.

Parámetros de salida

  • dataanyObligatorio

    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 API Key UsageCOMETAPI_GET_API_KEY_USAGEAcción

Return quota, usage, expiration, and model restrictions for the connected CometAPI API key. This reports key-level limits, not the organization's spendable balance or commercial tier.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    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

List ModelsCOMETAPI_LIST_MODELSAcción

List all models available to the connected API key, including provider ownership and supported protocol types when returned. Use this before generation to choose a compatible model; catalog presence does not guarantee funded execution.

Parámetros de entrada

Sin parámetros.

Parámetros de salida

  • dataanyObligatorio

    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

Moderate ContentCOMETAPI_MODERATE_CONTENTAcción

Classify one text or a batch of texts with an OpenAI-compatible moderation model. This text-only operation is metered and requires funded CometAPI organization balance.

Parámetros de entrada

  • inputanyObligatorio

    One text or a batch of texts to classify. Batch results preserve input order.

  • modelstring

    Moderation model ID. The documented default for text is omni-moderation-latest.

Parámetros de salida

  • dataanyObligatorio

    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