# Titli AI — Universal Multi-Modality Gateway (API Specifications)
*Author: DEEP_DEV*
*Generated: Live System Export for AI Models, Coding Assistants, and Developers*

---

## 1. Quick Start & Gateway Overview
Titli AI provides a drop-in, 100% OpenAI-compatible API gateway aggregating frontier LLMs and multimodal models (Gemini, Claude, GPT-4o, DeepSeek, FLUX, Whisper) with sub-120ms first-token latency, automatic failover, and dedicated model pinning.

- **Base URL**: `https://orvaai.cyou/v1`
- **Authentication**: Bearer Token in HTTP Authorization header:
  `Authorization: Bearer <TITLI_API_KEY>`

---

## 2. Core API Endpoints

### A. Chat & Multimodal Completions
- **Endpoint**: `POST https://orvaai.cyou/v1/chat/completions`
- **Headers**:
  ```http
  Authorization: Bearer <TITLI_API_KEY>
  Content-Type: application/json
  ```
- **Standard Request Body**:
  ```json
  {
    "model": "titli-fast",
    "messages": [
      {
        "role": "user",
        "content": "Explain quantum computing in three sentences."
      }
    ],
    "stream": false,
    "temperature": 0.7
  }
  ```

### B. List Available Models
- **Endpoint**: `GET https://orvaai.cyou/v1/models`
- **Headers**:
  ```http
  Authorization: Bearer <TITLI_API_KEY>
  ```

---

## 3. Supported Frontier Models (55+ Models)
- **`claude-fable-5`** (Claude Fable 5)
  - Description: Long form generation and storytelling engine.
- **`claude-fable-5-1`** (Claude Fable 5.1)
  - Description: Creative narrative and nuanced prose model.
- **`claude-haiku-5.5`** (Claude Haiku 5.5)
  - Description: Ultra low latency, lightweight conversational agent.
- **`claude-mythos-preview`** (Claude Mythos Preview)
  - Description: Experimental frontier research model.
- **`claude-opus-4-5`** (Claude Opus 4.5)
  - Description: Balanced deep thinking engine.
- **`claude-opus-4.6`** (Claude Opus 4.6)
  - Description: Established reasoning benchmark model.
- **`claude-opus-4.7`** (Claude Opus 4.7)
  - Description: High precision code synthesis and deep analysis.
- **`claude-opus-4.8`** (Claude Opus 4.8)
  - Description: Deep analytical intelligence and system architecture.
- **`claude-opus-5`** (Claude Opus 5)
  - Description: Frontier doctoral reasoning and mathematical analysis.
- **`claude-opus-5-5`** (Claude Opus 5.5)
  - Description: Ultimate flagship reasoning and synthesis.
- **`claude-sonnet-5`** (Claude Sonnet 5)
  - Description: Premier software development and vision reasoning.
- **`claude-sonnet-5-5`** (Claude Sonnet 5.5)
  - Description: State of the art coding and agent execution.
- **`codex-auto-review`** (Codex Auto Review)
  - Description: Automated pull request and security audit reviewer.
- **`deepseek-v4-flash-0731`** (DeepSeek V4 Flash 0731)
  - Description: Cost effective fast coding assistant.
- **`deepseek-v4-pro-0813`** (DeepSeek V4 Pro 0813)
  - Description: Stable snapshot for rigorous mathematical proof.
- **`deepseek-v4-pro-max`** (DeepSeek V4 Pro Max)
  - Description: Premier competitive math and code generation.
- **`deepseek-v4.1-flash`** (DeepSeek V4.1 Flash)
  - Description: Low latency rapid code completions.
- **`gemini-3.1-pro`** (Gemini 3.1 Pro)
  - Description: 1M token context reasoning engine.
- **`gemini-3.6-flash`** (Gemini 3.6 Flash)
  - Description: High speed multimodal synthesis and tool execution.
- **`gemini-3.7-flash`** (Gemini 3.7 Flash)
  - Description: Next gen multimodal reasoning and sub second latency.
- **`gemma-2-2b`** (Gemma 2 2B)
  - Description: Lightweight efficient on device model.
- **`glm-5.2`** (GLM 5.2)
  - Description: Stable general purpose intelligence.
- **`glm-5.3`** (GLM 5.3)
  - Description: Bilingual powerhouse for technical analysis.
- **`glm-5.3-flash`** (GLM 5.3 Flash)
  - Description: Sub second low latency bilingual API.
