Skip to main content
The SeekrFlow Python SDK provides programmatic access to the SeekrFlow platform, including inference, agents, fine-tuning, content moderation, explainability, and data preparation. The SDK supports Python 3.9+ with synchronous and asynchronous clients. For direct HTTP access without an SDK, see the API Reference.

Prerequisites

  • Python 3.9 or higher
  • A SeekrFlow account. See Access SeekrFlow for setup instructions.
  • A SeekrFlow API key, available in the User Profile section of the dashboard.

Installation

Authentication

Set your API key as an environment variable:
Verify the variable is set by running echo $SEEKR_API_KEY (or echo %SEEKR_API_KEY% on Windows).

Choosing a team

Resources in SeekrFlow belong to a team. If you don’t select one, requests use your personal workspace. To work in a specific team, set the SEEKR_TEAM_ID environment variable or an x-team-id header on the client. See Work with teams for details.

Supported integrations

SeekrFlow supports the native Python SDK and two third-party clients. All three provide access to the same inference engine. SeekrFlow SDK – Native Python client with full platform access, including agents, fine-tuning, data engine, and explainability. No additional packages required beyond seekrai. OpenAI SDK – OpenAI-compatible inference endpoint. Existing OpenAI-based applications can connect to SeekrFlow by changing the base_url. Install with:
The OpenAI compatibility layer supports model, messages, stream, temperature, logprobs, top_logprobs, max_tokens, stop, top_p, frequency_penalty, presence_penalty, and tools. Parameters such as tool_choice, parallel_tool_calls, n, logit_bias, and max_completion_tokens are not supported. LangChain – The ChatSeekrFlow wrapper integrates SeekrFlow models into LangChain chains, prompts, and tools. Install with:
ChatSeekrFlow supports tool calling, structured output, JSON mode, streaming, and token usage tracking. Async APIs, image input, audio input, and video input are not currently supported.

First API call

Asynchronous usage

The SeekrFlow SDK includes an asynchronous client for non-blocking requests.

What you can build

Agents

Create agents, attach tools, manage threads, and run multi-turn conversations.

Fine-tuning

Train models on your data with instruction fine-tuning, context-grounded fine-tuning, or reinforcement tuning.

Content moderation

Classify content for safety and brand risk using Seekr ContentGuard and Meta Llama Guard.

Data engine

Ingest files, generate training datasets, and build vector databases for retrieval.

Explainability

Retrieve the fine-tuning data that influenced a model’s response.
Last modified on June 24, 2026