Skip to main content

langchain-revana

LangChain integration for Revana: Claude, Gemini, DeepSeek and other text models from several labs behind one API key, through Revana's OpenAI-compatible Chat Completions endpoint. Each request is routed to the cheapest working provider.

Install

pip install -U langchain-revana
export REVANA_API_KEY="sr_live_..."   # create one at https://revana.si/dashboard

Chat model

from langchain_revana import ChatRevana

llm = ChatRevana(model="claude-haiku-5-5", max_tokens=256)

print(llm.invoke("Explain what an API gateway does in one sentence.").content)

for chunk in llm.stream("Count from 1 to 5."):
    print(chunk.content, end="")

ChatRevana supports everything ChatOpenAI does that the chosen model supports: streaming, async, tool calling (bind_tools), and structured output.

from langchain_core.tools import tool

@tool
def get_weather(city: str) -> str:
    """Get the weather for a city."""
    return "sunny"

msg = llm.bind_tools([get_weather]).invoke("What's the weather in Paris?")
print(msg.tool_calls)

Models

Model IDs and live per-token prices: https://api.revana.si/v1/models (text models have "kind": "text"; no key needed to list them).

Revana also serves image, video and music models (Seedance 2.5, Veo 3.1, Kling, Nano Banana Pro and more) through its generations API; see https://revana.si/docs and the revana Python SDK.

Configuration

Argument Default
model required
api_key REVANA_API_KEY
base_url https://api.revana.si/v1 (or REVANA_API_BASE)

License

MIT

Metadata

Release files for langchain-revana 0.1.0

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

Source distribution (sdist)

Source distribution for langchain-revana 0.1.0
File Size Uploaded Provenance Actions
langchain_revana-0.1.0.tar.gz 3.9 kB Without provenance Details for langchain_revana-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for langchain-revana 0.1.0
File Interpreter ABI Platform Actions
langchain_revana-0.1.0-py3-none-any.whl Python 3 none any Details for langchain_revana-0.1.0-py3-none-any.whl

Total release size: 8.4 kB

Release files / langchain_revana-0.1.0.tar.gz

Download URL langchain_revana-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2098856db5946fad163d6e655b3e08b3bb458a072c70110854a40d89249d33b7
BLAKE2b-256 checksum
How to use checksums
d8552892b6d76fd324a6e3b6c6cdb0a0f15a68988bd02339960d9d960f4788bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / langchain_revana-0.1.0-py3-none-any.whl

Download URL langchain_revana-0.1.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a155ecddbfbe16c8aa809b5a393f48ec40facf44776915cab4294271c9b21434
BLAKE2b-256 checksum
How to use checksums
a6b9b7ef5d032f49957fdf5c3d2c3b3ad1917c63eb47b07d749724f3f481c479
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for langchain-revana 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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