> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Release 3.12

> Release 3.12 introduces human-in-the-loop reviews, response caching for cost optimization, faster root cause analysis, and OpenTelemetry support.

<Update label="Release 3.12" description="v3.12.0">
  <img src="https://mintcdn.com/orqai/1clR3dRdy0GtV4iZ/images/f01d43c40338069ad327f4db29e39e010f137af47910d0e7729196f2d337bcb7-image.png?fit=max&auto=format&n=1clR3dRdy0GtV4iZ&q=85&s=988a1a142365adaf91272317a00fc7e6" alt="Release 3.12 overview highlighting enhanced observability, experimentation, and cost controls for AI applications." width="2562" height="1282" data-path="images/f01d43c40338069ad327f4db29e39e010f137af47910d0e7729196f2d337bcb7-image.png" />

  Enhanced observability, smarter experimentation, and better cost controls for AI applications.

  ### 🔍 Enhanced Observability & Debugging

  #### Human-in-the-Loop Reviews

  * Collect structured feedback on AI outputs with customizable [Human Review Sets](/docs/observability/annotations) per trace type
  * Directly add spans to datasets for continuous improvement
  * Track contact IDs and thread context across chat completions

  #### Faster Root Cause Analysis

  * View retrieval configurations directly in span properties
  * See evaluator names on spans for quick performance assessment
  * Expanded OpenTelemetry support for more frameworks

  #### Cost Optimization

  * Optional response caching to reduce latency and API costs
  * Fixed cost aggregation for image operations and Azure OpenAI
  * More accurate token and billing tracking

  #### 🧪 Streamlined Experimentation

  #### Improved Experiment Management

  * Search across experiment entries
  * Protection against accidental re-runs
  * Persistent column settings and better cancellation handling
  * Enhanced UI with clearer active states and progress indicators

  ### 🚀 [AI Gateway](/docs/ai-studio/ai-gateway/add-models) Enhancements

  #### Advanced Request Handling

  * Automatic retries and fallback models for improved reliability
  * Thread and contact tracking for conversation continuity
  * Specify prompt versions directly in LLM calls
  * Improved SSE streaming performance

  ### 💰 Budget Controls

  #### Workspace-Level Cost Management

  * Set and monitor budgets at workspace and contact levels
  * New Budgets API for programmatic cost control
  * Automated alerts and spending limits

  ### 🎯 Platform Improvements

  #### Model Management

  * New image generation models and providers
  * Intelligent model filtering based on capabilities
  * Improved cost extraction and model selection UI

  #### Developer Experience

  * Better API parameter documentation for [Knowledge Base](/docs/knowledge/overview)
  * Unsaved changes protection across Teams and Contacts
  * Improved error handling and retry logic throughout
</Update>

