Docs

LogicBasis Gateway API

A cognitive gateway layer for external inference systems. LogicBasis injects stable Core identities during request transit while you retain full control over models, providers, inference parameters, context construction, and execution flow.

The Pass-Through Principle

LogicBasis is not a hosted language model provider. Your system sends inference requests through the LogicBasis gateway while continuing to use your own external provider accounts.

The gateway validates your LogicBasis market key, deducts exactly 1 request unit, injects the selected Core identity, forwards the request to the chosen provider, and returns a normalized response structure.

LogicBasis does not rewrite, reinterpret, or manually alter provider outputs beyond Core identity injection and response normalization.

The Core identities exposed through the LogicBasis Market are derived abstractions of the original LogicBasis system — intentionally reduced so others can build independently without exposing the internal architecture of the complete environment.

View original system documentation →

Gateway Endpoint

https://market.logicbasis.ch

Authentication

Every request requires both a LogicBasis market key and a provider API key.

Authorization: Bearer YOUR_LOGICBASIS_MARKET_KEY
x-provider-api-key: YOUR_PROVIDER_API_KEY

Request Format

Each Core is exposed as a dedicated POST endpoint. The gateway accepts a minimal unified request structure independent of the selected provider.

FieldTypeRequiredDescription
modelstringYesTarget provider model identifier
inputstringYesRaw user input sequence
temperaturenumberNoSampling temperature. Default: 0.0
top_pnumberNoNucleus sampling parameter. Default: 1.0
providerstringNoExplicit provider selector: openai, anthropic, deepseek
max_tokensnumberNoSupported only for Anthropic requests
POST /api/v1/lb-1.1
Content-Type: application/json
Authorization: Bearer YOUR_LOGICBASIS_MARKET_KEY
x-provider-api-key: YOUR_PROVIDER_API_KEY

{
  "model": "gpt-4o",
  "temperature": 0.0,
  "top_p": 1.0,
  "input": "The raw user sequence to process..."
}

Response Normalization

Different providers return different response formats. LogicBasis normalizes provider responses into a unified structure independent of provider-specific schemas.

The returned output field contains the extracted provider-generated response content.

{
  "status": "success",
  "core": "lb-1.1",
  "output": "The provider-generated response..."
}

Core Namespace Routing

CoreEndpoint
Analysis Core/api/v1/lb-1.1
Clarify Core/api/v1/lb-1.2
Reduction Core/api/v1/lb-1.3
Strategy Core/api/v1/lb-1.4
Synthesis Core/api/v1/lb-1.5

Provider Routing

LogicBasis currently supports OpenAI, Anthropic, and DeepSeek provider routing.

If no explicit provider is supplied, the gateway infers the provider from the model identifier.

Model PrefixProvider
claude-Anthropic
deepseek-DeepSeek
all other modelsOpenAI

Units & Billing

Each successful request deducts exactly 1 unit from your LogicBasis market balance.

Provider-side inference costs are billed directly through your own provider account.

When your balance reaches zero, the gateway returns a402response.

Security & Data Handling

All requests are transmitted over TLS.

The gateway is designed not to persist provider API keys, payload content, provider outputs, or conversation history beyond transient request execution.

LogicBasis does not provide persistent memory, conversation storage, inference trace retention, or behavioral analytics.

Stability & Execution Responsibility

LogicBasis is designed to provide stable Core identity conditioning during provider transit.

Final output behavior remains dependent on: model family, provider infrastructure, inference parameters, runtime conditions, and context construction.

You remain fully responsible for output supervision, factual verification, safety evaluation, and downstream system integration.

Error Handling

CodeMeaning
400Invalid input or model
401Missing or invalid LogicBasis key
402Insufficient balance
5xxProvider-side or internal gateway failure
Provider StatusProvider-side error codes may be forwarded transparently

For calm and minimal communication regarding integration or account matters: contact@logicbasis.ch