FireGuard

Usage & Billing

Understand request units, credits, images, chunking, and daily limits for FireGuard.

FireGuard bills guardrail work in request units. One request unit consumes one credit from your organization balance, and each guardrail phase is measured separately.

A typical protected turn can have two phases:

  1. input_guardrails after the user message and before your model runs.
  2. output_guardrails after the model response and before you return it.

What Affects Units

FactorHow it affects units
Long textText is split into 5000-character windows with 5% overlap.
Images on inputImages add policy-scoring units based on base64 length.
Policies plus securityText units are counted once per phase, not once per guardrail type.
Daily capOrganizations also have a daily request-unit limit.

If at least one guardrail runs, FireGuard bills at least one unit for that phase. normal and fast execution modes use the same unit formula.

Long Content

Long text is evaluated in overlapping windows of up to 5000 characters. Each window is scored separately and results are merged:

GuardrailMerge behavior
PoliciesKeep the highest confidence per policy across windows.
SecurityTreat the phase as unsafe if any window is unsafe.

For input_guardrails, policies score the last user message while security scores the full conversation history plus OCR and image metadata when images are present. If both run, billing uses the larger text window count.

For output_guardrails, policies and security both score the same output string.

Images On Input

Only input_guardrails accepts top-level images[].

Each image item requires:

FieldDescription
base64Raw base64 bytes without a data:image/...;base64, prefix.
mimeTypeMIME type such as image/png or image/jpeg.
nameOptional label or file name.

Limits:

  • Up to 6 images per request.
  • Each base64 string can be about 7 MB.
  • Send images in images[], not inside messages_history[].content.

Policies use images for multimodal scoring with the latest user message. Security does not receive raw base64; it uses OCR and metadata text combined with conversation history.

Image Units

Image units apply only on the policies path:

units per image = ceil(base64.length / 5000), minimum 1

Example: an image with about 10,000 base64 characters adds 2 image units. When both policies and security run, text units are still counted once and image units are added on top.

Credits And Limits

Credits and daily limits are independent checks:

ConditionHTTP status
Not enough credits412 Precondition Failed
Daily request-unit limit exceeded429 Too Many Requests

The daily limit resets on a UTC calendar day. The default organization cap is 1,000,000 request units per day unless Fireraven configures a different limit for your organization.

Buy credits and view balance in Organization Settings under Plan and Usage. Your first default organization starts with 500 free credits.

Next Steps

On this page