Skip to main content
Curtly provides a 100% OpenAI and Anthropic API-compatible reverse proxy. By simply pointing your client library’s baseURL (or base_url) to https://curtly.dev/v1, your requests are automatically passed through both optimization engines:
  1. Input Stage: Prompts and context chunks are parsed in-memory via Safe Vault and compressed.
  2. Output Stage: Ponytail brevity directives are injected to prevent model verbosity.
  3. Forwarding: The optimized payload is forwarded to your target provider (OpenAI, Anthropic, OpenRouter, Groq, or custom endpoints) with sub-5ms latency overhead.

1-Line Integration Examples


Pass-Through Key Mode

You can also use Curtly in Pass-Through Mode by providing your raw provider key (sk-..., sk-ant-..., sk-or-v1-...). Curtly auto-detects the provider and forwards the request transparently using your own upstream quota without storing credentials.

Streaming (SSE) Support

Curtly fully supports server-sent events (stream: true) for both OpenAI and Anthropic protocols with zero buffering delay:

Telemetry Response Headers

Every proxy response includes transparent token savings headers: