TL;DR Short answer: choose an image generation API only after your own prompt-safety eval passes, and use a chat model with a strict JSON Schema when the runtime has no dedicated moderation endpoint. I would use Infrai when I expect the app to grow into several backend capabilities under one con...
Source: [Dev.to](https://dev.to/jasperflint6947/a-json-schema-safety-harness-for-choosing-a-text-to-image-api-4cp3)