baseten-performance-client
A ultra-high performance package for sending requests to Baseten Embedding Inference'
Decision gist · record as of 2026-08-14
Yes, if you need high-throughput concurrent HTTP requests to embeddings or classification APIs and can tolerate medium install friction. The Rust backend and active maintenance (recent release, 1188 stars) suggest reliability. Verify the license claim before use in proprietary code, and confirm the >1200 rps benchmark applies to your workload. The single runtime dependency (requests) is a plus.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.8; API key and valid Baseten endpoint URL needed for actual use.
- Medium install friction due to compiled wheels across many platforms (cp313t, cp38-abi3, musllinux variants).
- Active maintenance with recent releases and 1188 GitHub stars.
License · maintenance · safety
(unclear) — License treatment is unclear—the description states MIT licensing, but the fact sheet records no SPDX identifier or license_raw value. Verify the actual license before relying on this package in proprietary or GPL-licensed projects.
last release 2026-08-06 (8 days) · last repo commit 2026-08-13 · 1,188 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 461,585 downloads/mo, #6,531 on PyPI
Alternatives
Verify before relying
pip install baseten_performance_client
import os
from baseten_performance_client import PerformanceClient
api_key = os.environ.get("BASETEN_API_KEY")
client = PerformanceClient(base_url="https://model-xxx.api.baseten.co/environments/production/sync", api_key=api_key)
response = client.embed(input=["Hello world"], model="my_model")- Whether the MIT license claim in the description is reflected in official metadata and whether it applies to the Rust components.
- Whether the >1200 rps benchmark holds for your specific workload and infrastructure.
- Compatibility with PyPy beyond the classifier claim—whether all features work or only a subset.
What it is and what it does
baseten-performance-client is a Python wrapper around a Rust-based HTTP client designed to send high-volume concurrent requests to Baseten's embedding, reranking, and classification APIs. It releases Python's GIL during network I/O, enabling true parallelism for batch operations. The library supports both synchronous and asynchronous usage patterns, with configurable batching, concurrency limits, request timeouts, and connection pooling via HTTP/1.1 or HTTP/2.
The package is built on pyo3, reqwest, and tokio, and works not only with Baseten endpoints but with any HTTP API accepting JSON POST requests. It offers a RequestProcessingPreference object to tune batch size, concurrent request limits, character limits per request, hedge delays, and total operation timeouts. The library includes response objects for embeddings, reranking, and classification, with optional NumPy integration for embeddings.
Use it for
- Batch embedding generation for large document corpora using Baseten, OpenAI, or Mixedbread APIs with minimal latency.
- Concurrent reranking of search results or document lists with configurable batch sizes and timeouts.
- Generic high-throughput POST request batching to any JSON API endpoint outside Baseten.
- Async/await integration in event-driven applications needing non-blocking embedding or classification calls.
- Performance-critical pipelines where GIL release and connection pooling reduce end-to-end latency.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need high-throughput concurrent HTTP requests to embeddings or classification APIs and can tolerate medium install friction.
The Rust backend and active maintenance (recent release, 1188 stars) suggest reliability. Verify the license claim before use in proprietary code, and confirm the >1200 rps benchmark applies to your workload. The single runtime dependency (requests) is a plus.
Install
baseten-performance-client on PyPI
Before you install
Medium install friction due to compiled wheels across many platforms (cp313t, cp38-abi3, musllinux variants). Active maintenance with recent releases and 1188 GitHub stars. Single runtime dependency (requests) keeps the footprint small.
Requires Python >=3.8; API key and valid Baseten endpoint URL needed for actual use.
License in practice
License treatment is unclear—the description states MIT licensing, but the fact sheet records no SPDX identifier or license_raw value. Verify the actual license before relying on this package in proprietary or GPL-licensed projects.
Quickstart
pip install baseten_performance_client
import os
from baseten_performance_client import PerformanceClient
api_key = os.environ.get("BASETEN_API_KEY")
client = PerformanceClient(base_url="https://model-xxx.api.baseten.co/environments/production/sync", api_key=api_key)
response = client.embed(input=["Hello world"], model="my_model")
Verify before relying
- Whether the MIT license claim in the description is reflected in official metadata and whether it applies to the Rust components.
- Whether the >1200 rps benchmark holds for your specific workload and infrastructure.
- Compatibility with PyPy beyond the classifier claim—whether all features work or only a subset.
Package facts
| License | Not declared unclear |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Actively maintained 8 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 461,585 / month, #6,531 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyProgramming Language :: Rust |
Evidence: baseten_performance_client-0.1.13-cp313-cp313t-macosx_10_12_x86_64.whl; baseten_performance_client-0.1.13-cp313-cp313t-macosx_11_0_arm64.whl; baseten_performance_client-0.1.13-cp313-cp313t-manylinux_2_17_i686.manylinux2014_i686.whl; baseten_performance_client-0.1.13-cp313-cp313t-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; baseten_performance_client-0.1.13-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; baseten_performance_client-0.1.13-cp313-cp313t-musllinux_1_2_aarch64.whl; baseten_performance_client-0.1.13-cp313-cp313t-musllinux_1_2_armv7l.whl; baseten_performance_client-0.1.13-cp313-cp313t-musllinux_1_2_i686.whl; baseten_performance_client-0.1.13-cp313-cp313t-musllinux_1_2_x86_64.whl; baseten_performance_client-0.1.13-cp38-abi3-macosx_10_12_x86_64.whl; baseten_performance_client-0.1.13-cp38-abi3-macosx_11_0_arm64.whl; baseten_performance_client-0.1.13-cp38-abi3-manylinux_2_17_i686.manylinux2014_i686.whl; baseten_performance_client-0.1.13-cp38-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl; baseten_performance_client-0.1.13-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; baseten_performance_client-0.1.13-cp38-abi3-manylinux_2_28_aarch64.whl; baseten_performance_client-0.1.13-cp38-abi3-manylinux_2_28_armv7l.whl; baseten_performance_client-0.1.13-cp38-abi3-musllinux_1_2_aarch64.whl; baseten_performance_client-0.1.13-cp38-abi3-musllinux_1_2_armv7l.whl; baseten_performance_client-0.1.13-cp38-abi3-musllinux_1_2_i686.whl; baseten_performance_client-0.1.13-cp38-abi3-musllinux_1_2_x86_64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “concurrent embedding requests”
- baseten-performance-clientA high-performance Python HTTP client for concurrent requests to…
- grequestsGRequests wraps the requests library with gevent to make concurrent…
- aiohttpaiohttp is an async HTTP client and server framework built on…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also langchain-baseten · pyreqwest · rustworkx · tensor-grep · httpr · pyqwest · retworkx · multitasking · grequests · voyageai