Skip to main content
CometAPI logo
  • Category: ai models
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 6
  • Triggers: 0
  • Slug: COMETAPI
  • Version: 20261101_00

Tools

Slug: COMETAPI_CREATE_CHAT_COMPLETIONCreate 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.

Input Parameters

string
One or more stop sequences, up to the provider’s limit of four.
string
Stable, non-sensitive end-user identifier for abuse monitoring.
string
required
Model ID from the List Models tool with openai in supported_endpoint_types.
array
Function tools the model may call.
number
Nucleus sampling value from 0 to 1. Omit unless needed; do not tune together with temperature.
array
required
Conversation messages in order.
number
Sampling temperature from 0 to 2. Omit unless needed; do not tune together with top_p.
string
Tool selection mode or a specific function the model must call. Send it only together with tools; omitted otherwise, leaving the provider default.
object
Output format configuration for text, JSON mode, or JSON Schema output.
string ("low" | "medium" | "high")
Reasoning effort for compatible models.
integer
Maximum generated tokens, including reasoning tokens, for compatible models.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: COMETAPI_CREATE_EMBEDDINGSCreate OpenAI-compatible embedding vectors for one text or a batch of texts. This metered operation requires funded organization balance.

Input Parameters

string
Stable non-sensitive end-user identifier for abuse monitoring.
string
required
One text or a batch of texts to embed. Batch results preserve input order.
string
required
Embedding model ID, such as text-embedding-3-small. Verify current availability with the List Models tool.
integer
Requested vector dimensions for models that support dimensionality reduction.
string ("float" | "base64")
Embedding representation. Use float for numeric vectors or base64 to reduce large response payloads.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: COMETAPI_CREATE_RESPONSECreate a non-streaming OpenAI Responses API result from plain text input, with options for stateful continuation, reasoning controls, and structured text output. Requires funded organization balance; set store=true when a later call will continue from this response.

Input Parameters

object
Text output format and verbosity configuration.
string
required
Plain text input for the model.
string
required
Model ID from the List Models tool that supports the OpenAI-compatible Responses API.
boolean
Whether CometAPI should store the response. Set true if its ID will be reused with previous_response_id; defaults to false for data minimization.
number
Nucleus sampling value from 0 to 1. Do not tune together with temperature.
object
Reasoning configuration for compatible models.
string ("auto" | "disabled")
Context overflow behavior: fail when disabled or drop oldest inputs when auto.
number
Sampling temperature from 0 to 2. Do not tune together with top_p.
string
System or developer instructions for this response.
integer
Maximum generated tokens, including visible output and reasoning tokens.
string
Previous response ID for a stateful follow-up. The earlier response must have been created with store=true.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: COMETAPI_GET_API_KEY_USAGEReturn 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.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: COMETAPI_LIST_MODELSList 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.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: COMETAPI_MODERATE_CONTENTClassify 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.

Input Parameters

string
required
One text or a batch of texts to classify. Batch results preserve input order.
string
Moderation model ID. The documented default for text is omni-moderation-latest.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not