Skip to main content

Infermion Python SDK

The official synchronous and asynchronous Python client for Infermion.

from infermion import Infermion

client = Infermion(api_token="...")
for deployment in client.deployments.list():
    print(deployment.id, deployment.status)

context = client.run.context(deployment="dep_prod")
response = client.run.chat(
    deployment="dep_prod",
    model="chat",  # served name, not a provider/model ID
    prompt="Explain tensor parallelism",
)

# Long-running tasks can be detached without changing deployment/model state.
job = client.run.submit(
    deployment="dep_prod",
    model="image",
    task="image_generation",
    input=[{"role": "user", "content": "A nebula"}],
)

The SDK never opens a browser or prompts. Use infermion login from the native infermion terminal application for interactive authentication.

Infermion and AsyncInfermion expose market/planning, account models, dedicated deployments and model lifecycle, model-aware run, endpoints, keys, connections, volumes, billing, jobs, events, extensions, and plugins. Use InferenceClient/AsyncInferenceClient with a separately scoped endpoint API key for stable endpoint data-plane calls.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infermion-0.1.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infermion-0.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file infermion-0.1.0.tar.gz.

File metadata

  • Download URL: infermion-0.1.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for infermion-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a26035ddbb566b1cead209ab8daea78d03416cb25e07110b2fa5c222fe6ba514
MD5 54fda7b77665512cff459e59dbecef4c
BLAKE2b-256 09d043cc7473eb98576909baa358a94ba4b73eaa09600948d11d6f3e67a0369b

See more details on using hashes here.

Provenance

The following attestation bundles were made for infermion-0.1.0.tar.gz:

Publisher: python-sdk-release.yml on infermion/infermion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infermion-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: infermion-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for infermion-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b46b9766db1be7ee3c376d43d7fac85f0c92638b51cbe23cb87be90757d9114
MD5 cb2dd332dd245789396dcbad3c982b3a
BLAKE2b-256 c5f2d0a0077a0ef42eaccf2480f2cb6e78e728289c63371307f4fff11de6dd21

See more details on using hashes here.

Provenance

The following attestation bundles were made for infermion-0.1.0-py3-none-any.whl:

Publisher: python-sdk-release.yml on infermion/infermion

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page