API Docs
seenlife docs
API Documentation
OpenAI-compatible API relay documentation for chat, streaming, vision, tools, images, video, audio, embeddings, billing, and SDK usage.
Quickstart
Make your first request with one OpenAI-compatible base URL.
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.SEENLIFE_API_KEY, baseURL: "https://api.seenlife.us/v1" });
const r = await client.chat.completions.create({ model: "deepseek/deepseek-v4-pro", messages: [{ role: "user", content: "Hello" }] });Authentication
Use a dashboard API key as a bearer token.
Authorization: Bearer YOUR_API_KEYChat Completions
Send standard OpenAI-style chat requests.
POST https://api.seenlife.us/v1/chat/completionsStreaming
Set stream: true and read server-sent events until [DONE].
data: {"choices":[{"delta":{"content":"Hello"}}]}
data: [DONE]Vision
Vision models accept text plus image_url content parts.
{ "type": "image_url", "image_url": { "url": "https://..." } }Function Calling
Tool-capable models can return tool_calls with JSON arguments.
"tools": [{ "type": "function", "function": { "name": "get_weather" } }]Structured Output
Use JSON mode or JSON schema mode for parseable responses.
"response_format": { "type": "json_object" }Billing
Usage is charged from prepaid wallet balance using per-model pricing.
Top up, call models, review usage and spending in dashboard.SDKs
Python, Node.js, cURL and OpenAI-style clients work with a custom base URL.
baseURL: "https://api.seenlife.us/v1"