SUTRA-V2 is here

Mar 17, 2025

Get started with a FREE SUTRA API key and unlock the power of SUTRA's multilingual AI models for your apps and services.

We are excited to roll out the SUTRA V2 API, bringing a host of new features, improved efficiency, and expanded compatibility. As part of this update, the SUTRA V1 API will be deprecated on March 22, 2025, at 11:55 PM PST.

What’s New in SUTRA V2?

  • OpenAI Specification Compatibility – The V2 API is fully aligned with OpenAI’s API specifications, making integration seamless for developers and enterprises.

  • Image Input – Now supports image processing, enabling applications in image analysis, captioning, and visual search.

  • File Input – (Coming soon) Upload and process files in various document formats to extract insights and automate workflows.

  • Streaming Mode – Real-time response streaming continues to be supported, ensuring faster interactions.

  • Faster Performance – To enhance speed and reduce latency, dedicated servers in India, the USA, Korea, and Japan (coming soon) provide optimized response times for users in these regions.

Getting Started with SUTRA V2 API

SUTRA is a powerful family of multilingual AI models developed by Two Platforms. Designed with a dual-transformer architecture, it combines Mixture of Experts (MoE) and dense model techniques to deliver high-performance multilingual AI capabilities for over 50 languages. SUTRA V2 powers a range of applications, including conversational AI, search, and advanced reasoning.

Making Your First API Call

The SUTRA API follows an OpenAI-compatible format, allowing easy adoption using existing OpenAI SDKs.

Base URL: https://api.two.ai/v2/chat/completions

API Key: Request API Key

API DocS: https://docs.two.ai

Once you have your API key, use the following examples to get started:

cURL Example

curl -X POST "https://api.two.ai/v2/chat/completions" \
  -H "Authorization: Bearer $SUTRA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -d '{
  "model": "sutra-v2",
  "messages": [
    {"role": "user", "content": "मुझे मंगल ग्रह के बारे में 5 पैराग्राफ दीजिए"}
  ]
}


Python Example

import os
from openai import OpenAI

url = 'https://api.two.ai/v2'

client = OpenAI(base_url=url, api_key=os.environ.get("SUTRA_API_KEY"))

stream = client.chat.completions.create(
    model='sutra-v2',
    messages=[{"role": "user", "content": "मुझे मंगल ग्रह के बारे में 5 पैराग्राफ दीजिए"}],
    max_tokens=1024,
    temperature=0,
    stream=True
)

for chunk in stream:
    if len(chunk.choices) > 0:
        content = chunk.choices[0].delta.content
        finish_reason = chunk.choices[0].finish_reason
        if content and finish_reason is None:
            print(content, end='', flush=True)

Key Resources & Next Steps

  • Explore the API Reference for more details.

  • Test SUTRA’s Tokenizer on Hugging Face.

  • Find sample applications and use cases on our GitHub repository.

Tech @ TWO

0:00/1:34

PUBLISHED

Mar 17, 2025

PUBLISHED

Mar 17, 2025

PUBLISHED

Mar 17, 2025

CATEGORY

Blog

CATEGORY

Blog

CATEGORY

Blog

READING TIME

5 Minutes

READING TIME

5 Minutes

READING TIME

5 Minutes

Recent Posts

Distilling... is our Level 2 Game Plan

Distilled domain aligned models are the future of enterprise AI. Distilling brings compact models that can power smarter, faster, and scalable AI for every industry. TWO AI is leading this shift with its D3-driven second-layer models that brings best of both worlds - performance and efficiency.

AI Agents - They Don’t Just Help, They Hustle

Enter next phase of AI - from reactive assistants to proactive AI agents capable of autonomously solving problems and making decisions. These agents are transforming industries such as healthcare, finance, and customer service by enhancing decision-making and efficiency through initiative, rather than just responding to user input. Tools like SUTRA Studio are key in developing these advanced, autonomous agents tailored for specific business needs.

ChatSUTRA surpasses 1M users

ChatSUTRA has surpassed 1 million users within just a month of its launch. This rapid growth demonstrates strong market demand for AI solutions that serve non-English speaking users, with the platform being utilized for both business analysis and creative content creation across diverse global communities.

Let us keep you posted about SUTRA and ChatSUTRA. Sign Up for TWO AI Newsletter.

Let us keep you posted about SUTRA and ChatSUTRA. Sign Up for TWO AI Newsletter.

Let us keep you posted about SUTRA and ChatSUTRA. Sign Up for TWO AI Newsletter.