Aleph Alpha

Trace Aleph Alpha Luminous model calls with Respan.
  1. Sign up — Create an account at platform.respan.ai
  2. Create an API key — Generate one on the API keys page
  3. Add credits or a provider key — Add credits on the Credits page or connect your own provider key on the Integrations page

Add the Docs MCP to your AI coding tool to get help building with Respan. No API key needed.

1{
2 "mcpServers": {
3 "respan-docs": {
4 "url": "https://docs.respan.ai/mcp"
5 }
6 }
7}

What is Aleph Alpha?

Aleph Alpha is a European AI company offering the Luminous family of large language models. Their API provides text generation, semantic embeddings, and multimodal capabilities with a focus on enterprise use cases and data sovereignty.

Setup

1

Install packages

$pip install respan-ai opentelemetry-instrumentation-alephalpha aleph-alpha-client python-dotenv
2

Set environment variables

$export ALEPH_ALPHA_API_KEY="YOUR_ALEPH_ALPHA_API_KEY"
$export RESPAN_API_KEY="YOUR_RESPAN_API_KEY"
$export OTEL_EXPORTER_OTLP_ENDPOINT="https://api.respan.ai/api"
$export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer $RESPAN_API_KEY"
3

Initialize and run

1import os
2from dotenv import load_dotenv
3
4load_dotenv()
5
6from aleph_alpha_client import Client, CompletionRequest, Prompt
7from respan import Respan
8
9# Auto-discover and activate all installed instrumentors
10respan = Respan(is_auto_instrument=True)
11
12# Calls to Aleph Alpha are auto-traced by Respan
13client = Client(token=os.getenv("ALEPH_ALPHA_API_KEY"))
14
15request = CompletionRequest(
16 prompt=Prompt.from_text("Say hello in three languages:"),
17 maximum_tokens=100,
18)
19response = client.complete(request, model="luminous-base")
20print(response.completions[0].completion)
21respan.flush()
4

View your trace

Open the Traces page to see your auto-instrumented LLM spans.

What gets traced

  • Model name (Luminous family)
  • Prompt and completion tokens
  • Input/output content
  • Response latency
  • Hosting region

Traces appear in the Traces dashboard.

Learn more