← Back to contents

Image generation

The application supports API and Web image providers. Regular page images are created at the end of the pipeline. Home-page images can be generated separately from the Images tab.

Images tab

Choosing an image channel

If you needChooseWhy
The most stable automated flowAPI providersLess dependence on browser UI
A service available only through a site or subscriptionWeb providersRuns through the browser session

Available providers

Image providers are documented as two groups:

  • API providers: OpenAI DALL-E, Gemini, Pollinations, HuggingFace Inference, HuggingFace Space, OpenRouter Image, Replicate, CLIProxyAPI.
  • Web providers (CDP): Google Whisk, Adobe Firefly, Bing Images, ImageFX, GPT Images, Gemini (web), MS Create, Copilot.

Cloudflare Workers AI

Cloudflare Workers AI is added as an API image provider through your own Cloudflare Worker. SiteTexter sends the prompt to the Worker, the Worker calls env.AI.run(...), and returns image bytes.

  1. Create a Cloudflare Worker and paste the code from docs/8-lst/worker.js.
  2. Set the Worker secret PROVIDER_API_KEY. This is the Worker Password sent by SiteTexter as Authorization: Bearer ....
  3. In SiteTexter, open API and add Cloudflare Workers AI Images or use the preset.
  4. Set baseUrl to the Worker URL and apiKey to the Worker Password.
  5. Optionally fill cloudflare_account_id and cloudflare_api_token for model catalogue loading. That token is separate from the Worker Password.
  6. Run connection test and a sample image, then assign the provider to the required image prompts.
Two secrets: Worker Password protects the public Worker. Cloudflare API Token is only for reading the Cloudflare model catalogue.

HuggingFace

HuggingFace can be used for text and images. Text uses HF Router as an OpenAI-compatible API. Images can use either Inference or Spaces.

ScenarioProviderFill
Text through HF Routerhuggingface-routerhttps://router.huggingface.co/v1, HF token, model id with optional suffix such as :cheapest
Images through Inferencehuggingface-inferenceHF token, model id such as black-forest-labs/FLUX.1-schnell, width/height/steps
Images through Spacehuggingface-spacespace_id as owner/space or a Space URL, HF token, optional api_name

Each Space can have its own API signature. If the default /generate_image endpoint does not fit, open the HF Space provider settings and check endpoint, width, height, steps, seed, and extra parameters.

API mode uses API image providers. Web mode uses Web providers when the image source is selected in Web → Web Settings. Combo uses API for texts and Web for images, with optional API-image attempt before Web fallback.

Important: the API branch needs a provider with the Images purpose. For the Web branch, check the browser profile and CDP session first.

Adding images after finished texts

You can generate texts first with images disabled, then return to the same project and add only the missing images.

  1. Open the finished project and enable image generation.
  2. Choose the mode that should create images: API for API image providers or Web / Combo for Web providers.
  3. On the Images tab, run generation for all sheets or only the required sheet.

The Images tab runs image repair: it checks ImgName-1, ImgName-2, and files in the project images/ folder, then fills only missing slots without restarting already saved images.

Practical tip: if texts are already finished, the Images tab is more targeted than the general start button. The pause Resume button is only for continuing a paused run; the general start flow can also check other enabled project stages.

Columns and files

Regular images are saved in the project images/ folder. Home-page images are stored in Imagesmain/. Template Mode backgrounds are stored in ImageTemplates/. Excel stores file names in ImgName-1 and ImgName-2.

Generation modes

  • Normal — provider generates an image from the current prompt.
  • Excel ImgPrompt — a text model first creates a detailed English prompt and saves it to Excel, then the image provider generates the image.
  • Template Mode — AI background plus text and frame.
  • Effects — local postprocessing without another LLM request.
  • Recompose — targeted regeneration of existing images.

Images tab settings

  • Aspect ratio.
  • Round-robin image-provider rotation.
  • Image browser for review, filtering, and targeted regeneration.
  • Resize, quality, and output format: JPEG / WebP / PNG.
  • Separate home-page image generation.

Image prompts

In normal mode, prompt templates for categories, clusters, articles, service pages, and the home page are configured in Prompts → Images. Test a new prompt on a short series before running it across the whole project.

ImgPrompt mode: prompt first, image second

