SDKs
Official client libraries for the Segmind platform. Submit inference, poll for results, chat with LLMs, and upload files — without hand-rolling HTTP and polling loops.
The official client libraries for building on Segmind. They handle authentication, the async submit-and-poll loop, error mapping, and file uploads for you, so calling a model is a single function call.
Available SDKs
Python
pip install segmind — async-by-default run(), sync run_sync(), submit/poll handles, and LLM chat().
JavaScript / TypeScript
Coming soon. Use the HTTP API directly in the meantime.
What the SDKs cover today
Model inference on the AI Gateway — running any model, LLM chat, and file uploads — is fully wrapped.
Published PixelFlow workflows are not usable
from the SDK yet. The Python package exposes a segmind.pixelflows namespace,
but every method on it raises AttributeError in 1.1.0 — that is a known
defect on our side, not a mistake in your code. Call published workflows over
REST until a fix ships: it is the same submit-poll-fetch contract the SDK already
uses for models. See the Workflow API Reference.
Prefer raw HTTP?
The SDKs are a convenience layer — every model is reachable over plain HTTP. See the API Reference for the v1 sync and v2 async endpoints.