clervo-sdk
Dependency-free Python client for the live Clervo API. It exposes cited Search plus the complete provider-neutral AI catalog and normalized AI execution contract.
from clervo import Clervo
client = Clervo() # https://api.clervo.dev
catalog = client.models.list()
free = next(
model for model in catalog["data"]
if model["clervo"]["publicSellable"]
and model["clervo"]["billingMode"] == "free"
)
result = client.ai.execute(
model=free["id"],
input={
"kind": "chat",
"messages": [{"role": "user", "content": "Reply with ready."}],
"responseFormat": "text",
"stream": False,
},
maximum_output_tokens=16,
idempotency_key="my-stable-request-0001",
)
The catalog carries stable canonical Clervo IDs and explicit alias contracts,
capabilities, health, availability, free/paid state, pricing, and commerce
metadata. client.ai.execute() accepts the normalized chat, embedding, image,
speech, video, music, and virtual-try-on inputs published by OpenAPI. Canonical
IDs are never silently substituted.
Paid models raise ClervoPaymentRequiredError with the exact payment
challenge. The SDK never creates a wallet, signs, pays, or retries a payment
automatically. Deliberately supplied payment credentials remain bound to the
same idempotency key; replay sends no new authorization.
Search remains available through client.search.web() and
client.search.answer(). recovery_action_for(error) returns one safe next
action for known failures. Unknown settlement and timeout states prohibit retry
until reconciliation.
Pass base_url only for another HTTPS deployment or loopback development. This
client code is MIT licensed; use of the hosted Clervo service remains subject
to its service terms.
Metadata
Release files for clervo-sdk 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| clervo_sdk-0.3.0.tar.gz | 10.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clervo_sdk-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 18.9 kB
Release files / clervo_sdk-0.3.0.tar.gz
| Download URL | clervo_sdk-0.3.0.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ea393080de76a6f23f0625f2d5e3d70af5d6907ea3d3433a7cf6cff1ce57a8e
|
|
BLAKE2b-256 checksum How to use checksums |
9151bf60dfe52744ab55b10ed2d842f32b1645d3c47e33bf7161a42cd37bddcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 10, 2026.
Transparency logRelease files / clervo_sdk-0.3.0-py3-none-any.whl
| Download URL | clervo_sdk-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf6a72c09dd2f063aa917f74ccdb133f1d3a21b28cb605605a7b81bfa360ef7e
|
|
BLAKE2b-256 checksum How to use checksums |
e7d08155625427b7b8478a8fa5cf044d03c4be80c60cce54cae7425022fd805f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 10, 2026.
Transparency log