POSThttps://api.humanloop.com/v5/prompts/log
Query Parameters
Body Parameters
View in API Reference
Request
1from humanloop import Humanloop
2
3client = Humanloop(api_key="YOUR_API_KEY", )
4client.prompts.log(
5 path="persona",
6 prompt_tokens=100,
7 output_tokens=220,
8 prompt_cost=0.00001,
9 output_cost=0.0002,
10 finish_reason="stop",
11 created_at="2024-07-19T00:29:35.178992",
12 provider_latency=6.5931549072265625
13)
Response