# CometAPI — MCP server on mcp.ai > Connect your CometAPI account and use 6 tools for AI models straight from your AI agent. Connect with your own API key. CometAPI provides a unified API gateway for text, image, audio, video, and other generative AI models from multiple providers. By: mcp.ai · official Page: https://mcp.ai/cometapi ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_cometapi?ms=1787293380000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/cometapi/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/cometapi/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/cometapi/skill.md Postman collection (v2.1): https://mcp.ai/cometapi/postman.json ## Tools - cometapi_create_chat_completion(stop?: string|string[], user?: string, model: string, tools?: object[], top_p?: number, messages: object[], temperature?: number, tool_choice?: string|object, response_format?: object, reasoning_effort?: string, max_completion_tokens?: integer) — 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. Re - cometapi_create_embeddings(user?: string, input: string|string[], model: string, dimensions?: integer, encoding_format?: string) — Create OpenAI-compatible embedding vectors for one text or a batch of texts. This metered operation requires funded organization balance. - cometapi_create_response(text?: object, input: string, model: string, store?: boolean, top_p?: number, reasoning?: object, truncation?: string, temperature?: number, instructions?: string, max_output_tokens?: integer, previous_response_id?: string) — 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 - cometapi_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. - cometapi_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 d - cometapi_moderate_content(input: string|string[], model?: string) — 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. ## Example prompts - "What can I do in CometAPI?" - "Show me a summary of my CometAPI account" ## Links Docs: https://mcp.ai/docs/mcps/cometapi Website: https://mcp.ai/mcps/cometapi