otherapi_key

CometAPI

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

Verdict

CometAPI gives your team a unified interface to dozens of LLM providers — OpenAI, Anthropic, Cohere, Mistral, and more — through a single API key. In Switchy, @mention CometAPI to generate completions, create embeddings, or moderate content without juggling separate vendor accounts. Useful when you want to compare model outputs side-by-side or route tasks to the cheapest provider that fits the job. You'll need a funded CometAPI account; calls consume your organization balance. The MCP exposes six tools: chat completions, embeddings, moderation, model listing, usage checks, and the Responses API for stateful reasoning workflows.

Common use cases

  • Compare GPT-4 and Claude outputs on the same prompt
  • Generate embeddings for semantic search without OpenAI
  • Moderate user-generated content before publishing
  • Route cheap tasks to Mistral, complex ones to GPT-4
  • Check model availability before starting a workflow

Integration

Vendor
CometAPI
Category
other
Auth
API_KEY
Tools
6
Composio slug
cometapi

Tools

  • Create Chat Completion

    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.

  • Create Embeddings

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

  • Create Response

    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

  • Get API Key Usage

    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.

  • List Models

    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.

  • Moderate Content

    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.

Setup

Setup guide

  1. 11. Sign up at CometAPI and fund your organization balance — all generation calls are metered. 2. Generate an API key from your CometAPI dashboard; copy it to your clipboard. 3. In Switchy, open Settings → Integrations → Add Integration and select CometAPI. 4. Paste your API key into the authentication field and click Connect. 5. Switchy will validate the key and display your quota and available models. 6. Open any Project, type '@CometAPI list the models I can use' and send; if you see a model catalog, the connection works. 7. To generate text, @mention CometAPI with a prompt and specify a model name from the catalog (e.g. '@CometAPI using gpt-4o, summarize this transcript'). 8. Check your usage anytime by asking '@CometAPI show my current API key usage and remaining balance'.

What teammates see: by default, memories from CometAPI are scoped to the Project (PROJECT visibility) - you can mark any memory PRIVATE or share it ORG-wide.

Works well with

Top models

Compatibility data appears once enough Projects have used this MCP together with a given model.

How Switchy teams use it

Not enough Projects yet to publish anonymised usage stats (we require ≥ 50 Projects per week).

Starter prompts

List Available Models

@CometAPI list all models available to my API key, grouped by provider

Compare Model Responses

@CometAPI generate a product description for 'ergonomic wireless mouse' using gpt-4o, then repeat with claude-3-5-sonnet and show both results

Create Text Embeddings

@CometAPI create embeddings for this paragraph using text-embedding-3-small: 'Switchy is a shared AI workspace for small teams.'

Moderate User Content

@CometAPI moderate this comment for hate speech, harassment, and violence: 'Your product is terrible and you should be ashamed.'

Check Usage and Balance

@CometAPI show my current API key usage, remaining balance, and any model restrictions

Example outputs

Illustrative - representative of the model's voice and quality, not literal recordings.

Prompt

@CometAPI list all models available to my key and show which ones support function calling

Output

Your API key has access to 47 models across 8 providers. Function-calling is supported by 12 models including gpt-4o, claude-3-5-sonnet-20241022, gemini-2.0-flash-exp, and llama-3.3-70b-versatile. The list also includes embedding models (text-embedding-3-large, voyage-3), vision models (gpt-4o-mini, claude-3-5-haiku-20241022), and reasoning models (o1, o3-mini). Each entry shows the provider, protocol type (chat/embeddings/moderation), and any usage restrictions tied to your key tier.

Notes

This example demonstrates catalog discovery before committing to a generation workflow. Model availability depends on your CometAPI organization tier and key restrictions. The MCP does not expose pricing or rate-limit details per model — consult the CometAPI dashboard for cost planning before high-volume use.

Prompt

@CometAPI create a chat completion using claude-3-5-sonnet with the message 'Explain quantum entanglement in one sentence' and return the result

Output

Completion created successfully using claude-3-5-sonnet-20241022. The model returned: 'Quantum entanglement is a phenomenon where two or more particles become correlated such that the quantum state of one particle instantaneously influences the state of the other, regardless of the distance separating them.' This request consumed approximately 180 tokens (24 prompt + 156 completion) and was billed against your organization's metered balance.

Notes

This write operation demonstrates cross-provider LLM access through a unified interface. CometAPI meters every generation call — ensure your organization has sufficient funded balance before production use. The MCP does not cache responses or manage conversation history; you must track message threads in your own Project context if building multi-turn workflows.

