Florentin

From Beta to Business in Days

Stop building billing. Start shipping features.

From Beta to Business in Days

Ship Faster

Building took 2 weeks. Billing with Florentin: 2 days.

Phase
Without Florentin
With Florentin
Building your AI
2 weeks
2 weeks
Adding billing
2 months
2 days
Total
10 weeks
16 days

Simple API

3 lines of code. Done.

Fast Integration

From zero to live in hours.

Usage-Based

Charge by tokens, requests, credits.

Integration in 5 Minutes

Simple API, powerful features

Track Usage

from florentin import Florentin client =
      Florentin(api_key="sk_live_...") # Track API usage per customer response =
      client.usage.record( customer_id="cust_abc123", product_id="prod_gpt4_api", quantity=1500,
      unit="tokens", metadata={ "model": "gpt-4", "endpoint": "/v1/chat/completions" } )
      print(f"Usage recorded: {response.id}")
import { Florentin } from
      "florentin"; const client = new Florentin({ apiKey: "sk_live_..." }); // Track API usage per
      customer const response = await client.usage.record({ customerId: "cust_abc123", productId:
      "prod_gpt4_api", quantity: 1500, unit: "tokens", metadata: { model: "gpt-4", endpoint:
      "/v1/chat/completions" } }); console.log(`Usage recorded: ${response.id}`);
import
      "github.com/florentin/florentin-go" client := florentin.NewClient("sk_live_...") // Track API
      usage per customer response, err := client.Usage.Record(ctx, &florentin.UsageParams{
      CustomerID: "cust_abc123", ProductID: "prod_gpt4_api", Quantity: 1500, Unit: "tokens",
      Metadata: map[string]string{ "model": "gpt-4", "endpoint": "/v1/chat/completions", }, })
      fmt.Printf("Usage recorded: %s
", response.ID)

Get Usage Summary

# Get usage summary for billing period summary =
      client.usage.get_summary( customer_id="cust_abc123", start_date="2026-01-01",
      end_date="2026-01-31" ) print(f"Total tokens: {summary.total_quantity}") print(f"Estimated
      cost: ${summary.estimated_cost}")
// Get usage summary for billing period
      const summary = await client.usage.getSummary({ customerId: "cust_abc123", startDate:
      "2026-01-01", endDate: "2026-01-31" }); console.log(`Total tokens: ${summary.totalQuantity}`);
      console.log(`Estimated cost: $${summary.estimatedCost}`);
// Get usage summary for
      billing period summary, err := client.Usage.GetSummary(ctx, &florentin.SummaryParams{
      CustomerID: "cust_abc123", StartDate: "2026-01-01", EndDate: "2026-01-31", })
      fmt.Printf("Total tokens: %d
", summary.TotalQuantity) fmt.Printf("Estimated cost: $%.2f
",
      summary.EstimatedCost)

AI-Native Documentation

Built for developers who move fast

  • AI-friendly API design
  • Copy-paste examples in Python, Node, Go
  • Interactive API reference
docs.florentin.io
AI-Native Documentation

Ready to launch in days, not months?

Join the waitlist and be among the first to use Florentin.

Join Waitlist