Official InferenceKey SDK — declare AI workloads in code, ensure they exist, and call the resulting OpenAI-compatible endpoints.
Project description
inferencekey (Python)
Official Python SDK for the InferenceKey platform — a thin, typed layer over
the shared Rust core (inferencekey-core).
Declare AI workloads in code, ensure they exist on the platform, and call the resulting OpenAI-compatible endpoints.
from inferencekey import ManagementClient, DataClient, WorkloadSpec, Backend
mgmt = ManagementClient.from_env(project="acme") # INFERENCEKEY_SDK_TOKEN
ref = mgmt.ensure(WorkloadSpec(
name="support-bot", slug="support-bot",
model="meta-llama/Llama-3.1-8B-Instruct", backend=Backend.VLLM,
command="vllm serve meta-llama/Llama-3.1-8B-Instruct --max-model-len 8192",
))
data = DataClient.from_env(project="acme")
out = data.endpoint(ref.workload_slug, api_key="ik_live_...").generate_text(prompt="Hola")
print(out.text)
Two tokens, two clients (least privilege): ik_sdk_ provisions (control plane);
ik_live_ calls inference (data plane, per workload). Full docs at
docs.inferencekey.com.
License: Apache-2.0.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inferencekey-0.260706.1006-cp39-abi3-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: inferencekey-0.260706.1006-cp39-abi3-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79a374e345ebde8e8a5e930024f5c86e248810eae75a55719caee651e403b634
|
|
| MD5 |
68f26554ac0b541cd084f9bce48c540e
|
|
| BLAKE2b-256 |
574cd68dcd610747ed477eb884728d7e10121bb880dd99750cb5ad678b6105c5
|
File details
Details for the file inferencekey-0.260706.1006-cp39-abi3-manylinux_2_34_aarch64.whl.
File metadata
- Download URL: inferencekey-0.260706.1006-cp39-abi3-manylinux_2_34_aarch64.whl
- Upload date:
- Size: 1.6 MB
- Tags: CPython 3.9+, manylinux: glibc 2.34+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86eba5b8fbce20186e4daacf40db0551654627d77136f4ae111190f357d6c99d
|
|
| MD5 |
4ca320001ccd956e12fc9a9ee6d3883f
|
|
| BLAKE2b-256 |
9b94384647ca78e331f026268ff215e57cf68dba39ccb9a228accfd51f091dc9
|