Titli AI Integration Station & Capability Guides
Unified drop-in integration for Photo & Image Generation, Video Understanding, PDF & Document Synthesis, Voice & Audio Processing, and High-Speed Streaming Reasoning. Fully OpenAI-compatible with direct model pinning.
https://orvaai.cyou/v1
titli_live_YOUR_API_KEY
AI Models & Modality Directory
Explore models organized by specialized multimodal tasks or target them directly via API.
dall-e-3
High-fidelity photorealistic image synthesis, art generation, and prompt adherence.
gemini-2.5-pro
1,048,576 context window. Full video analysis, multi-hour video understanding, multi-page PDF synthesis.
whisper-large-v3
Multilingual speech-to-text, audio transcribing, punctuation, and voice reasoning.
claude-3-7-sonnet
State of the art code architecture, multi-file refactoring, competitive programming, and doctoral reasoning.
deepseek-v4-pro-max
Competitive algorithmic generation, mathematical reasoning, and low-latency programming completions.
Image & Photo Generation Endpoint
Generate high-resolution artwork and photos via POST /v1/images/generations or directly targeting dall-e-3.
curl -X POST "https://orvaai.cyou/v1/images/generations" \
-H "Authorization: Bearer titli_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "dall-e-3",
"prompt": "Cinematic photo of a futuristic AI quantum processor inside a clean laboratory, vibrant orange and golden glowing circuit traces, 8k resolution, photorealistic",
"n": 1,
"size": "1024x1024"
}'
from openai import OpenAI
client = OpenAI(
api_key="titli_live_YOUR_API_KEY",
base_url="https://orvaai.cyou/v1"
)
response = client.images.generate(
model="dall-e-3",
prompt="A majestic butterfly with glowing golden-orange wings resting on a glass circuit board, photorealistic, cinematic lighting",
size="1024x1024",
quality="standard",
n=1,
)
image_url = response.data[0].url
print("Generated Image URL:", image_url)
Video Understanding API
Pass video frames, MP4 files (Base64 or URL), and ask questions, generate chapters, or extract OCR data using gemini-2.5-pro.
import base64
from openai import OpenAI
client = OpenAI(
api_key="titli_live_YOUR_API_KEY",
base_url="https://orvaai.cyou/v1"
)
# 1. Read your video file as Base64 (MP4 or WebM)
with open("sample_demo.mp4", "rb") as f:
video_base64 = base64.b64encode(f.read()).decode("utf-8")
# 2. Send video to Gemini 2.5 Pro via OpenAI-compatible endpoint
response = client.chat.completions.create(
model="gemini-2.5-pro",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Analyze this video: provide an exact timestamp breakdown of every action, describe camera movements, and extract any text shown."
},
{
"type": "image_url",
"image_url": {
"url": f"data:video/mp4;base64,{video_base64}"
}
}
]
}
]
)
print(response.choices[0].message.content)
Multimodal Vision & PDF Synthesis (OpenAI Vision SDK Compatible)
Ingest 1,000+ page PDF files, financial reports, images, or architectural contracts with full layout and visual comprehension.
<?php
use Illuminate\Support\Facades\Http;
$pdfBytes = file_get_contents(storage_path('app/contracts/enterprise_sla.pdf'));
$pdfBase64 = base64_encode($pdfBytes);
$response = Http::withHeaders([
'Authorization' => 'Bearer titli_live_YOUR_API_KEY',
'Content-Type' => 'application/json',
])->timeout(120)->post('https://orvaai.cyou/v1/chat/completions', [
'model' => 'gemini-2.5-pro',
'messages' => [
[
'role' => 'user',
'content' => [
[
'type' => 'text',
'text' => 'Review this PDF agreement: extract all financial obligations, SLA penalty clauses, and signing parties.'
],
[
'type' => 'document',
'document' => [
'mime_type' => 'application/pdf',
'data' => $pdfBase64
]
]
]
]
]
]);
$analysis = $response->json('choices.0.message.content');
echo $analysis;
Voice & Audio Processing
Transcribe call center recordings, voice notes, or generate speech using whisper-large-v3.
import fs from 'fs';
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: "titli_live_YOUR_API_KEY",
baseURL: "https://orvaai.cyou/v1",
});
const audioBase64 = fs.readFileSync('meeting_audio.mp3').toString('base64');
const response = await client.chat.completions.create({
model: "whisper-large-v3",
messages: [
{
role: "user",
content: [
{
type: "text",
text: "Transcribe this audio recording into clean English and highlight actionable takeaways."
},
{
type: "input_audio",
input_audio: {
data: audioBase64,
format: "mp3"
}
}
]
}
]
});
console.log(response.choices[0].message.content);
Chat Completions & Real-time Streaming
High-throughput Server-Sent Events (SSE) streaming with sub-120ms first-token latency.
from openai import OpenAI
client = OpenAI(
api_key="titli_live_YOUR_API_KEY",
base_url="https://orvaai.cyou/v1"
)
stream = client.chat.completions.create(
model="claude-3-7-sonnet",
messages=[
{"role": "system", "content": "You are a senior software architect."},
{"role": "user", "content": "Write a high-performance Redis cache manager in Go with exponential backoff."}
],
stream=True
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
How to Lock In a Specific Dedicated Model
You are never forced to use auto-routing. You can pin any exact flagship model directly in your API request.
Auto-Routing vs Dedicated Pinning
Titli AI provides two routing behaviors depending on your architectural requirements:
- Auto-Routing Slugs (e.g.
titli-chat,titli-code,titli-pro,titli-fast): The gateway automatically routes to the healthiest, lowest-latency backend provider with instant failover. - Dedicated Model Slugs (e.g.
claude-opus-5-5,gpt-6-astra,gemini-2.5-pro,dall-e-3): The gateway bypasses generic routing and executes strictly on that exact upstream model.
curl -X POST "https://orvaai.cyou/v1/chat/completions" \
-H "Authorization: Bearer titli_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-opus-5-5",
"messages": [
{"role": "user", "content": "Explain the theoretical physics behind topological quantum computing."}
],
"temperature": 0.2
}'
Multi-Platform Implementation Recipes
100% compliant with standard OpenAI API format as a seamless Drop-in Replacement. Test any prompt or model in real-time with our Live Interactive API Tester.
curl -X POST "https://orvaai.cyou/v1/chat/completions" \
-H "Authorization: Bearer titli_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "titli-fast",
"messages": [{"role": "user", "content": "Hello Titli AI!"}],
"temperature": 0.7
}'
use Illuminate\Support\Facades\Http;
$response = Http::withToken('titli_live_YOUR_API_KEY')
->timeout(60)
->post('https://orvaai.cyou/v1/chat/completions', [
'model' => 'titli-fast',
'messages' => [
['role' => 'user', 'content' => 'Summarize quarterly financials.']
],
]);
$answer = $response->json('choices.0.message.content');
from openai import OpenAI
client = OpenAI(
api_key="titli_live_YOUR_API_KEY",
base_url="https://orvaai.cyou/v1"
)
response = client.chat.completions.create(
model="titli-fast",
messages=[{"role": "user", "content": "Explain async programming in Python."}]
)
print(response.choices[0].message.content)
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: 'titli_live_YOUR_API_KEY',
baseURL: 'https://orvaai.cyou/v1',
dangerouslyAllowBrowser: true // if inside React frontend
});
const completion = await openai.chat.completions.create({
model: 'titli-fast',
messages: [{ role: 'user', content: 'Design a scalable database schema.' }],
});
console.log(completion.choices[0].message.content);
import 'dart:convert';
import 'package:http/http.dart' as http;
Future<String> askTitliAi(String userPrompt) async {
final url = Uri.parse('https://orvaai.cyou/v1/chat/completions');
final response = await http.post(
url,
headers: {
'Authorization': 'Bearer titli_live_YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: jsonEncode({
'model': 'titli-fast',
'messages': [
{'role': 'user', 'content': userPrompt}
],
'temperature': 0.7,
}),
);
if (response.statusCode == 200) {
final data = jsonDecode(response.body);
return data['choices'][0]['message']['content'];
} else {
throw Exception('Gateway Error: ${response.body}');
}
}
val client = OkHttpClient()
val json = JSONObject().apply {
put("model", "titli-fast")
put("messages", JSONArray().put(JSONObject().apply {
put("role", "user")
put("content", "Hello from Android Native!")
}))
}
val request = Request.Builder()
.url("https://orvaai.cyou/v1/chat/completions")
.addHeader("Authorization", "Bearer titli_live_YOUR_API_KEY")
.post(json.toString().toRequestBody("application/json".toMediaType()))
.build()
val response = client.newCall(request).execute()
val result = response.body?.string()