INTEGRITY Cloudflare Docs

Content-based asset creation

Combining text-generation models with text-to-image models can lead to powerful AI systems capable of generating visual content based on input prompts. This integration can be achieved through a collaborative framework where a text-generation model generates prompts for the text-to-image model based on input text.

Here's how the process can work:

Example uses of such compositions of AI models can be employed to generation visual assets for marketing, publishing, presentations, and more.

Asset generation

Figure 1:Content-based asset generation
Figure 1: Content-based asset generation
  1. Client upload: Send POST request with content to API endpoint.
  2. Prompt generation: Generate prompt for later-stage text-to-image model by calling Workers AI text generation models with content as input.
  3. Safety check: Check for compliance with safety guidelines by calling Workers AI text classification models with the previously generated prompt as input.
  4. Image generation: Generate image by calling Workers AI text-to-image models previously generated prompt.