- **`gpt-5.5`** (GPT-5.5)
  - Description: Core OpenAI flagship intelligence model.
- **`gpt-5.5-pro`** (GPT-5.5 Pro)
  - Description: Professional tier reasoning and code generation.
- **`gpt-5.6-luna`** (GPT-5.6 Luna)
  - Description: Advanced multi step problem solving preset.
- **`gpt-5.6-sol`** (GPT-5.6 Sol)
  - Description: Robust enterprise reasoning and tool calling.
- **`gpt-5.6-terra`** (GPT-5.6 Terra)
  - Description: Ground truth factual synthesis and data analysis.
- **`gpt-6-astra`** (GPT-6 Astra)
  - Description: High throughput agent orchestration and reasoning.
- **`gpt-6-luna`** (GPT-6 Luna)
  - Description: Optimized scientific and algorithmic modeling.
- **`gpt-6.1-sol`** (GPT-6.1 Sol)
  - Description: Frontier next generation intelligence suite.
- **`grok-4.5`** (Grok 4.5)
  - Description: High speed conversational reasoning and analysis.
- **`grok-4.6`** (Grok 4.6)
  - Description: Frontier real time analysis and unfiltered intelligence.
- **`kimi-k2.6`** (Kimi K2.6)
  - Description: Reliable document search and analytical agent.
- **`kimi-k3`** (Kimi K3)
  - Description: Frontier long context reasoning and multi document synthesis.
- **`matilda-cerulean-i`** (Matilda Cerulean I)
  - Description: Specialized deep research exploration engine.
- **`matilda-flashflight-i`** (Matilda FlashFlight I)
  - Description: Rapid prototyping and ideation agent.
- **`mercury-2`** (Mercury 2)
  - Description: Established 128k context diffusion language model for general-purpose chat and parsing.
- **`mercury-2.5`** (Mercury 2.5)
  - Description: High-capacity 260k context diffusion model for conversational generation and deep analytical reasoning.
- **`mercury-3`** (Mercury 3)
  - Description: Inception Labs flagship reasoning diffusion model with 1M context, 131k output, and controllable reasoning effort.
- **`mercury-coder`** (Mercury Coder)
  - Description: Specialized diffusion model tuned for code synthesis, refactoring, and software engineering.
- **`mercury-coder-small`** (Mercury Coder Small)
  - Description: Fast lightweight code completion model for sub-second development workflows.
- **`mercury-small`** (Mercury Small)
  - Description: Ultra-low latency, high-throughput lightweight diffusion model.
- **`mimo-v2.6-flash`** (MiMo V2.6 Flash)
  - Description: Fast inference agent workflow model.
- **`mimo-v2.6-pro`** (MiMo V2.6 Pro)
  - Description: Multimodal and multi step agent reasoning.
- **`muse-spark-1.1`** (Muse Spark 1.1)
  - Description: Specialized brainstorming and ideation model.
- **`qwen3.7-max`** (Qwen 3.7 Max)
  - Description: Complex reasoning and cross lingual intelligence.
- **`qwen3.8-27b`** (Qwen 3.8 27B)
  - Description: Balanced medium parameter high throughput model.
- **`qwen3.8-max`** (Qwen 3.8 Max)
  - Description: Multilingual excellence and deep reasoning.
- **`seed-2.1-pro`** (Seed 2.1 Pro)
  - Description: Creative generation and task execution.
- **`seed-2.1-turbo`** (Seed 2.1 Turbo)
  - Description: High speed creative writing assistant.
- **`titli-chat`** (Titli Chat)
  - Description: Fast, balanced general conversational intelligence powered by Gemini 1.5 Flash.
- **`titli-claude-opus`** (Titli Claude Opus 4.8)
  - Description: Highest-depth reasoning model for nuanced writing, scientific analysis, and architecture design.
- **`titli-claude-sonnet`** (Titli Claude Sonnet 5)
  - Description: Fast, versatile intelligence perfect for agentic tasks, coding, and real-time conversation.
- **`titli-code`** (Titli Code)
  - Description: Specialized software engineering model for programming, debugging, and system architecture using Gemini 2.0 Flash.
- **`titli-deepseek-v4`** (Titli DeepSeek V4 Pro)
  - Description: Specialized mathematical reasoning and algorithmic problem solving engine.
- **`titli-fast`** (Titli Fast)
  - Description: Ultra-low latency inference preset tuned for rapid chatbot queries using Gemini 1.5 Flash-8B.
