DEV Community

Nikolas
Nikolas

Posted on

1

Text Moderation API

Hey - we have released this one recently and we see quite some usage - I think its because more and more use cases include user generated content - and platform owners want to spend less time on manual moderation.

https://apyhub.com/utility/ai-text-moderation

enjoy - would like to hear your feedback!

Top comments (1)

Collapse
 
ranjancse profile image
Ranjan Dailata • Edited

Suggestion or Recommendation

Go with the extendable multi-provider approach. Imagine the provider based concept, where you can set the provider config and drive the moderation aspects.

From the below example, you are having a tight coupling with the "Google" provider. Hence, it could be definitely improved for accomplishing a provider based design.

curl --location --request POST 'https://api.apyhub.com/ai/text/moderation' \
--header 'apy-token: {{token}}' \
--header 'Content-Type: application/json' \
--data '{
    "text": "Shut up!",
    "requested_service": "google",
    "google": {
        "key": "your-google-key"
    }
}
Enter fullscreen mode Exit fullscreen mode

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay