Client Libraries
Our libraries simplify API integration, helping you speed up integration into your programs.
Looking for an API key? Contact our bot — @solvium_crypto_bot
Python
Python libraries provide simple and fast access to service functions.
Installation
First, you need to install the package, this can be done through the pip
package manager.
pip install solvium
Getting Started
Two types of methods are provided: asynchronous and synchronous. Below is an example of synchronous requests.
from solvium import Solvium
# Initialize the client and insert the key obtained from https://t.me/solvium_crypto_bot
client = Solvium(api_key="your_api_key_here")
# Solve captcha using Turnstile as an example
solution = client.turnstile_sync(
sitekey="0x4AAAAAAAGm-M_XhkhrEEFd",
pageurl="https://example.com"
)
if solution:
print(f"Captcha solved: {solution}")
else:
print("Failed to solve captcha")
And asynchronous requests.
import asyncio
from solvium import Solvium
async def solve_captcha():
# Initialize the client and insert the key obtained from https://t.me/solvium_crypto_bot
client = Solvium(api_key="your_api_key_here")
# Solve captcha using Turnstile as an example
solution = await client.turnstile(
sitekey="0x4AAAAAAAGm-M_XhkhrEEFd",
pageurl="https://example.com"
)
if solution:
print(f"Captcha solved: {solution}")
else:
print("Failed to solve captcha")
# Run the asynchronous function
asyncio.run(solve_captcha())
Client Configuration
During client initialization, you can change some parameters.
client = Solvium(
api_key="your_api_key_here", # Required: Your Solvium API key
api_proxy="http://user:password@proxy:port", # Optional: Proxy for requests to Solvium API
api_base_url="https://captcha.solvium.io/api/v1", # Optional: Custom API URL for requests
timeout=120, # Optional: Solution waiting time in seconds (default: 120 seconds)
verbose=True # Optional: Whether service information output is enabled (default: False)
)