Skip to main content

Keiro client — call the EB1 network-of-networks API.

Project description

Keiro

EB1 network-of-networks inference. Run multiple frontier models in parallel and synthesize the best response.

Quick start

pip install keiro
keiro setup
from keiro import models

print(models("eb1-preview", "What is machine learning?"))

Or from the command line:

keiro "What is machine learning?"

How it works

EB1 sends your prompt to multiple frontier models (Claude, GPT, Gemini) in parallel, then a judge synthesizes the strongest elements into a single response. The result is more accurate and more complete than any individual model.

Models

Model Description
eb1-preview (default) Adaptive frontier model
eb1-delta-preview Adaptive model with orchestration
eb1 Standard multi-model
eb1-pro Extended capability
eb1-frontier Highest quality, max reasoning
eb1-codex Optimized for code and SWE tasks
eb1-fast Low latency, lighter models
eb1-fast-preview Adaptive, low latency
eb1-frontier-preview Adaptive, max quality
claude-opus-4-6 Direct passthrough
gpt-5.2 Direct passthrough
from keiro import models

# Default adaptive NoN
answer = models("eb1-preview", "Solve this step by step: what is 23 * 47?")

# Max quality
answer = models("eb1-frontier", "Prove that sqrt(2) is irrational.")

# Low latency
answer = models("eb1-fast", "Summarize this in one sentence.")

# Direct passthrough to a single model
answer = models("claude-opus-4-6", "Write a haiku")

Prompt-first API

from keiro import models

# Structured response with usage metadata
reply = models.response("eb1-preview", "Explain quantum computing.")
print(reply.text)
print(reply.usage)

# Reusable model binding with fixed parameters
creative = models.instance("eb1-preview", temperature=0.8)
print(creative("Write a limerick about debugging."))

# Streaming
for chunk in models.stream("eb1-preview", "Draft a launch email."):
    print(chunk, end="")

Full client

from keiro import Client

client = Client()

# Chat completions API
response = client.chat(
    messages=[{"role": "user", "content": "Explain quantum computing."}],
    model="eb1-preview",
)
print(response["choices"][0]["message"]["content"])

# Rate limit visibility
print(client.rate_limits)
# RateLimitInfo(limit_requests=1000, remaining_requests=999, ...)

client.close()

CLI

keiro "What is ML?"                 # one-shot response
keiro                               # interactive REPL
keiro -m eb1-fast "Quick answer"    # specific model
echo context | keiro "Summarize"    # pipe context as input
keiro setup                         # configure credentials
keiro models                        # list available models

Configuration

Interactive setup (recommended):

keiro setup

This validates your API key against the gateway and saves credentials to ~/.keiro/credentials.

Environment variables:

export KEIRO_API_KEY="your-api-key"

Explicit arguments:

from keiro import Client

client = Client(api_key="your-key")

Precedence: explicit arguments > environment variables > credentials file.

Requirements

  • Python 3.11+
  • No GPU required (inference runs on hosted infrastructure)

Project details


Download files

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

Source Distribution

keiro-0.12.7.tar.gz (66.1 kB view details)

Uploaded Source

Built Distribution

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

keiro-0.12.7-py3-none-any.whl (72.3 kB view details)

Uploaded Python 3

File details

Details for the file keiro-0.12.7.tar.gz.

File metadata

  • Download URL: keiro-0.12.7.tar.gz
  • Upload date:
  • Size: 66.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for keiro-0.12.7.tar.gz
Algorithm Hash digest
SHA256 399e50d885df190496a7d230001023158b3959c49a984cc706ad44f97bc9482c
MD5 ff44bebb0018344556f39377abb17981
BLAKE2b-256 4884db092b565e29617dcd52213d59ecf7d2a8ec4d4777b543b67c8bdfb8dba5

See more details on using hashes here.

File details

Details for the file keiro-0.12.7-py3-none-any.whl.

File metadata

  • Download URL: keiro-0.12.7-py3-none-any.whl
  • Upload date:
  • Size: 72.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for keiro-0.12.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a2b9f539bbb1ea2dff15cd37bfeea9954c5836fed16abb5dbd12a823fc8e2b48
MD5 ecef1e18d9e09aee7c867d68844a97b9
BLAKE2b-256 45ed09db374eaee332a49ebcc79bb5c1d9e34af1e84bfed3bd82a1894e2db58b

See more details on using hashes here.

Supported by

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