Go SDK
Ce contenu n’est pas encore disponible dans votre langue.
The Go SDK is coming soon. It will bind the same Rust core as the Python and
TypeScript SDKs through the stable C ABI (cgo), so
behaviour — ensure() idempotency, OnDrift, the
two-token split, error types — matches the shipped languages exactly.
What to expect
When it lands, the package will live at:
require github.com/inferencekey/inferencekey-sdk/go latestThe surface mirrors the other languages: a ManagementClient (control plane,
ik_sdk_ token, scoped to one project) for declaring and reconciling workloads,
and a DataClient (data plane, ik_live_ token, passed per workload) for
calling the resulting OpenAI-compatible endpoints. The same environment
variables apply (INFERENCEKEY_BASE_URL, INFERENCEKEY_PROJECT,
INFERENCEKEY_API_KEY, INFERENCEKEY_SDK_TOKEN).
Feature parity is the goal but reached over time: newer Python/TypeScript
conveniences such as streaming (generate_text_stream) and readiness
(wait_until_ready) may not be in the Go client on day one.
In the meantime
The control and data planes are plain HTTP, so any Go program can talk to the
platform directly today: the control routes under
/api/projects/:project_id/workloads and the OpenAI-compatible data plane under
/endpoint/:projectSlug/:workloadSlug/v1/.... See the
wire format for the exact contract.
New to InferenceKey? Create an account or open the dashboard · Learn more at inferencekey.com.