Build around
the work.
Start with model access, agent workflows or knowledge. Choose the integration path that fits your application.
In short:Ein OpenAI-kompatibles Gateway für KI-Anwendungen. Nutzen Sie die offiziellen OpenAI-SDKs oder einfaches HTTP mit Ihrem Swfte-API-Schlüssel.
application → model access → response
Model access
Connect your application to model access. Start by reviewing routing, authentication and usage requirements.
Explore ConnectFollow the published reference.
Read the SDK examples and integration guidance alongside the product you intend to use.
Open the developer referenceBefore your first integration
Agree the credential boundary, test inputs, failure handling and the usage you need to observe.
Discuss an integrationInteraktiver API-Playground
Testen Sie API-Aufrufe in Echtzeit mit Live-Code-Beispielen und sofortigen Ergebnissen.
curl https://api.swfte.com/agents/v2/gateway/chat/completions \
-H "Authorization: Bearer $SWFTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai:gpt-4o-mini",
"messages": [
{ "role": "user", "content": "Say hello in five words." }
]
}'Ihr geführter Integrationspfad
Starten Sie in wenigen Minuten mit unserem schrittweisen Integrationsleitfaden.
export SWFTE_API_KEY="sk-swfte-..."Create an API key
Open the Connect console, create an API key and keep it in an environment variable.
# pip install openai
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.swfte.com/agents/v2/gateway",
api_key=os.environ["SWFTE_API_KEY"],
)Point the OpenAI SDK at Swfte
The gateway is OpenAI-compatible. Install the official openai package and set the base URL.
response = client.chat.completions.create(
model="openai:gpt-4o-mini",
messages=[{"role": "user", "content": "Hello, world!"}],
)
print(response.choices[0].message.content)Make your first request
Use a mini model on the free plan. Any OpenAI-compatible client or plain curl works the same way.
Für Entwickler gebaut
Alles, was Sie zum Erstellen von KI-Anwendungen auf Produktionsniveau benötigen.
Vollständige TypeScript-Definitionen
mit Autovervollständigung und Kompilierzeitprüfung.
TypeScript, Python, Go, Ruby
und mehr mit vollständiger Feature-Parität.
Token-für-Token-Streaming
mit SSE- und WebSocket-Unterstützung.
Latenz, Tokens, Kosten, Fehler
automatisch verfolgt.
Häufig gestellte Fragen
Ein eigenes Swfte-SDK gibt es noch nicht. Das Gateway ist OpenAI-kompatibel: Die offiziellen OpenAI-SDKs (Python, TypeScript und weitere) funktionieren, wenn Sie die Basis-URL auf das Swfte-Gateway setzen, ebenso jeder HTTP-Client.
Verwenden Sie API-Schlüssel, die in Umgebungsvariablen gespeichert oder direkt an das SDK übergeben werden. Wir unterstützen OAuth2 für Enterprise-SSO-Integration und bieten sichere Schlüsselrotation.
Kostenlos: 100 Anfragen/Minute. Pro: 1.000 Anfragen/Minute. Enterprise: Benutzerdefinierte Limits mit dedizierter Kapazität und Burst-Behandlung.
Das SDK bietet typisierte Fehlerklassen mit detaillierten Nachrichten. Alle Fehler enthalten Anfrage-IDs für Debugging und Support. Wir bieten auch automatische Wiederholungsversuche mit exponentiellem Backoff.
Ja! Alle SDKs unterstützen Server-Sent Events (SSE) für Echtzeit-Streaming. Sie können Tokens empfangen, sobald sie für responsive UIs generiert werden.
Bereit, mit dem Bauen zu beginnen?
Holen Sie sich Ihren API-Schlüssel und beginnen Sie in wenigen Minuten mit dem Bauen.