An online shop owner seen from behind at her laptop, with parcels ready to ship on the desk

WooCommerce plugin, API and MCP: bringing Fotifai into your shop

Features7 min read

What Fotifai's WooCommerce plugin does today, how to use the public /v1 API with a key, and what is still in preparation: MCP, PrestaShop and Shopify.

by Equipo Fotifai

Table of contents
  1. The WooCommerce plugin: what it does today
  2. The public API: what you can automate
  3. Plugin or API: which to choose
  4. MCP: in preparation
  5. PrestaShop and Shopify: on the way
  6. Who it is for and who it is not
  7. What is free and what is paid
  8. How it connects to the rest

Fotifai reaches your shop in three ways: the WooCommerce plugin (built), the public API with a key (built) and MCP (in preparation). PrestaShop and Shopify are also in preparation. This article explains what each piece does today, how they fit together and, just as clearly, what they do not do yet.

The WooCommerce plugin: what it does today

Version 0.1.0 of the plugin adds an «IA Fotos» tab to the WooCommerce product page. It requires WordPress 6.0 or later, WooCommerce 8.0 or later and PHP 8.0 or later.

The flow, as it stands in the code:

  1. Install the plugin by uploading its folder to wp-content/plugins, then activate it.
  2. Connect it under WooCommerce > Fotifai IA: paste your API key (you create it in your Fotifai account). The page checks the connection and shows your credit balance.
  3. Open a product and go to the «IA Fotos» tab.
  4. Write the direction (it is required) and pick one of four jobs: product enhance, background replace, scene or background removal. Each shows its credit cost.
  5. Click «Generar foto». The plugin checks the status every three seconds and shows «queued», «processing» and «completed».
  6. Click «Usar como imagen» on the thumbnail you like: the plugin downloads the file into the WordPress media library and sets it as the product's featured image.
Job in the tabCredits
Product enhance2
Background replace2
Scene3
Background removal1

A stack of kraft-paper parcels tied with twine on the counter of a small online shop

What the plugin does not do yet

Worth reading before you install:

  • It only sends the job type and your text. In version 0.1.0 it does not attach the product page's photo as a reference, nor an avatar. For Fotifai to work from your real photo (product mode proper), today's route is the Fotifai dashboard or the API with the product identifier. Linking the tab to your photos and avatars is in preparation.
  • It has no avatars, no regenerate and no masked retouch, and it does not manage the per-product library (publish, archive, reorder).
  • It only sets the featured image; it does not fill the product gallery.
  • It is not ready for mass distribution: the translation file and the licensing system are still missing.

The public API: what you can automate

The public API lives under /v1 and authenticates with a key in the X-API-Key header. Keys are created in the «Cuenta» (account) section of the dashboard, up to five per user; the full key is shown only once, at creation, it is stored as a hash and you can revoke it at any time.

What it covers:

  • Image jobs: create a job (POST /v1/images/transform with type, product, avatar and text), check its status and list earlier ones. It replies with a job identifier; if you are out of credits it returns a 402 error stating how many are needed.
  • Credits: balance and movements.
  • Avatars and products: create, edit, upload and delete reference photos.
  • Per-product image library: list, upload, generate, reorder, publish, archive, delete and regenerate or retouch.

For JavaScript and TypeScript there is a typed client (@fotifai/api-client) with a wait-for-result helper and a shortcut that chains the clean product shot and the avatar scene. And for shop administrators built in React there are ready-made components (image library, mask editor and avatar studio). One important security rule: those components must talk to a proxy on your server that adds the key; never put the key in the browser.

Things to keep in mind:

  • Request limit. The server limits requests per minute; with an API key, in the current version, the ceiling is low (30 per minute per IP). If you automate a large batch, space the calls out.
  • Product photos first. If you launch a product job without naming the product, there are no reference photos. Create the product, upload its photos and pass its identifier.
  • Size. Each uploaded file can be up to 10 MB.

A developer seen from behind in front of two blurred monitors in a bright office

Plugin or API: which to choose

The choice depends on who will work with Fotifai and how much you want to automate:

SituationBest route today
A small WooCommerce shop, no developer, wanting to try itThe plugin, knowing it generates from your direction and not from the product page photo
You want the work to start from your products' real photosThe Fotifai dashboard or the API, with the product created and its photos uploaded
You want to use an avatar, regenerate or retouchThe API (or the embedded library component)
A large catalog to import or update in batchesThe API, spacing out calls because of the request limit
Your shop is on PrestaShop or ShopifyThe API; the module and the app are in preparation

A security rule that holds for both routes: the API key gives access to your credit balance. Treat it like a password, do not paste it into code that gets published or into the browser, and revoke it from your account if you think it has leaked. Since there is a maximum of five keys per user, it is wise to use one per integration so you can withdraw only the one that misbehaves.

MCP: in preparation

MCP (Model Context Protocol) would let an AI assistant use Fotifai as a tool: create a job, look at the balance, review the library. In Fotifai's design it would be a thin proxy over the same API, key-authenticated, with no business logic of its own. Today it is not built: the design exists, the server does not. The website mentions it next to the API and, in the custom plan (Enterprise), as «MCP + own integration». Until it exists, the API is the way to automate.

PrestaShop and Shopify: on the way

The website talks about PrestaShop and Shopify. In the repository, PrestaShop is still a reserved placeholder and Shopify is planned; neither exists as an installable product. The site says «coming soon» for Shopify: read PrestaShop the same way, as in preparation. If you use another platform, the API is the route.

Who it is for and who it is not

The plugin is for you if your shop runs on WooCommerce and you want to try images without leaving the product editor; the API is for you if you have a developer (or an agency) and a large catalog to automate. It is not for you if your shop is on PrestaShop or Shopify and you need an installable module today, or if you expect the plugin to work from the photo already on the product page with no extra steps.

A small jewellery shop shelf with wooden stands holding simple silver necklaces and rings on linen

What is free and what is paid

The plugin is not charged separately: what you spend is the credits for each image, as in the dashboard. You can create the API key from your account. The pricing page places «API» in the Pro and Business plans, with a call cap on Pro (€49 a month, 500 credits) and the full API on Business (€99 a month, 1,000 credits); those per-plan caps are not implemented on the server yet, so treat them as announced. More in pricing and credits.

How it connects to the rest

What the plugin and the API deliver are the images from product mode and, with an avatar, from avatar mode. The underlying problem is the manual work described in uploading product photos to WooCommerce and PrestaShop by hand; and for corrections, the library and the masked retouch are in the API, not in the plugin.

Connect Fotifai to your shop

Request beta access, create an API key in your account and try the WooCommerce plugin or the API with your catalog.

Try Fotifai

Keep reading