capabilities.work

Moderate then Generate Image

A 2-step recipe with OpenAI. We can help you get access.

Recipe · 2 steps

Moderate then Generate Image

with OpenAI

Moderate an image prompt and generate an image only when allowed.

  1. Classify the image prompt for policy violations.
  2. Generate an image from the moderated, allowed prompt.
What you'll need to have ready
  • apiKey: OpenAI API key used as a Bearer token.
  • imageModel: The image model id (e.g. dall-e-3 or gpt-image-1).
  • prompt: A text description of the desired image.
For your developer

Arazzo workflow openai:moderate-then-generate-image, 2 operations: createModeration → createImage. Specs on APIs.io.