Finault Documentation

Turn AI invoices into audit-ready journal entries. This documentation covers everything from basic invoice analysis to real-time gateway integration.

New to Finault? Start with the Quickstart guide to upload your first invoice in 60 seconds.

Quickstart

1. Upload an Invoice

Go to app.html and drag your AI provider CSV (OpenAI, Anthropic, Azure, or Google) into the upload zone. Or click "Try with Sample Data" to see how it works.

2. Review Allocation

Finault automatically detects your provider, extracts costs, and allocates to cost centers based on project metadata. Review the allocation breakdown and confidence scores.

3. Download Close Pack

Click "Download Complete Close Pack" to get a ZIP containing:

Core Concepts

Cost Centers

Cost centers are organizational units (teams, projects, departments) that consume AI resources. Finault maps invoice line items to cost centers using project metadata and custom rules.

Allocation Rules

Rules define how costs are assigned to GL codes and cost centers. Pattern matching (e.g., proj-platform-*ENG-001) allows flexible, automated allocation.

Confidence Scores

Each allocation has a confidence score (0-100%) based on the clarity of the metadata match. High confidence (90%+) means strong mapping; lower scores may need manual review.

Data Integrity

Every Close Pack includes a SHA-256 hash of the source data, ensuring the output can be verified against the original invoice. This is critical for audit compliance.

Invoice Analyzer

The Invoice Analyzer accepts CSV exports from major AI providers and automatically detects the format.

Supported Providers

ProviderExport SourceKey Fields
OpenAIUsage page CSVcost_in_usd, project_name, model
AnthropicBilling CSVamount, workspace, model
Azure OpenAICost Management exportCost, ResourceGroup, ServiceName
Google CloudBilling exportcost, project.id, service.description

Close Pack

The Close Pack is a finance-ready deliverable containing everything needed to close the books on AI spend.

Components

DocumentFormatPurpose
Executive SummaryPDFHigh-level spend overview for CFO/leadership
GL Journal EntryCSVImport-ready journal entries for ERP systems
Reconciliation CertificatePDFAudit trail with data integrity hash
Controls NarrativePDFSOX 404 compliant control documentation

Unit Economics PRO

Understand the true cost of AI in your business with unit economics calculations.

Metrics

Benchmark: AI costs above 30% of AI-attributed revenue may squeeze margins at scale.

Gateway Setup BUSINESS

Route all AI API calls through Finault Gateway for real-time cost attribution, budget enforcement, and compliance logging.

Quick Integration

Change one environment variable to start routing through Finault:

# For OpenAI
export OPENAI_BASE_URL="https://gateway.finault.ai/v1"
export FINAULT_API_KEY="fin_live_xxxxxxxxxxxx"

# For Anthropic
export ANTHROPIC_BASE_URL="https://gateway.finault.ai/anthropic"
export FINAULT_API_KEY="fin_live_xxxxxxxxxxxx"

Headers

Add cost attribution headers to your requests:

HeaderRequiredDescription
X-Finault-KeyYesYour Finault API key
X-Cost-CenterNoCost center code (e.g., ENG-001)
X-ProjectNoProject identifier
X-Budget-IdNoBudget to charge against

Gateway Endpoints

POST /v1/chat/completions

Proxy to OpenAI Chat Completions with automatic cost tracking.

GET /v1/usage

Real-time usage and cost metrics by cost center, project, or time period.

POST /v1/budgets/check

Check if a request would exceed budget before making the call.

Budget Enforcement BUSINESS

Set hard or soft limits on AI spend by team, project, or time period.

Budget Types

# Create a budget
curl -X POST https://gateway.finault.ai/v1/budgets \
  -H "Authorization: Bearer fin_live_xxx" \
  -d '{
    "name": "Platform Team Monthly",
    "cost_center": "ENG-001",
    "limit": 50000,
    "period": "monthly",
    "type": "hard",
    "alert_threshold": 0.8
  }'

API Authentication

All API requests require a Finault API key in the Authorization header.

Authorization: Bearer fin_live_xxxxxxxxxxxx

API Key Types

PrefixEnvironmentUse For
fin_live_ProductionLive API calls, real billing
fin_test_TestDevelopment, no billing

API: Analyze BUSINESS

POST /v1/analyze

Upload and analyze an invoice CSV. Returns parsed costs and detected provider.

curl -X POST https://gateway.finault.ai/v1/analyze \
  -H "Authorization: Bearer fin_live_xxx" \
  -F "file=@invoice.csv"

API: Allocate BUSINESS

POST /v1/allocate

Run cost allocation on analyzed invoice data.

API: Close Pack BUSINESS

POST /v1/close-pack

Generate a complete Close Pack ZIP from allocated data.

API: Verify

GET /v1/attest/verify

Verify a data integrity hash from a Close Pack.

curl "https://gateway.finault.ai/v1/attest/verify?hash=sha256:7f83b1657..."

Data Security

Encryption

Data Retention

TierRetention
FreeNo data stored (download only)
Pro90 days
Business2 years
EnterpriseCustom (up to 7 years)

Compliance

Standards

Questions? Email support@finault.ai or join our Slack community.