SDKs
Official client libraries for the Segmind AI Gateway. Submit inference, poll for results, chat with LLMs, and upload files — without hand-rolling HTTP and polling loops.
Our SDKs wrap the AI Gateway so you can run any model with a single function call. They handle authentication, the v2 async submit-and-poll loop, error mapping, and file uploads for you.
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.
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.