Prompt

@CometAPI check my API key usage limits, then create embeddings for these three product descriptions and tell me if any pair is semantically similar

Output

Your API key shows 2.4M tokens remaining in the current quota period (resets in 18 days), with no model restrictions. Embeddings created for all three descriptions using text-embedding-3-small. Comparing cosine similarity: Description A and Description C are highly similar (0.89 similarity score) — both emphasize 'cloud-native scalability' and 'real-time analytics'. Description B is distinct (0.61 to A, 0.58 to C), focusing on compliance and audit workflows instead of performance.

Notes

This synthesis example pairs quota awareness with embedding generation and AI-driven comparison. The MCP returns raw vectors; the similarity analysis here is performed by the AI reasoning over those vectors. Embedding operations are metered separately from chat completions — budget accordingly if processing large document sets.

Use-case deep-dives

Multi-model prompt testing

When you need to compare GPT-4, Claude, and Gemini outputs side-by-side

A 3-person growth team runs weekly experiments on landing-page copy. They write one prompt, then fire it at four different models to see which output converts better in A/B tests. CometAPI wins here because List Models shows every provider in one catalog, and Create Chat Completion hits all of them through the same interface—no juggling API keys or rewriting prompts for each vendor's format. The team saves 20 minutes per experiment round by scripting the comparison in a single Switchy thread. Trade-off: if you only ever use one model family, native provider SDKs are simpler. But the moment you want to test across Anthropic, OpenAI, and Google in the same workflow, CometAPI's unified protocol is the faster path.

Content moderation pipeline

Filtering user-generated content before it hits your knowledge base

A 6-person support team ingests customer feedback from Slack, email, and a web form into a shared knowledge base. Before any text goes live, they run Moderate Content to flag policy violations or PII leaks. CometAPI's moderation tool uses the OpenAI protocol, so the team writes one filter function that works whether they're moderating a single message or a batch of 50 form submissions. The API key usage check (Get API Key Usage) lets them monitor quota in real time, so they know when to top up balance before the pipeline stalls. This setup works until you're moderating more than 10,000 texts per day—at that scale, you'll want a dedicated moderation service with custom rulesets, not a metered API.

Semantic search over internal docs

Building a 'find similar' feature without standing up a vector database

A 4-person product team maintains 200 Notion pages of specs, retros, and design decisions. They want a 'find pages like this one' button but don't want to run Pinecone or Weaviate. Create Embeddings generates vectors for every doc, and the team stores them in a simple JSON file or lightweight SQLite table with a cosine-similarity search. CometAPI handles the embedding step through the OpenAI protocol, so switching from text-embedding-3-small to a different provider's model is a one-line config change. This approach breaks down around 5,000 documents—search gets slow, and you'll need a real vector store. But for a few hundred docs and a team that wants semantic search in an afternoon, CometAPI's embedding tool is the pragmatic start.

Frequently asked

What does the CometAPI MCP do in Switchy?

It gives your team access to multiple AI models through a single API key. You can run chat completions, generate embeddings, moderate content, and check usage limits without switching between providers. Think of it as a unified gateway to models from OpenAI, Anthropic, and others — all billed through CometAPI's metered system.

Do I need admin access to connect CometAPI?

You need a CometAPI API key with sufficient permissions. The key must belong to a funded organization account since all operations are metered. Whoever connects it should have access to your organization's billing dashboard to monitor usage and top up balance when needed.

Can the CometAPI MCP fine-tune models or train custom ones?

No. It only handles inference — chat completions, embeddings, and content moderation. If you need fine-tuning or custom model training, you'll have to do that directly in the underlying provider's platform, then call the resulting model through CometAPI's unified interface.

Why use CometAPI instead of calling OpenAI or Anthropic directly?

CometAPI makes sense if you want one API key for multiple providers, or if you're already using their billing system. You trade direct provider access for convenience and unified usage tracking. The downside: every call is metered, so you're paying CometAPI's markup on top of the underlying model cost.

Who on the team should connect the CometAPI MCP?

Whoever manages your AI spend and has access to your CometAPI organization account. They'll need to monitor balance and usage limits since all tools are metered. If your key runs out of funds mid-project, every team member using this MCP will hit errors until someone tops up.

More other MCPs

See all other MCPs →

Data last verified 61 hours ago.Sources aggregated hourly to weekly. See docs/architecture/model-directory.md.