
Modération de texte
About Modération de texte Microsoft Azure
La modération des textes consiste à analyser les contenus à la recherche de propos offensants, sexuellement explicites ou suggestifs ; elle permet également de vérifier s'il existe des contenus faisant référence à l'automutilation, à la violence, au racisme ou aux discours de haine.
Modération de texte Microsoft Azure est le modèle par défaut de Microsoft Azure pour la tâche « Modération de texte », disponible sur Eden AI, à partir de 1 $ / 1K requêtes. Appelez-le avec la même clé API que tous les autres modèles Eden AI, en envoyant sa chaîne de modèle à l'endpoint Universal AI, avec un traitement en Europe.
Tasks and prices
Modération de texte Microsoft Azure is available on Eden AI for 1 tasks. Each task has its own model string and price: send that string to the Universal AI endpoint to use the model for that task.
Parameters
What you send and what you get back when you call Modération de texte Microsoft Azure through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.
Entrée
- text (obligatoire) : texte. Texte à modérer
- language : texte. Code de langue ISO 639-1
Réponse
- nsfw_likelihood
- items
- nsfw_likelihood_score
Estimate your monthly cost
Enter your monthly volume for Modération de texte to compare Modération de texte Microsoft Azure with its cheapest alternatives.
Call Modération de texte Microsoft Azure with Eden AI
Send the model string to the Universal AI endpoint. To use another model, copy its string from the table above.
import requests
response = requests.post(
"https://api.edenai.run/v3/universal-ai",
headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
json={
"model": "",
"input": {},
},
)
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": "", "input": {}}'
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: "",
input: {},
}),
});
console.log(await response.json());
"text": "Eden AI gives you access to the best AI models through one API."
Questions about Modération de texte Microsoft Azure
On Eden AI, Modération de texte Microsoft Azure costs 1 $ / 1K requêtes for Modération de texte. The Tasks and prices table lists the price for each task, and you only pay for what you use.
On Eden AI, Modération de texte Microsoft Azure is available for: Modération de texte. Input: Texte. Output: nsfw_likelihood, items, nsfw_likelihood_score.
Yes. Modération de texte Microsoft Azure is processed in Europe for at least one task: see the Regions column in the Tasks and prices table.
Asynchronous: you start a job, then get the result by polling it or through a webhook. This suits long files such as audio, video or multipage documents.
Eden AI offers Modération de texte from 3 providers, all callable with the same API key. The cheapest models are compared just below.
Alternatives for Modération de texte
Other Modération de texte models you can call with the same key, cheapest first.
More from Microsoft Azure
Other Microsoft Azure models on Eden AI, for every task.
.avif)
