Choose from three integration patterns. Direct SDK calls, webhook caching, or managed agents.
promptlayer_client.run
– zero-setup SDK sugarpromptlayer_client.run
(quickest path)promptlayer_client.run()
directly from your application code.
💡 Tip – If latency is critical, enqueue the log to a background worker and let your request return immediately.
Tip: Most teams push the track_to_promptlayer onto a Redis or SQS queue so as to not block on the logging of a request.Read the full guide: PromptLayer Webhooks ↗
Requirement | promptlayer_client.run | Webhook Cache | Managed Agent |
---|---|---|---|
⏱️ extreme latency reqs | ❌ | ✅ | ✅ |
🛠 Single LLM call | ✅ | ✅ | ➖ |
🌩 Complex plans / tools | ➖ | ➖ | ✅ |
👥 Non-eng prompt editors | ✅ | ✅ | ✅ |
🧰 Zero ops overhead | ✅ | ➖ | ✅ |
✉️ Need a hand? Ping us in Discord or email hello@promptlayer.com—happy to chat architecture!