Use this mode when the image provider needs a more detailed English prompt than the direct template. SiteTexter collects the page data, asks a text model to describe one frame, saves the result in the Excel ImgPrompt column, and only then starts image generation.

  1. Configure working text and image providers for the selected API, Web, or Combo mode.
  2. On Control, enable Generate images and Create and use ImgPrompt from Excel.
  3. On Prompts → ImgPrompt, check the mode status, source templates, and validation result.
  4. Run 1-2 rows as a short test before processing the whole project.

If ImgPrompt is empty, the current text provider creates one English paragraph and SiteTexter writes it to Excel before requesting the image. An existing valid ImgPrompt is reused, including after a pause or a new project run.

The first and second image slots use the same saved base prompt. SiteTexter adds the configured variation for the second and repeated images without requesting another base prompt from the text model.

Two sequential requests: every new ImgPrompt needs a text-model request followed by a separate image-provider request. Allow for the extra request time and text-model cost.
Return to normal mode: turn off Create and use ImgPrompt from Excel. SiteTexter then uses the direct templates from Prompts → Images; saved ImgPrompt values are not deleted from Excel.
Targeted regeneration: Image Browser and Project Texts Manager share one queue controller. The provider filter selected in Image Browser is reused from the texts manager. A successful replacement follows active processing settings, writes JPEG, WebP, or PNG, and updates Excel only after the file replacement succeeds.
Common mistake: running a full image pass with a new provider or prompt before checking 1-2 rows through the image browser, Recompose, or a short sheet-only run.

Which images to create

The main image switch includes or skips the image-generation stage. Home-page images are controlled separately and stored in Imagesmain/.

Create and use ImgPrompt from Excel switches images from direct templates to the two-stage ImgPrompt mode.

  • 1 image fills only ImgName-1 for a regular row. This is the basic choice with fewer provider requests.
  • 2 images fills ImgName-1 and ImgName-2 on regular sheets. Use it when the site template actually displays a second image.
  • If texts are already finished, the Images tab can add only the missing files in a separate run.

The project-level Generate section and cluster texts option is available for Levels 3 and 4. With it off, sections and clusters keep their structure and IntentTerms, but their plans and final texts are not generated. If the global choice is two images, these parent rows use only ImgName-1 while articles still use both slots. An existing ImgName-2 is preserved and becomes active again when the option is enabled.

Targeted regeneration in Image Browser

Image Browser can queue one or several saved files for regeneration without restarting the whole project. The provider filter limits which image providers may be used for those tasks.

Queued images show their current state in the browser. A successful result is reloaded from disk and refreshed in the preview; a failure is reported for the individual task so it can be retried separately.

Image format and cropping

Available formats are square 1:1, portrait 3:4, landscape 4:3, and wide 16:9. An API provider normally receives the selected ratio in the request; a provider-specific format can be used instead when configured.

The format is not forced on a Web provider. Crop Web crops the downloaded Web result to the selected ratio; with it off, the original result ratio is preserved. Cropping may remove content near the edges, so test several images first.

Image-provider rotation

With round-robin enabled, each new image starts with the next available provider. The remaining providers stay in the fallback chain: if the first one fails, the application tries the next ones.

With rotation off, every image starts with the first provider in the configured order, so the list acts as priorities. Rotation changes only the starting provider; it does not send one image to several providers at the same time.

What Image Browser shows

The folder selector separates regular content images in images from home page images in Imagesmain. For the regular folder, the Excel filter keeps only files referenced by ImgName-1 or ImgName-2; turn it off to see unlinked disk files as well.

A file tooltip shows its name, linked Excel sheets, rows and cells, known provider, prompt source, and last regeneration error. An unlinked file is marked “No Excel link.” The counter also warns about Excel references whose files are missing from disk.

Deleting images in the browser

After confirmation, selected files are deleted and all their Excel references are cleared. If one file is referenced by several rows, every found cell is cleared. A file with active regeneration cannot be deleted.

The workbook change is saved as part of the deletion. If saving fails, the application attempts to restore both the file and its old references and reports the result in the status area. Use this for individual failed images; use dedicated actions for a bulk rebuild.

Shared API image-generation parameters

Diffusion steps is the fallback generation step count, while Output quality is the fallback output quality or compression. They are used by image API providers that support the corresponding option.

A provider-specific imageParameters.steps overrides the shared step value. Quality is mapped to the provider API: for example, Runware receives outputQuality, while SiliconFlow receives its generation-quality option. More steps do not guarantee a better image and usually increase request duration and cost.