CometAPI support for Midjourney, Flux and 500+ of AI language models

The CyberSEO Pro and RSS Retriever autoblogging plugins for WordPress now support CometAPI as an alternative to GoAPI. This integration includes image generation with Midjourney, as well as the entire Flux lineup: Flux Kontext Max, Flux Kontext Pro, Flux Schnell Pro, Flux Schnell Dev, Flux 1.1 Pro Ultra, and Flux 1.1 Pro. It also covers language models. Currently, CometAPI provides access to over 500 models, surpassing OpenRouter. These include commercial solutions, such as GPT and Claude, as well as a wide range of powerful open-source models.

Benefits of CometAPI for image generation

The first thing that stands out is the price. A Midjourney standard subscription costs $30 per month or $24 per month with annual billing, equaling $288 per year. Flux offers credits ranging from 5,000 credits for $7.99 to 21,000 credits for $23.99, equaling roughly three to six cents per image.

CometAPI operates differently in that it does not use a credit system like Stability.ai or Flux. The account balance is maintained in U.S. dollars, and all operations in the usage log are also shown in dollars. This avoids confusion with virtual units and shows the real cost of each generation immediately.

Actual usage costs confirm the difference. Flux Schnell is priced at $0.012; with the applied group ratio of 0.8, the final price is $0.0096 per image – less than a cent. Midjourney Fast Imagine costs $0.07, which is reduced to $0.056 with the ratio. Fast Upscale costs $0.01, which is reduced to $0.008. Since a complete Midjourney image includes both Imagine and Upscale, the total cost per result is approximately $0.064. This equates to less than seven cents per image, making it cheaper than a Midjourney subscription or any third-party API provider.

Another advantage is transparent expense control. The CometAPI admin panel includes a billing table showing which model was used, when, and how much each generation cost. This allows users to see complete statistics and plan their budgets without surprises.

To put it simply, using CometAPI for image generation offers several clear benefits. It provides lower costs compared to official subscriptions and competing services, with transparent billing in dollars instead of confusing credit systems. Expenses are easy to track thanks to the built-in billing log, and the use of a single API key for all models makes setup and management much simpler.

To enable CometAPI support for image generation with Midjourney and Flux, make sure to enter your API key on the Accounts settings page. After that, CometAPI can be used in the feed settings under the Media enrichment tab, as well as through the shortcodes [midjourney] and [flux].

CyberSEO Pro - Midjourney image generation

Example shortcodes:

[midjourney provider="cometapi" prompt="an illustration for a travel blog article titled '%post_title%'"]
[flux provider="cometapi" prompt="a modern infographic to visualize the main idea of the post '%post_title%'"]

Accessing AI language models with CometAPI

CometAPI support is not limited to Midjourney and Flux; it also includes access to over 500 language models – more than OpenRouter offers. This includes GPT from OpenAI, Claude from Anthropic, Gemini from Google, and Grok from xAI, as well as open-source models such as Llama and Mistral. You can use the same API key for all of these, allowing you to effortlessly switch between models and choose the best one for each task.

The main advantages are versatility and cost savings. Rather than maintaining multiple subscriptions with different providers or figuring out how to connect yet another API, users get a single service. CometAPI prices are often lower than official prices. Thanks to discounts of up to 20 percent and the absence of hidden fees, the final cost of text generation is usually lower than with OpenRouter or direct connections.

Another important point is billing transparency. As with images, all expenses are tracked in U.S. dollars and recorded in the usage log. This shows not only the final total, but also the exact cost of each request. For users working with large volumes of text, this makes it easy to maintain full control over expenses and accurately predict costs.

Plugin users get access to a large selection of language models through one API key, offering flexible options, transparent billing, and competitive prices.

To enable support for language AI models that are supported by CometAPI, add a separate CometAPI endpoint for language models. This can be done in the Accounts window, under the Custom AI endpoints tab at the top of the form.

CyberSEO Pro Accounts - Custom AI endpoints

The settings should be filled in as follows:

  • Endpoint ID – give it a clear name, for example cometapi.
  • Endpoint URL – enter https://api.cometapi.com/v1/chat/completions.
  • Default model – can be left empty or set to a default model, for example grok-4-0709 or claude-opus-4-1-20250805. The full list of supported language models and their IDs is available here.
  • API key – your personal CometAPI key, the same one used for image generation.

Once the fields are filled in, click Add endpoint and then Update settings.

Now that the CometAPI endpoint has been added in the plugin settings, all language models become available through the [custom_ai] shortcode. Its format looks like this:

[custom_ai id="your-endpoint-id" model="model-id" prompt="your prompt"]

Here, the id parameter matches the endpoint ID set earlier (for example cometapi), and the model parameter is the ID of the specific model. If the model is not specified, the default one defined in the settings will be used.

Example:

[custom_ai id="cometapi" model="gpt-4o" prompt="Generate a structured summary with key points, subheadings, and bullet highlights suitable for a blog post outline. Keep it concise and professional. Here is the text to analyze: %post_content_notags%"]

In this case, cometapi is the endpoint ID we defined in the settings above, and gpt-4o is an example model ID.

CometAPI models are also available via the universal [ai_generate] shortcode, which works in the following format:

[ai_generate engine="provider-model" prompt="your prompt"]

In the engine parameter, you specify the provider ID, followed by a dash, and then the model name. Examples:

  • cometapi-gpt-4o
  • cometapi-deepseek-ai/deepseek-r1
  • cometapi-gemini-2.5-pro-preview-06-05
  • cometapi-grok-4-0709

Example:

[ai_generate engine="cometapi-grok-4-0709" prompt="Extract the most relevant SEO keywords from the following text and write a compelling meta description of no more than 150 characters. Process the text below: %post_content_notags%"]

With CometAPI, your plugin is no longer tied to a single provider or pricing model. You can combine the strengths of Midjourney and Flux for visuals with the creativity of hundreds of language models for text. This allows you to build a workflow that adapts to your goals instead of forcing you into someone else’s limitations.

WordPress automatic blogging with Midjourney

Source: https://www.cyberseo.net/blog/cometapi-support-for-midjourney-flux-and-500-of-ai-language-models/


Leave a Reply

Available for Amazon Prime