
Textmoderation
About Textmoderation von Google Cloud
Bei der Textmoderation wird der Text auf anstößige, sexuell explizite oder anzügliche Inhalte überprüft; außerdem wird geprüft, ob Inhalte vorhanden sind, die Selbstverletzung, Gewalt, Rassismus oder Hassreden betreffen.
Textmoderation von Google Cloud ist das Standardmodell von Google Cloud für die Aufgabe „Textmoderation“, verfügbar auf Eden AI, ab 5 $ / 1M Zeichen. Rufen Sie es mit demselben API-Schlüssel wie alle anderen Eden-AI-Modelle auf, indem Sie seinen Modell-String an den Universal-AI-Endpoint senden.
Tasks and prices
Textmoderation von Google Cloud is available on Eden AI for 1 tasks. Jede Aufgabe hat ihren eigenen Modell-String und Preis: Senden Sie diesen String an den Universal-AI-Endpoint, um das Modell für diese Aufgabe zu nutzen.
Parameters
What you send and what you get back when you call Textmoderation von Google Cloud through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
Eingabe
- text (Pflichtfeld): Text. Zu moderierender Text
- language: Text. ISO 639-1-Sprachcode
Antwort
- nsfw_likelihood
- items
- nsfw_likelihood_score
Estimate your monthly cost
Enter your monthly volume for Textmoderation to compare Textmoderation von Google Cloud with its cheapest alternatives.
Call Textmoderation von Google Cloud with Eden AI
Senden Sie den Modell-String an den Universal-AI-Endpoint. Um ein anderes Modell zu nutzen, kopieren Sie dessen String aus der Tabelle oben.
import requests
response = requests.post(
"https://api.edenai.run/v3/universal-ai",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "text/moderation/google",
"input": {"text": "Eden AI bietet Ihnen über eine einzige API Zugriff auf die besten KI-Modelle."},
},
)
print(response.json())
curl https://api.edenai.run/v3/universal-ai \
-H "Authorization: Bearer YOUR_EDENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "text/moderation/google", "input": {"text": "Eden AI bietet Ihnen über eine einzige API Zugriff auf die besten KI-Modelle."}}'
const response = await fetch("https://api.edenai.run/v3/universal-ai", {
method: "POST",
headers: {
Authorization: "Bearer YOUR_EDENAI_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "text/moderation/google",
input: {"text": "Eden AI bietet Ihnen über eine einzige API Zugriff auf die besten KI-Modelle."},
}),
});
console.log(await response.json());
"text": "Eden AI bietet Ihnen über eine einzige API Zugriff auf die besten KI-Modelle."
Questions about Textmoderation von Google Cloud
On Eden AI, Textmoderation von Google Cloud costs 5 $ / 1M Zeichen for Textmoderation. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, Textmoderation von Google Cloud is available for: Textmoderation. Input: Text. Output: nsfw_likelihood, items, nsfw_likelihood_score.
Eden AI offers Textmoderation from 4 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for Textmoderation
Other Textmoderation models you can call with the same key, cheapest first.
More from Google Cloud
Other Google Cloud models on Eden AI, for every task.
.avif)

