CometAPI Image Generation and Editing APIs
website·Indexed 35 days ago
https://apidoc.cometapi.comA unified API platform for image generation and editing, providing access to multiple AI models including Midjourney, FLUX, Gemini, Grok, Kling, Bria, OpenAI, Replicate, and Seedream. Supports a wide range of capabilities such as text-to-image, image-to-image, vector graphics generation, image expansion, and multi-turn chat-based editing.
What's inside CometAPI
- CometAPI provides access to over 500 AI models using the standard OpenAI interface protocol. The service operates on a pay-as-you-go billing model with transparent pricing and no hidden costs. Users gain immediate access to all available models upon recharging their account.
Overview of CometAPI Model API Quickstarts
CometAPI provides quickstart guides for integrating text, image, and video models using curl, Python, and Node.js. These guides are designed for developers who have already identified a specific model family or task. Each quickstart typically includes a minimal request example, language-specific code snippets, request flow diagrams, and common parameters. For initial account setup and API key generation, refer to the 'Create an API key' guide.Choose the correct Audio API endpoint
CometAPI provides three primary audio workflows:
- Create Speech: Convert text to speech (TTS).
- Create Transcription: Transcribe audio files to text.
- Create Translation: Translate audio files into English text.
Understand how CometAPI rate multipliers work
CometAPI uses rate multipliers (including group, model, and completion multipliers) as a calculation method to determine costs. Each model is assigned an independent multiplier. While these multipliers do not directly represent a simple multiple of official prices, they are designed to maintain consistency with official model pricing.Understand the Midjourney API workflow
The Midjourney API operates as a state machine that simulates Discord button interactions. Instead of a single request, users must follow a multi-step process: submit a prompt, poll for completion, and then use the returnedcustomIdfrom buttons to trigger subsequent actions (like upscaling or variations).Understand CometAPI data protection for AI model interactions
CometAPI does not collect, store, or record any conversation content between the user and the AI models. Communication content is not saved to CometAPI servers or databases, ensuring that interactions remain private and secure.Integrate CometAPI documentation with LLMs
CometAPI provides two specialized text files to facilitate the use of its documentation with coding assistants, retrieval systems, and model prompts:
llms.txt: A compact index of documentation pages. Use this when you need a high-level map of the docs or when tool context windows are limited.llms-full.txt: A full-text export of the documentation. Use this for retrieval-augmented generation (RAG), question answering, or deep coding assistance where the tool can ingest the entire documentation set.
CometAPI CLI Command Overview
General reference for CometAPI CLI commands. Usecometapi -horcometapi <command> -hfor detailed help on any command.Command Description Auth chatSend chat message or start REPL API key modelsList/filter model catalog API key model infoInspect model metadata API key runSend request via specific endpoint API key balanceShow balance API key/Access token accountShow account profile Access token statsShow usage statistics Access token tokensList/search API keys Access token logsBrowse usage logs Access token tasksShow async task logs Access token initSetup wizard None doctorRun diagnostics API key configManage local config None replInteractive command shell Varies Manage high concurrency and throughput on CometAPI
CometAPI supports high concurrency by default via large-scale cluster load balancing. Depending on the requirements, users can choose between different service lines:
- Default Line: Supports standard high concurrency via cluster load balancing.
- Training Line: Designed for high-concurrency needs or specific model training requirements. Users must contact customer service to activate the relevant model permissions for this line.
- Enterprise-dedicated Lines: Provide high concurrency support of up to 30 million Tokens Per Minute (TPM) by default with inclusive line support.
Understand CometAPI service capabilities
CometAPI is an AI model aggregation platform providing access to various artificial intelligence models, including text generation, text-to-image generation, image analysis, and audio/video processing.Understand CometAPI Workspace and Organization roles
A CometAPI Workspace is a team membership area within an Organization. While Workspaces manage team access, they do not have independent credit balances; all members use the shared Credits available in the Organization context.
Workspace Roles:
- Owner / Admin: Can view the member list, invite new members, cancel pending invitations, and remove members.
- Member: Can view the member list.
Organization Roles:
- Organization Owner: The only role capable of adding Credits, configuring Auto Top-Up, or redeeming redemption codes. Workspace Owners and Admins do not have billing permissions unless they are also the Organization Owner.
Understand Comet API system reliability and failover
The system employs multi-channel distribution to ensure availability. If a specific channel fails, the system automatically switches to alternative channels and performs multiple retries. In the event of a channel crash, the system is designed to automatically restart within 5 minutes.