# Samurai AI ## Docs - [Create Chat Completion](https://docs.samuraiapi.in/api-reference/endpoint/chat-completions.md): Generate a model response for a conversation. Supports 200+ models, streaming, function calling, and vision. - [Create Embedding](https://docs.samuraiapi.in/api-reference/endpoint/create-embedding.md): Convert text to vector representations for semantic search, RAG, clustering, and classification. - [Create Speech](https://docs.samuraiapi.in/api-reference/endpoint/create-speech.md): Convert text to natural-sounding audio. Choose from 6 voices and 5 audio formats. - [Transcribe Audio](https://docs.samuraiapi.in/api-reference/endpoint/create-transcription.md): Transcribe audio files to text using Whisper. Supports 99 languages and subtitle export. - [Image Generation](https://docs.samuraiapi.in/api-reference/endpoint/images-generate.md): Generate images using various AI models - [List Models](https://docs.samuraiapi.in/api-reference/endpoint/list-models.md): Returns a list of all AI models currently available on Samurai AI. - [Video Generation](https://docs.samuraiapi.in/api-reference/endpoint/video-generate.md): Generate videos using various AI models - [API Playground](https://docs.samuraiapi.in/api-reference/introduction.md): Interactive API reference — test every endpoint directly in the browser with your API key. - [Messages](https://docs.samuraiapi.in/api/anthropic/messages.md): Create messages with Claude models using the native Anthropic SDK format. POST /v1/messages. - [Anthropic Format Overview](https://docs.samuraiapi.in/api/anthropic/overview.md): Use Claude models with the official Anthropic SDK — point it at Samurai AI and your existing code works unchanged. - [Speech to Text](https://docs.samuraiapi.in/api/audio/speech-to-text.md): Transcribe audio files to text using Whisper and other transcription models. - [Text to Speech](https://docs.samuraiapi.in/api/audio/text-to-speech.md): Convert text to lifelike audio using OpenAI TTS and other voice models. - [Chat Completions](https://docs.samuraiapi.in/api/chat-completions.md): Generate text using 200+ language models. Fully OpenAI-compatible — POST /v1/chat/completions. - [Embeddings](https://docs.samuraiapi.in/api/embeddings.md): Convert text into vector representations for semantic search, RAG, and clustering. - [Function Calling](https://docs.samuraiapi.in/api/function-calling.md): Give models access to custom tools and functions using structured JSON schemas. - [Streaming](https://docs.samuraiapi.in/api/streaming.md): Stream responses token-by-token using Server-Sent Events. Add stream: true to any chat request. - [Vision](https://docs.samuraiapi.in/api/vision.md): Send images to multimodal models for analysis, description, and reasoning. - [Authentication](https://docs.samuraiapi.in/authentication.md): Authenticate your Samurai AI API requests using API keys. - [Samurai AI](https://docs.samuraiapi.in/index.md): Access 400+ AI models through a single OpenAI-compatible API — at 50% off provider prices. - [Quick Start](https://docs.samuraiapi.in/quickstart.md): Make your first Samurai AI API call in under 5 minutes. No special SDK needed — use the OpenAI library. - [Error Codes](https://docs.samuraiapi.in/reference/errors.md): Every error Samurai AI can return, with causes, fixes, and retry strategies. - [FAQ](https://docs.samuraiapi.in/reference/faq.md): Frequently asked questions about Samurai AI — the unified AI API gateway. - [Models](https://docs.samuraiapi.in/reference/models.md): All AI models available on Samurai AI — live data, real pricing at 50% off provider rates. - [Pricing](https://docs.samuraiapi.in/reference/pricing.md): Samurai AI charges 50% of provider rates. Real prices from model-metadata — no markup surprises. - [Rate Limits](https://docs.samuraiapi.in/reference/rate-limits.md): Understand request limits by plan and how to handle rate limit errors. - [Node.js SDK](https://docs.samuraiapi.in/sdks/nodejs.md): Full Node.js and TypeScript integration guide for Samurai AI. - [Python SDK](https://docs.samuraiapi.in/sdks/python.md): Full Python integration guide for Samurai AI using the OpenAI Python SDK. - [REST API](https://docs.samuraiapi.in/sdks/rest.md): Raw HTTP API reference — use Samurai AI from any language or tool. ## OpenAPI Specs - [openapi](https://docs.samuraiapi.in/openapi.yaml)