Skip to content
PALM SOUQ

Platform overview

The Financial OS for GenAI Engineering & SaaS Margins.

PALM SOUQ sits in the request path between your agents and every model provider. It prices each token for the tenant that caused it, stops runaway loops before the next call is billed, and syncs usage into your billing system.

One base URL change · <5 ms added latency · Zero Payload Retention
policy decision1.4 ms
tenantnorthwind-ops · team tier
modelclaude-sonnet-4.5 → claude-haiku-4.5
reasonmonthly budget 91% ≥ fallback threshold 90%
loop heuristics4 of 4 clear
projected cost$0.0041 (was $0.0123)
billingstripe meter llm_overage_tokens +1,212
fallback appliedCustomer kept working. Margin kept intact.

Request path

Six stages, one round trip.

Step through what happens to a single governed call, from your SDK to the billing webhook. Everything before the provider runs inside the latency budget; everything after it runs off the request path.

trace · req_01JD8Q4M2X9F1/6

Client SDK

0 ms

Your existing OpenAI or Anthropic client with base_url set to the gateway. Tenant, tier, feature and user ride along as headers. The PALM SOUQ SDK wrapper adds fail-open behaviour: if the gateway is unreachable, it calls the provider directly and queues the usage record.

POST
https://gateway.palmsouqltd.com/v1/chat/completions
X-PalmSouq-Tenant
acme-legal
X-PalmSouq-Tier
pro
X-PalmSouq-Feature
contract-review
fail_mode
open
Added latency at p99
<5 ms
Loop detected to 429
<50 ms
Gateway SLA (Scale)
99.999%
Edge points of presence
280+

High availability

Fail-open by default, so the gateway is never your outage.

The gateway runs active-active across five regions behind anycast. Even so, a network partition between your servers and the edge is possible, and you decide in advance what it means.

  • Fail-open keeps 100% of requests flowing and replays usage later.
  • Fail-closed guarantees no unmetered spend during the window.
  • Set it globally, per tenant tier or per feature.
palmsouq.init(fail_mode="open")

SDK fail mode

Network to gateway

Response200 direct to provider
Route
SDK → provider (gateway bypassed after 250 ms)
Metering
Usage queued in SDK, replayed on recovery
Breakers & quotas
Paused for the outage window
User impact
None

Fail-open keeps your product up. The tradeoff: calls made during the partition are not governed in real time, only metered after the fact.

Scope

What PALM SOUQ does not do.

Clear boundaries make a proxy easier to trust. These are deliberate choices, not gaps on a roadmap.

PALM SOUQ does notWhat that means for you
Sell or resell AI modelsYou keep your own provider accounts, keys, rate limits and enterprise agreements. PALM SOUQ never marks up tokens.
Store or train on your promptsZero Payload Retention: prompts and completions stream through memory and are never written to disk. We keep counts, ids and costs.
Require Kubernetes sidecarsNo agents to deploy and no service mesh changes. One base URL and a few headers; an optional thin SDK adds fail-open.
Replace your observability stackWe export metrics and spans to Datadog or any OpenTelemetry backend instead of asking you to move.
Decide your pricingWe give finance exact COGS per customer. What you charge, and how, stays in your billing system.

Platform questions

How much latency does the gateway add?

Under 5 ms at p99 for requests handled by the nearest edge PoP. Policy and counters live in edge memory, so the in-path decision does not wait on a database. Streaming responses are relayed chunk by chunk, so time to first token is unchanged apart from that budget.

What happens if PALM SOUQ is unavailable?

With the default fail-open SDK setting, your application calls the provider directly when the gateway cannot be reached, and usage is queued and replayed when it recovers. You can choose fail-closed per tenant or per feature when budget containment matters more than availability.

Does PALM SOUQ see my prompts?

Prompts and completions pass through gateway memory so they can be forwarded, and are never written to disk, logs or analytics. Loop heuristics work on hashes of tool names and arguments, token counts and short-lived similarity fingerprints that expire with the session.

Which providers are supported?

OpenAI, Anthropic, Google Gemini and Vertex AI, AWS Bedrock, Azure OpenAI, DeepSeek, Groq, Mistral and Together AI, plus any OpenAI-compatible endpoint you register, such as a self-hosted vLLM server.

Don't wait for a surprise $10,000 OpenAI invoice.

Route your agent traffic through PALM SOUQ in 2 minutes. Change one base URL, pass a tenant header, and every token is attributed and governed.

14-day free production trial · 100k requests included · no card required