Skip to main content

Register

Create a new Vrin account. This is a static method — no client instance needed.
from vrin import VRINClient

result = VRINClient.register("user@example.com", "your-password", name="Jane Smith")

Parameters

email
string
required
Email address for the new account.
password
string
required
Password for the new account.
name
string
Display name (optional).

Login

Authenticate and receive an API key. Also a static method.
result = VRINClient.login("user@example.com", "your-password")
api_key = result["api_key"]

# Now create a client
client = VRINClient(api_key=api_key)

Parameters

email
string
required
Account email address.
password
string
required
Account password.

Returns

{
  "api_key": "vrin_abc123...",
  "user_id": "user_xyz",
  "email": "user@example.com"
}

API key management

These methods require an authenticated client instance.

List API keys

keys = client.list_api_keys()

Create an API key

new_key = client.create_api_key(name="Production Integration")
print(new_key["api_key"])  # Save this -- it won't be shown again
name
string
Optional human-readable name for the key.

Delete an API key

client.delete_api_key("key_id_to_delete")
key_id
string
required
The ID of the key to delete (not the key itself).

Check plan and limits

limits = client.get_limits()
print(f"Plan: {limits['plan']}")
print(f"Queries remaining: {limits['queries_remaining']}")
print(f"Inserts remaining: {limits['inserts_remaining']}")
Returns:
{
  "plan": "free",
  "queries_remaining": 100,
  "inserts_remaining": 50,
  "allowed_models": ["gpt-4o-mini"],
  "max_file_size_mb": 10
}

API key prefixes

PrefixRouting
vrin_Vrin shared infrastructure
vrin_ent_Customer’s own AWS account (enterprise)
The prefix determines server-side routing. Standard clients and enterprise clients use the same query/insert/upload methods — the backend handles infrastructure routing transparently.