CometAPI Image Generation and Editing APIs

website·Indexed 35 days ago

https://apidoc.cometapi.com

A 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.

Tokens
99K
Snippets
423
Records
724
Agent score
61%

What's inside CometAPI

  1. Overview of CometAPI Model Access

    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.
  2. 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.
  3. Choose the correct Audio API endpoint

    CometAPI provides three primary audio workflows:

    1. Create Speech: Convert text to speech (TTS).
    2. Create Transcription: Transcribe audio files to text.
    3. Create Translation: Translate audio files into English text.
  4. 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.
  5. 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 returned customId from buttons to trigger subsequent actions (like upscaling or variations).
  6. 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.
  7. CometAPI CLI Command Overview

    General reference for CometAPI CLI commands. Use cometapi -h or cometapi <command> -h for detailed help on any command.
    CommandDescriptionAuth
    chatSend chat message or start REPLAPI key
    modelsList/filter model catalogAPI key
    model infoInspect model metadataAPI key
    runSend request via specific endpointAPI key
    balanceShow balanceAPI key/Access token
    accountShow account profileAccess token
    statsShow usage statisticsAccess token
    tokensList/search API keysAccess token
    logsBrowse usage logsAccess token
    tasksShow async task logsAccess token
    initSetup wizardNone
    doctorRun diagnosticsAPI key
    configManage local configNone
    replInteractive command shellVaries
  8. 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.
  9. 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.
  10. 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.
  11. 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.