AI Rate Card

Input, $/1M $0.48

Output, $/1M $0.03

Context 131 072

Accepts text

Last checked 04.11.2026 12:00:14 UTC

Source provider's page

Price alerts

Sign in to follow the price

API

OpenAI-compatible API: the official OpenAI SDKs work with this base URL. Replace YOUR_API_KEY with your key from the provider.

API base URL
https://api.edenai.run/v3
Endpoint
https://api.edenai.run/v3/moderations
Model id
cloudflare/@cf/meta/llama-guard-3-8b
curl
curl https://api.edenai.run/v3/moderations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "cloudflare/@cf/meta/llama-guard-3-8b", "input": "text to check"}'
Python
import requests

r = requests.post(
    "https://api.edenai.run/v3/moderations",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={
      "model": "cloudflare/@cf/meta/llama-guard-3-8b",
      "input": "text to check"
    },
)
print(r.json())
JavaScript
const r = await fetch("https://api.edenai.run/v3/moderations", {
  method: "POST",
  headers: {Authorization: "Bearer YOUR_API_KEY", "Content-Type": "application/json"},
  body: JSON.stringify({
    "model": "cloudflare/@cf/meta/llama-guard-3-8b",
    "input": "text to check"
  }),
});
console.log(await r.json());
Request (JSON)
{
  "model": "cloudflare/@cf/meta/llama-guard-3-8b",
  "input": "text to check"
}
Response (JSON)
{
  "id": "modr-...",
  "model": "cloudflare/@cf/meta/llama-guard-3-8b",
  "results": [
    {
      "flagged": false,
      "categories": {
        "harassment": false,
        "violence": false
      },
      "category_scores": {
        "harassment": 0.0001,
        "violence": 0.0002
      }
    }
  ]
}

The address is taken from the provider's model list; check it against the provider's documentation.

Provider's API documentation

Source: AI Rate Card, https://airatecard.com/en/c/offer%3Aedenai%7Ccloudflare/%40cf/meta/llama-guard-3-8b, prices checked 2026-11-04; seller's page: https://edenai.co

Technical details

ID: offer:edenai|cloudflare/@cf/meta/llama-guard-3-8b