Document Utilities
Gemini & OpenRouter Setup (BYOK)
DEQLYNK follows a BYOK model: Bring Your Own Key. You stay in control of third-party provider usage, costs, and security boundaries while keeping local-first inference as the default foundation.
Why Enable External APIs?
- Use stronger teacher models for targeted distillation.
- Fallback for specific high-complexity prompts.
- Accelerate quality improvements while preserving local runtime ownership.
Part A: Get a Google Gemini API Key
- Sign in with your Google account and open Google AI Studio.
- Create a new API key in the project you want to bill/track.
- Copy the key immediately and store it in a password manager.
- Never commit the key to source control.
Part B: Get an OpenRouter API Key
- Create/login to your OpenRouter account.
- Open API Keys in account settings.
- Generate a key with the minimum permissions required.
- Copy and store the key securely.
Where to Paste Keys in DEQLYNK
After logging in as owner:
- Open
/dashboard. - Go to API & Security tab.
- Paste keys in the BYOK fields (Gemini and OpenRouter).
- Click Save API Keys to persist them to owner configuration.
Dashboard path:
Owner Login -> /dashboard -> API & Security -> BYOK fields -> Save API Keys
How This Enables Knowledge Distillation
Once keys are saved, DEQLYNK's engine can route external teacher calls by priority and use outputs to improve future behavior through feedback and data loops. Local inference remains the core path; external APIs augment learning and fallback quality, not platform ownership.
- Rotate keys regularly.
- Revoke leaked keys immediately.
- Avoid printing secrets in logs or console output.
- Do not expose keys in frontend JavaScript.
Ecosystem Integration: QuickLink API
DEQLYNK is integrating with QuickLink (built by Deep Dey), a powerful URL shortening service. Soon, you'll be able to bring your own QuickLink API keys to enable the AI to automatically shorten long URLs during conversations. This keeps responses clean and shareable while maintaining full control over your shortened link namespace.
QuickLink Shorten API (v1)
Maker: Deep Dey
Endpoints
| Method | Path | Behavior |
|---|---|---|
| POST | /api/v1/st |
Create short URL, returns JSON response |
| GET | /api/v1/st |
Create short URL; redirects by default, JSON if format=json |
Authentication
Include your API key in one of two ways:
- Bearer Token:
Authorization: Bearer API_KEY_HERE - Query Parameter:
?api=API_KEY_HERE
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
longUrl |
String | Yes | The full URL to shorten |
alias |
String | No | Custom alias for the short URL (if not taken) |
format |
String | No | Set to json to return JSON instead of redirect |
Rate Limiting
5 requests per 60 seconds (120-second cooldown if exceeded)
Each request = 1 credit. Expiry based on plan type (owner keys have permanent credit storage).
Example: Create Short URL (cURL)
curl -X POST 'https://qlynk.vercel.app/api/v1/st' \
-H 'Authorization: Bearer API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"longUrl": "https://example.com/very/long/path/to/documentation",
"alias": "custom-alias"
}'
Error Codes
| Code | Meaning | Action |
|---|---|---|
| 400 | Invalid URL format | Verify the longUrl is a valid HTTP/HTTPS URL |
| 401 | Missing API key | Include Authorization header or ?api= param |
| 403 | Invalid or expired key / No credits | Check key validity or upgrade your plan for credits |
| 409 | Alias already taken | Choose a different custom alias or omit it |
| 429 | Rate limit exceeded | Wait 120 seconds before retrying |
Once DEQLYNK's QuickLink integration is live, you'll manage this API key in the same API & Security tab where Gemini and OpenRouter keys are stored. The AI will automatically shorten relevant URLs in chat responses, making conversations cleaner and more shareable.