Skip to main content

What is Samurai AI?

Samurai AI is a unified AI API gateway giving you access to 400+ cutting-edge AI models through a single OpenAI-compatible endpoint — at 50% of the original provider price.

Quick Start

First API call in under 5 minutes.

Authentication

Get your API key and start building.

Browse Models

GPT-4.1, Claude Opus 4, Gemini 2.5 Pro, and 400+ more.

API Playground

Test every endpoint live in your browser.

Base URL

https://www.samuraiapi.in/v1
That’s the only change you need from OpenAI. Your existing code works as-is.

Why Samurai AI?

50% Cheaper

gpt-4o for **1.25/1Mtokens(vs1.25/1M tokens** (vs 2.50 direct). claude-3-5-sonnet for **1.50/1M(vs1.50/1M** (vs 3.00). Every model, every time.

OpenAI Compatible

Change base_url and your API key. Everything else — SDKs, streaming, function calling, vision — works exactly the same.

400+ Models

Chat, image (DALL-E 3, Flux), video (Sora, Veo 3), audio (Whisper, TTS), embeddings — all in one API.

One-Line Migration

from openai import OpenAI
client = OpenAI(api_key="sk-openai-...")
const client = new OpenAI({ apiKey: 'sk-openai-...' });

Compatible Libraries

LibraryLanguageHow to Configure
openaiPython / Node.jsbase_url / baseURL
langchainPython / JSopenai_api_base
llama_indexPythonapi_base
@ai-sdk/openaiTypeScriptbaseURL in createOpenAI()
litellmPythonapi_base param
No special SDK needed. Any library that supports a custom base_url works instantly.

Setting up

Get your documentation site up and running in minutes.

Start here

Follow our three step quickstart guide.

Make it yours

Design a docs site that looks great and empowers your users.

Edit locally

Edit your docs locally and preview them in real time.

Customize your site

Customize the design and colors of your site to match your brand.

Set up navigation

Organize your docs to help users find what they need and succeed with your product.

API documentation

Auto-generate API documentation from OpenAPI specifications.

Create beautiful pages

Everything you need to create world-class documentation.

Write with MDX

Use MDX to style your docs pages.

Code samples

Add sample code to demonstrate how to use your product.

Images

Display images and other media.

Reusable snippets

Write once and reuse across your docs.

Need inspiration?

See complete examples

Browse our showcase of exceptional documentation sites.