KeyShare API Documentation
Programmatically rent, proxy, and manage AI compute and SaaS subscriptions.
Overview
The KeyShare API allows developers to wrap premium tool requests (like Midjourney, ChatGPT API, or proprietary data sources) and route them securely through our provider network. This is especially useful for "The AI Content Marathon" or "The Market Research Deep Dive" use cases where UI access is not strictly required.
Authentication
Authenticate your API requests using a Bearer token in the `Authorization` header.
Authorization: Bearer ks_live_XXXXXXXXXXXXXXXXXXXX
Endpoints
POST
/v1/proxy/generative-aiSend a prompt to a specific generative AI model using a rented compute slot. The request is routed through a provider's active API quota.
Request Body
{
"target_service": "midjourney",
"provider_tier": "pro_fast",
"prompt": "cyberpunk city skyline at night, neon lights --ar 16:9",
"max_cost_cents": 50
}GET
/v1/sessions/activeRetrieve a list of all your currently active rented browser sessions and their remaining TTL (Time To Live).
Response
{
"sessions": [
{
"id": "sess_892nf109f",
"service": "Enterprise Access",
"expires_at": "2026-06-02T14:30:00Z",
"remaining_seconds": 128400,
"status": "active"
}
]
}