- **`titli-gemini-3.7`** (Titli Gemini 3.7 Flash)
  - Description: Flagship multimodal speed and advanced reasoning powered by Gemini 3.7 Flash.
- **`titli-gpt-5.5`** (Titli GPT-5.5 Ultra)
  - Description: Next-generation GPT intelligence tuned for complex problem solving, coding, and logical deductions.
- **`titli-pro`** (Titli Pro)
  - Description: Advanced reasoning engine designed for deep multi-step analysis powered by Gemini 1.5 Pro.


---

## 4. Modality Integration Recipes

### A. Photo & Image Generation
Generate photorealistic visuals using models like `flux-schnell` or `sdxl-turbo`.

#### cURL Recipe:
```bash
curl -X POST "https://orvaai.cyou/v1/chat/completions" \
  -H "Authorization: Bearer <TITLI_API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-schnell",
    "messages": [
      {
        "role": "user",
        "content": "Generate a cinematic 8k close-up shot of an iridescent glass butterfly on a neon flower."
      }
    ]
  }'
```

### B. Video Understanding & Timeline Breakdown
Analyze long-form video files and extract timestamps using `gemini-2.5-flash` or `gemini-2.5-pro`.

#### Python Recipe:
```python
import base64
from openai import OpenAI

client = OpenAI(
    api_key="<TITLI_API_KEY>",
    base_url="https://orvaai.cyou/v1"
)

with open("security_recording.mp4", "rb") as f:
    video_base64 = base64.b64encode(f.read()).decode("utf-8")

response = client.chat.completions.create(
    model="gemini-2.5-flash",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "Analyze this video clip and list every vehicle entry with timestamps."},
                {
                    "type": "video_url",
                    "video_url": {
                        "url": f"data:video/mp4;base64,{video_base64}"
                    }
                }
            ]
        }
    ]
)
print(response.choices[0].message.content)
```

### C. PDF & Document Synthesis
Extract clauses, financial audits, and tables directly from PDF byte streams.

#### Node.js Recipe:
```javascript
import fs from 'fs';
import OpenAI from 'openai';

const client = new OpenAI({
    apiKey: "<TITLI_API_KEY>",
    baseURL: "https://orvaai.cyou/v1",
});

const pdfBase64 = fs.readFileSync('agreement.pdf').toString('base64');

const response = await client.chat.completions.create({
    model: "gemini-2.5-pro",
    messages: [
        {
            role: "user",
            content: [
                { type: "text", text: "Review this contract: summarize SLA obligations and payment terms." },
                {
                    type: "document",
                    document: {
                        mime_type: "application/pdf",
                        data: pdfBase64
                    }
                }
            ]
        }
    ]
});
console.log(response.choices[0].message.content);
```

### D. Voice & Audio Transcription
Transcribe speech recordings in 99+ languages using `whisper-large-v3`.

#### Python Recipe:
```python
import base64
from openai import OpenAI

client = OpenAI(
    api_key="<TITLI_API_KEY>",
    base_url="https://orvaai.cyou/v1"
)

with open("interview.mp3", "rb") as f:
    audio_base64 = base64.b64encode(f.read()).decode("utf-8")

response = client.chat.completions.create(
    model="whisper-large-v3",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "Transcribe this audio recording into clean English."},
                {
                    "type": "input_audio",
                    "input_audio": {
                        "data": audio_base64,
                        "format": "mp3"
                    }
                }
            ]
        }
    ]
)
print(response.choices[0].message.content)
```

### E. Code Generation & Real-Time Streaming
Low-latency SSE streaming with sub-120ms first-token latency.

#### Python Streaming Recipe:
```python
from openai import OpenAI

client = OpenAI(
    api_key="<TITLI_API_KEY>",
    base_url="https://orvaai.cyou/v1"
)

stream = client.chat.completions.create(
    model="titli-fast",
    messages=[
        {"role": "user", "content": "Write a high-performance Redis cache layer in Go with connection pooling."}
    ],
    stream=True
)

for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="", flush=True)
```

---

## 5. Model Pinning (Direct Routing)
To bypass automatic load-balancer routing and guarantee execution on a specific model, specify the exact model slug:
- `gemini-2.5-flash`
- `deepseek-chat`
- `claude-3-5-sonnet`
- `gpt-4o-mini`

---
*End of Titli AI API Documentation.*