Skip to main content

SVECTOR developer platform

Welcome to the official SVECTOR API Docs. This site provides everything you need to integrate SVECTOR’s powerful APIs into your applications. From authentication and request structure to real-time usage examples and integration guides — it's all here.

Try Spec Chat

SVECTOR Demo

curl https://api.svector.co.in/api/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SVECTOR_API_KEY" \
-d '{
"model": "spec-3-turbo",
"messages": [
{
"role": "user",
"content": "Write a one-sentence bedtime story about a unicorn."
}
]
}'

Key features

Chat completions
Generate human-like text responses for conversations, content creation, and more.

Knowledge-enhanced responses
Enhance responses with your own documents and knowledge collections.

Real-time streaming
Server-sent events for live responses and interactive applications.

File processing
Upload and process documents (PDF, DOCX, TXT, etc.) to create context-aware AI responses.

Multi-environment support
Works seamlessly across Node.js, Browser, Deno, Bun, and Cloudflare Workers.

TypeScript native
Full type safety and IntelliSense support for robust development.

EndpointDescription
/api/chat/completionsGenerate chat completions with Spec-Chat models
/api/modelsList available models
/api/v1/files/Upload files for knowledge enhancement
/api/v1/knowledge/{id}/file/addAdd files to knowledge collections

SDKs and libraries

JavaScript/TypeScript SDK
Official SDK with full feature support and type safety.

npm install svector-sdk
import { SVECTOR } from 'svector-sdk';

const client = new SVECTOR({
apiKey: process.env.SVECTOR_API_KEY,
});

const result = await client.conversations.create({
model: 'spec-3-turbo',
instructions: 'You are a helpful AI assistant.',
input: 'What is artificial intelligence?',
});

Deno/JSR support
Optimized package for Deno environments.

deno add jsr:@svector/svector

Authentication

All API requests require authentication using Bearer tokens:

Authorization: Bearer YOUR_SVECTOR_API_KEY

Get your API key from the SVECTOR Developer Portal.

Advanced features

Conversations API
Simple instructions + input interface for quick implementation.

Advanced Chat Completions
Full control with role-based messages and system prompts.

Knowledge Collections
Organize files for enhanced context-aware responses.

Robust Error Handling
Comprehensive error types and automatic retry logic.

Need help?

For any questions or support, please reach out to us through the following channels: