baseURL (or base_url) to https://curtly.dev/v1, your requests are automatically passed through both optimization engines:
- Input Stage: Prompts and context chunks are parsed in-memory via Safe Vault and compressed.
- Output Stage: Ponytail brevity directives are injected to prevent model verbosity.
- 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: