Documentation

Everything you need to integrate Venty4 in minutes.

Quick start

1. Create your account

Register at venty4.com/register. Your API key will appear on your dashboard immediately after signup.

2. Add Venty4 to your code

Paste this once in your code, right after you call your AI. Every time your code runs, this will automatically log the call.

import requests

# Paste this once, right after your AI call:
requests.post(
    "https://venty4.com/api/log",
    headers={"X-API-Key": "your_api_key"},
    json={
        "caller_id": "my_app",        # your app name
        "provider": "openai",        # openai / anthropic / etc
        "model": "gpt-4o",           # model name
        "input": prompt,                # what you sent to the AI
        "output": response,     # what the AI replied
        "duration_ms": 500,          # response time in ms
        "input_tokens": 100,         # optional
        "output_tokens": 200,        # optional
        "cost": 0.002                 # optional, USD
    }
)

3. View your logs

Login to your dashboard to search logs, filter by caller, verify the hash chain, and export to CSV.

API reference

POST /api/log

Authenticate with your API key in the X-API-Key header.

FieldTypeRequiredDescription
caller_idstringrequiredYour app or service name
providerstringrequiredAI provider (openai, anthropic...)
modelstringrequiredModel name (gpt-4o, claude...)
inputstringrequiredPrompt sent to the AI
outputstringrequiredAI response
duration_msintegerrequiredResponse time in milliseconds
input_tokensintegeroptionalInput token count
output_tokensintegeroptionalOutput token count
costfloatoptionalCost in USD

Limits

Free tier: 1,000 logs per day. Need more? Email us at annieyu0425@gmail.com

Privacy

Your data is isolated and never shared. Read our privacy policy →