CometAPI
cometapiCometAPI provides a unified API gateway for text, image, audio, video, and other generative AI models from multiple providers.
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ónCreate 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.
COMETAPI_CREATE_CHAT_COMPLETIONAcciónCreate 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
stopanyOne or more stop sequences, up to the provider's limit of four.
userstringStable, non-sensitive end-user identifier for abuse monitoring.
modelstringObligatorioModel ID from the List Models tool with openai in supported_endpoint_types.
toolsobject[]Function tools the model may call.
top_pnumberNucleus sampling value from 0 to 1. Omit unless needed; do not tune together with temperature.
messagesobject[]ObligatorioConversation messages in order.
temperaturenumberSampling temperature from 0 to 2. Omit unless needed; do not tune together with top_p.
tool_choiceanyTool selection mode or a specific function the model must call. Send it only together with tools; omitted otherwise, leaving the provider default.
response_formatobjectOutput format configuration for text, JSON mode, or JSON Schema output.
reasoning_effortstringenumReasoning effort for compatible models.
lowmediumhighmax_completion_tokensintegerMaximum generated tokens, including reasoning tokens, for compatible models.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create EmbeddingsCOMETAPI_CREATE_EMBEDDINGSAcciónCreate OpenAI-compatible embedding vectors for one text or a batch of texts. This metered operation requires funded organization balance.
COMETAPI_CREATE_EMBEDDINGSAcciónCreate OpenAI-compatible embedding vectors for one text or a batch of texts. This metered operation requires funded organization balance.
Parámetros de entrada
userstringStable non-sensitive end-user identifier for abuse monitoring.
inputanyObligatorioOne text or a batch of texts to embed. Batch results preserve input order.
modelstringObligatorioEmbedding model ID, such as text-embedding-3-small. Verify current availability with the List Models tool.
dimensionsintegerRequested vector dimensions for models that support dimensionality reduction.
encoding_formatstringenumEmbedding representation. Use float for numeric vectors or base64 to reduce large response payloads.
floatbase64
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create ResponseCOMETAPI_CREATE_RESPONSEAcciónCreate 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.
COMETAPI_CREATE_RESPONSEAcciónCreate 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
textobjectText output format and verbosity configuration.
inputstringObligatorioPlain text input for the model.
modelstringObligatorioModel ID from the List Models tool that supports the OpenAI-compatible Responses API.
storebooleanWhether CometAPI should store the response. Set true if its ID will be reused with previous_response_id; defaults to false for data minimization.
top_pnumberNucleus sampling value from 0 to 1. Do not tune together with temperature.
reasoningobjectReasoning configuration for compatible models.
truncationstringenumContext overflow behavior: fail when disabled or drop oldest inputs when auto.
autodisabledtemperaturenumberSampling temperature from 0 to 2. Do not tune together with top_p.
instructionsstringSystem or developer instructions for this response.
max_output_tokensintegerMaximum generated tokens, including visible output and reasoning tokens.
previous_response_idstringPrevious response ID for a stateful follow-up. The earlier response must have been created with store=true.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get API Key UsageCOMETAPI_GET_API_KEY_USAGEAcciónReturn 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.
COMETAPI_GET_API_KEY_USAGEAcciónReturn 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
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ModelsCOMETAPI_LIST_MODELSAcciónList 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.
COMETAPI_LIST_MODELSAcciónList 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
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Moderate ContentCOMETAPI_MODERATE_CONTENTAcciónClassify 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.
COMETAPI_MODERATE_CONTENTAcciónClassify 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
inputanyObligatorioOne text or a batch of texts to classify. Batch results preserve input order.
modelstringModeration model ID. The documented default for text is omni-moderation-latest.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not