<Update label="AI Gateway - Superpower your LLM requests" description="v3.12.0">
  Today, we are bringing all the power [Deployments](/docs/deployments/overview) to our AI Gateway. Now, teams will be able to run their AI workloads in a reliable and battle-tested AI Gateway.

  Features supported via the Gateway:

  * Fallbacks
  * Retry
  * Contact Tracking
  * Thread Management
  * Cache
  * Knowledge Bases

  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl --location 'https://api.orq.ai/v3/router/chat/completions' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer $ORQ_API_KEY' \
  --data-raw '{
  "model": "openai/gpt-4o",
  "messages": [
  {
  "role": "system",
  "content": "You are a helpful customer support agent for {{company_name}}. Use available knowledge to assist {{customer_tier}} customers."
  },
  {
  "role": "user",
  "content": "I need help with API integration for my {{use_case}} project"
  }
  ],
  "orq": {
  "retry": {
  "count": 3,
  "on_codes": [429, 500, 502, 503, 504]
  },
  "fallbacks": [
  {
  "model": "anthropic/claude-3-5-sonnet-20241022"
  },
  {
  "model": "openai/gpt-4o-mini"
  }
  ],
  "cache": {
  "type": "exact_match",
  "ttl": 1800
  },
  "knowledge_bases": [
  {
  "knowledge_id": "api-documentation",
  "top_k": 5,
  "threshold": 0.75
  },
  {
  "knowledge_id": "integration-examples",
  "top_k": 3,
  "threshold": 0.8
  }
  ],
  "contact": {
  "id": "enterprise_customer_001",
  "display_name": "Enterprise User",
  "email": "user@enterprise.com"
  },
  "thread": {
  "id": "support_session_001",
  "tags": ["api-integration", "enterprise", "technical-support"]
  },
  "inputs": {
  "company_name": "Orq AI",
  "customer_tier": "Enterprise",
  "use_case": "e-commerce platform"
  }
  }
  }'
  ```

  <Note>
    Start building today, to learn more, see the [AI Gateway](/docs/ai-studio/ai-gateway/add-models).
  </Note>
</Update>

<Update label="OpenTelemetry - LangChain, LangGraph, OpenAI Agents and more" description="v3.12.0">
  <img src="https://mintcdn.com/orqai/W8gaV2S7D8ydczdf/images/853a71d4e2db930da269be03db247d8ab2eaa615bb4f049dd63df726def0c77d-image.png?fit=max&auto=format&n=W8gaV2S7D8ydczdf&q=85&s=0487ed80ceb43b235a474578d066bc0c" alt="OpenTelemetry integration for AI pipelines showing supported frameworks including LangChain, LangGraph, and OpenAI Agents." width="2562" height="1282" data-path="images/853a71d4e2db930da269be03db247d8ab2eaa615bb4f049dd63df726def0c77d-image.png" />

  Monitor and debug your AI pipelines with production-grade observability:

  * Complete request tracing across LLM calls, chain executions, and agent workflows
  * Automatic instrumentation for latency, token usage, and error tracking
  * Zero-code instrumentation for supported frameworks

  Key benefits:

  * Identify bottlenecks in complex multi-step AI workflows
  * Track costs with token-level granularity
  * Debug agent reasoning paths and tool usage in production
  * Correlate AI operations with upstream/downstream services

  ### Supported frameworks

  * Agno
  * AutoGen
  * BeeAI
  * CrewAI
  * DSPy
  * Google ADK
  * Haystack
  * Instructor
  * [LangChain / LangGraph](/docs/ai-studio/integrations/frameworks/langchain)
  * LiteLLM
  * LiveKit
  * LlamaIndex
  * Mastra
  * OpenAI Agents
  * Pydantic AI
  * Semantic Kernel
  * SmolAgents
  * Vercel AI SDK
</Update>

<Update label="AI Gateway - Vercel AI SDK" description="v3.12.0">
  A Vercel AI SDK provider for Orq AI platform that enables seamless integration of AI models with the Vercel AI SDK ecosystem.

  <img src="https://mintcdn.com/orqai/kH7ELCU0voLJRri0/images/19e6eaae2104788ad70e3afbbd584737e6a613f06e7308a97212768d94d6ec10-image.png?fit=max&auto=format&n=kH7ELCU0voLJRri0&q=85&s=cc43caf5096b3745b496d12e7e96a6ef" alt="Vercel AI SDK provider for Orq.ai enabling integration with generateText, streamText, and embedding functions." width="2562" height="1282" data-path="images/19e6eaae2104788ad70e3afbbd584737e6a613f06e7308a97212768d94d6ec10-image.png" />

  🎯 Features

  * Full Vercel AI SDK Compatibility: Works with all Vercel AI SDK functions (generateText, streamText, embed, etc.)
  * Multiple Model Types: Support for chat, completion, embedding, and image generation models
  * Streaming Support: Real-time streaming responses for a better user experience
  * Type-safe: Fully written in TypeScript with comprehensive type definitions
  * Orq Platform Integration: Direct access to Orq AI's model routing and optimization

  ### Installation

  ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
  npm i ai @orq-ai/vercel-provider
  ```

  ### Getting Started

  ```typescript Typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import { createOrqAiProvider } from "@orq-ai/vercel-provider";
  import { generateText } from "ai";

  const orq = createOrqAiProvider({
  apiKey: process.env.ORQ_API_KEY,
  });

  const { text } = await generateText({
  model: orq("gpt-4"),
  messages: [{ role: "user", content: "Hello!" }],
  });
  ```

  Find more info in the [Github Repository](https://github.com/orq-ai/orqkit/tree/main/packages/vercel-provider)
</Update>

<Update label="Human Reviews in Traces" description="v3.12.0">
  <img src="https://mintcdn.com/orqai/W8gaV2S7D8ydczdf/images/8473d8e0b0a2f6f52d19263d7fbb8ac9aca56ef05ca47f6e64a042eabba3482a-image.png?fit=max&auto=format&n=W8gaV2S7D8ydczdf&q=85&s=a8de33efcf79e3d2f7b313e97c47cba5" alt="Human Review set configuration panel for collecting structured feedback on traces by trace type, application, or trace name." width="2562" height="1282" data-path="images/8473d8e0b0a2f6f52d19263d7fbb8ac9aca56ef05ca47f6e64a042eabba3482a-image.png" />

  Report feedback directly on traces using Human Reviews and Human Review Sets. Configure custom review sets per trace type, or tailor human reviews by application name or trace name for granular feedback collection.

  <img src="https://mintcdn.com/orqai/kH7ELCU0voLJRri0/images/12008c2271beecf8783a0ccda0652c5af72b1462a617128aa30a4d56b9007f49-image.png?fit=max&auto=format&n=kH7ELCU0voLJRri0&q=85&s=b11aa16f68a5ccb0d3b9d6ae82d8bf83" alt="Human Review feedback form displayed on a trace span for collecting quality ratings directly in Orq.ai." width="2516" height="1546" data-path="images/12008c2271beecf8783a0ccda0652c5af72b1462a617128aa30a4d56b9007f49-image.png" />
</Update>

<Update label="Custom instrumentation with @traced" description="v3.12.0">
  <img src="https://mintcdn.com/orqai/W8gaV2S7D8ydczdf/images/871ff758d3fccc9620ecc29df66778999af735a89be6b5cf67d7ca5c8a9bb365-image.png?fit=max&auto=format&n=W8gaV2S7D8ydczdf&q=85&s=5e252bb7d8324dcf5f02b9cbbdaea4e5" alt="Python code using the @traced decorator to automatically capture function inputs, outputs, and metadata as trace spans." width="5124" height="2564" data-path="images/871ff758d3fccc9620ecc29df66778999af735a89be6b5cf67d7ca5c8a9bb365-image.png" />

  We’ve introduced the **`@traced decorator`**, a powerful new way to capture function-level traces directly in your Python code.

  * Automatically logs function inputs, outputs, and metadata
  * Supports nested spans and custom span types (LLM, agent, tool, etc.)
  * Works seamlessly with the Orq SDK initialization (no separate init required)
  * Integrates with **OpenTelemetry** for end-to-end distributed tracing

  This makes it easier than ever to **debug, monitor, and observe** your applications in real time.

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import time
  from orq_ai_sdk import traced

  @traced
  def process_user(user_id: str, action: str) -> dict:
  	# Simulate some processing
  	time.sleep(0.1)

  	result = {
  		"user_id": user_id,
  		"action": action,
  		"status": "completed",
  		"timestamp": time.time()
  	}
  	return result
  ```

  To get started, install the Orq.ai SDK for Python

  ```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
  pip install orq-ai-sdk
  ```

  <Info>
    To learn more, see our [Observability Frameworks](/docs/observability/frameworks/overview).
  </Info>
</Update>

<Update label="Cerebas and Jina support in the AI Router" description="v3.12.0">
  <img src="https://mintcdn.com/orqai/kH7ELCU0voLJRri0/images/6dfe1177b4be9914d492cfb1644bf825e13e1e75c2ca5e9db3ba70967f007b2c-image.png?fit=max&auto=format&n=kH7ELCU0voLJRri0&q=85&s=9007d8e5392dca27c9b2f1ee243779b9" alt="Cerebras and Jina model options in the AI Router for high-performance LLM inference and multilingual embeddings." width="2562" height="1282" data-path="images/6dfe1177b4be9914d492cfb1644bf825e13e1e75c2ca5e9db3ba70967f007b2c-image.png" />

  Access high-performance AI models through unified interface:

  Cerebras: Ultra-fast LLM inference with sub-second response times for Llama and other open models Jina: State-of-the-art multilingual embeddings (jina-embeddings-v3) and reranking models for RAG pipelines

  API Key Flexibility:

  Bring Your Own Key (BYOK): Use your existing Cerebras or Jina API credentials Managed Access: All workspaces on paid plans get automatic access through Orq.ai's pooled API keys—no separate vendor accounts needed
</Update>

<Update label="ByteDance Image Models" description="v3.12.0">
  <img src="https://mintcdn.com/orqai/kH7ELCU0voLJRri0/images/274b609d1fa9ab421beb1bc93e3b3294c642534d2ca822f60f0a6266348541b3-image.png?fit=max&auto=format&n=kH7ELCU0voLJRri0&q=85&s=08cdc366a4f3d0a391a2a0d756c9a15d" alt="ByteDance Seedream text-to-image and SeedEdit image-to-image models available in the AI Router." width="2562" height="1282" data-path="images/274b609d1fa9ab421beb1bc93e3b3294c642534d2ca822f60f0a6266348541b3-image.png" />

  **Seedream-3.0-T2I-250415**

  A state-of-the-art text-to-image model that generates high-resolution, photorealistic images from prompts. Supports bilingual input.

  **SeedEdit-3.0-I2I-250628**

  An advanced image-to-image model that lets you apply precise edits using both images and text prompts.

  ### Examples

  Generate image with Seedream

  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl https://api.orq.ai/v3/router/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -d '{
  "model": "bytedance/seedream-3-0-t2i-250415",
  "prompt": "A beautiful sunset over mountains",
  "n": 1
  }'
  ```

  ```python OpenAI (Python) theme={"theme":{"light":"github-light","dark":"github-dark"}}
  from openai import OpenAI
  import os

  client = OpenAI(
  base_url="https://api.orq.ai/v3/router",
  api_key=os.getenv("ORQ_API_KEY"),
  )

  response = client.images.generate(
  model="bytedance/seedream-3-0-t2i-250415",
  prompt="A beautiful sunset over mountains",
  n=1
  )

  print(response.data[0].url)
  ```

  ```typescript Typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import OpenAI from "openai";

  const openai = new OpenAI({
  baseURL: 'https://api.orq.ai/v3/router',
  apiKey: process.env.ORQ_API_KEY,
  });

  async function main() {
  const response = await openai.images.generate({
  model: "bytedance/seedream-3-0-t2i-250415",
  prompt: "A beautiful sunset over mountains",
  n: 1
  });

  console.log(response.data[0].url);
  }

  main();
  ```

  Edit images with SeedEdit

  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl https://api.orq.ai/v3/router/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $ORQ_API_KEY" \
  -d '{
  "model": "bytedance/seededit-3-0-i2i-250628",
  "prompt": "A beautiful sunset over mountains",
  "n": 1
  }'
  ```

  ```python OpenAI (Python) theme={"theme":{"light":"github-light","dark":"github-dark"}}
  from openai import OpenAI
  import os

  client = OpenAI(
  base_url="https://api.orq.ai/v3/router",
  api_key=os.getenv("ORQ_API_KEY"),
  )

  response = client.images.generate(
  model="bytedance/seededit-3-0-i2i-250628",
  prompt="A beautiful sunset over mountains",
  n=1
  )

  print(response.data[0].url)
  ```

  ```typescript Typescript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import OpenAI from "openai";

  const openai = new OpenAI({
  baseURL: 'https://api.orq.ai/v3/router',
  apiKey: process.env.ORQ_API_KEY,
  });

  async function main() {
  const response = await openai.images.generate({
  model: "bytedance/seededit-3-0-i2i-250628",
  prompt: "A beautiful sunset over mountains",
  n: 1
  });

  console.log(response.data[0].url);
  }

  main();
  ```

  Both models runs in European datacenters in Germany
</Update>

<Update label="Workspace Budget" description="v3.12.0">
  Added support for Workspace Budget.

  Now it's possible to set a Budget for your workspace to control your AI spend for your organization

  <img src="https://mintcdn.com/orqai/kH7ELCU0voLJRri0/images/7177b0e26301dd86d928604abf88873dfd65d87967f34118d80b8e497dac562d-image.png?fit=max&auto=format&n=kH7ELCU0voLJRri0&q=85&s=be715f324094573dda769d1cb7fc92d9" alt="Workspace budget configuration showing controls for setting and monitoring AI spend limits at workspace and contact levels." width="343" height="255" data-path="images/7177b0e26301dd86d928604abf88873dfd65d87967f34118d80b8e497dac562d-image.png" />
</Update>
