Skip to main content

silvol-python

Python SDK for Silvol — an OpenAI-compatible inference API running on Nosana's decentralised GPU grid.

Drop-in replacement for the OpenAI SDK. Change the base URL and your key; keep the rest of your code.


Install

pip install silvol

With optional framework integrations:

pip install silvol[langchain]   # LangChain
pip install silvol[crewai]      # CrewAI
pip install silvol[all]         # both

Quickstart

from silvol import Silvol

client = Silvol(api_key="sk-svl-...")          # or set the SILVOL_API_KEY env var

resp = client.chat.completions.create(
    model="DeepSeek-R1-Distill-Qwen-7B",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

Async:

import asyncio
from silvol import AsyncSilvol

async def main():
    client = AsyncSilvol(api_key="sk-svl-...")
    resp = await client.chat.completions.create(
        model="DeepSeek-R1-Distill-Qwen-7B",
        messages=[{"role": "user", "content": "Hello"}],
        stream=True,
    )
    async for chunk in resp:
        print(chunk.choices[0].delta.content or "", end="", flush=True)

asyncio.run(main())

LangChain

from silvol.integrations.langchain import SilvolChat

llm = SilvolChat(api_key="sk-svl-...")
result = llm.invoke("Summarise the Silvol architecture in one sentence.")
print(result.content)

CrewAI

from silvol.integrations.crewai import SilvolLLM
from crewai import Agent, Task, Crew

llm = SilvolLLM(api_key="sk-svl-...")

researcher = Agent(
    role="Senior Researcher",
    goal="Uncover groundbreaking technologies in AI",
    backstory="...",
    llm=llm,
)

Models

Model ID Context Notes
DeepSeek-R1-Distill-Qwen-7B 32k Always-on — call directly
meta-llama/Llama-3.1-70B-Instruct 128k On-demand — deploy first
Qwen/Qwen2.5-Coder-32B-Instruct 32k On-demand — deploy first

DeepSeek-R1-Distill-Qwen-7B is the always-on model returned by GET https://api.silvol.ai/v1/models — call it directly. Other models are served on demand: provision a dedicated GPU deployment first (from the dashboard or the deployments API), then call it by the HuggingFace model ID you deployed.


Authentication

Get your API key from the Silvol Dashboard. Keys are prefixed sk-svl-. Pass it as api_key=, or set the SILVOL_API_KEY environment variable (the SDK reads it automatically). OPENAI_API_KEY also works as a fallback.


Metadata

Release files for silvol 0.2.1

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

Source distribution (sdist)

Source distribution for silvol 0.2.1
File Size Uploaded Provenance Actions
silvol-0.2.1.tar.gz 9.5 kB With provenance Details for silvol-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for silvol 0.2.1
File Interpreter ABI Platform Actions
silvol-0.2.1-py3-none-any.whl Python 3 none any Details for silvol-0.2.1-py3-none-any.whl

Total release size: 19.8 kB

Release files / silvol-0.2.1.tar.gz

Download URL silvol-0.2.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1706f5fcc19137c6aa220126655a617dbaee37ba3457b0c15b0f553d34d7ec4d
BLAKE2b-256 checksum
How to use checksums
4f250fb63725031dfb288f4a525993e7d2ce3b258ae6fea902912b1ccff1d143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 19, 2026.

Transparency log

Release files / silvol-0.2.1-py3-none-any.whl

Download URL silvol-0.2.1-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
11434e403465895d633084391a0017583d70fa0a1f683fa2dfb242711f8de84e
BLAKE2b-256 checksum
How to use checksums
71c77690aa81605861c23b7e8194ce2b671da81fe18d61b49371f48f90b1ecc4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 19, 2026.

Transparency log

Security for silvol 0.2.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for silvol-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 19, 2026.

Transparency log

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.2.1 This release

2 release files Full 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