Skip to main content

Orca SDK

The Orca SDK
A provider-agnostic Python library for unified AI model interactions.
Read the LICENSE file for full terms and conditions.

Orca is a unified SDK for interacting with multiple AI providers through a single, consistent interface. It truly transforms the way developers work with AI by making it intuitive, efficient, and provider-agnostic.

Core Features

  • Unified Interface — Single API for OpenAI, Anthropic, Google Gemini, and OpenRouter
  • Sync + Async — Full support for both synchronous and asynchronous operations
  • Streaming — Real-time streaming responses with iterator interface
  • Dynamic Registry — Automatic model discovery with parallel provider fetching
  • Typed Exceptions — Precise error handling with provider context
  • Structured Responses — Normalized responses across all providers

Quick Start

1. Installation

# Install with pip
pip install orca-ai-sdk

# Or with uv
uv pip install orca-ai-sdk

2. Basic Usage

from orca import Orca

# Initialize with providers
client = Orca(
    providers=["openai", "anthropic"],
    api_keys={
        "openai": "sk-...",
        "anthropic": "sk-ant-..."
    }
)

# Chat completion
response = client.chat(
    model="gpt-5",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.text)

# Streaming
for chunk in client.chat(model="claude-opus-4.5", messages=messages, stream=True):
    print(chunk.delta_text, end="", flush=True)

# Embeddings
embedding = client.embed(model="text-embedding-3-small", input="Hello world")
print(f"Dimensions: {embedding.dimensions}")

Supported Providers

Provider Chat Embeddings Images Streaming
OpenAI ✅ ✅ ✅ ✅
Anthropic ✅ ❌ ❌ ✅
Gemini ✅ ✅ ❌ ✅
OpenRouter ✅ ❌ ❌ ✅

Repository Structure

orca/
├── orca/
│   ├── core/          # Core client & registry
│   ├── providers/     # Provider implementations
│   └── utils/         # Types & formatters
├── tests/             # Test suite
├── pyproject.toml     # Package configuration
└── README.md          # This file

Team

  • Alexutzu — Developer

License

Copyright © TreeSoft 2025. Released under the MIT License.
See LICENSE for full terms and conditions.

Metadata

Release files for orca-ai-sdk 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orca-ai-sdk 0.2.3
File Size Uploaded
orca_ai_sdk-0.2.3.tar.gz 35.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orca-ai-sdk 0.2.3
File Interpreter ABI Platform
orca_ai_sdk-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 78.9 kB

Release files / orca_ai_sdk-0.2.3.tar.gz

Download URL orca_ai_sdk-0.2.3.tar.gz
Size 35.0 kB
Tags Source
SHA-256 checksum
How to use checksums
026da84050a3dcc80855b2e666e1ec3138b81c20d16cf462bf3efb156c0e042b
BLAKE2b-256 checksum
How to use checksums
e0443384f5665c0dd9e1b57bd582b26aabbf1f46c4c43afb20dec3a4e7b76d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release files / orca_ai_sdk-0.2.3-py3-none-any.whl

Download URL orca_ai_sdk-0.2.3-py3-none-any.whl
Size 43.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba7eeabdc83c027bd0ce195a4fe622d8a0943a646d602220cfb474ed96b226e5
BLAKE2b-256 checksum
How to use checksums
77b35669908db32a6e3b2b6199c722adefa820ee3b7213a3d644d4617dfb49f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.4

Release history Release notifications | RSS feed

This release

0.2.3 This release

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page