• funny dolphin up to no good
  • jumping clown about to swim


As text prompts are for content creation, so we could look into the way images are dynamically generated.

How it works

  width="256" height="256"
  prompt="funny dolphin up to no good"
<script type="module">import 'wc-img-ai';</script>

The api server itself needs to receive this body and return a string with the url of the image

Function: POST

This function sends a request to the an API to generate an image based on a given prompt.

Request Body Format

Example Request Body

  "prompt": "a sleeping little kitten",
  "width": 300,
  "height": 300


it is expected to return a simple string with the url of the image