Developers / Choose your entry point

Build around
the work.

Start with model access, agent workflows or knowledge. Choose the integration path that fits your application.

Explore Swfte on GitHub ↗

In short:Un gateway compatible con OpenAI para crear aplicaciones de IA. Usa los SDK oficiales de OpenAI o HTTP con tu clave de API de Swfte.

INTEGRATION MAP / ILLUSTRATIVE
application → model access → response

Model access

Connect your application to model access. Start by reviewing routing, authentication and usage requirements.

Explore Connect

Follow the published reference.

Read the SDK examples and integration guidance alongside the product you intend to use.

Open the developer reference

Before your first integration

Agree the credential boundary, test inputs, failure handling and the usage you need to observe.

Discuss an integration
Pruébalo en vivo

Playground de API interactivo

Pruebe llamadas API en tiempo real con ejemplos de código en vivo y resultados instantáneos.

agents.run()models.list()chat.complete()embeddings.create()workflows.execute()knowledge.query()analytics.track()files.upload()agents.run()models.list()chat.complete()embeddings.create()workflows.execute()knowledge.query()analytics.track()files.upload()
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." }
    ]
  }'

Tu ruta de integración guiada

Póngase en marcha en minutos con nuestra guía de integración paso a paso.

export SWFTE_API_KEY="sk-swfte-..."
Paso 1

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"],
)
Paso 2

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)
Paso 3

Make your first request

Use a mini model on the free plan. Any OpenAI-compatible client or plain curl works the same way.

Preguntas frecuentes

Todavía no existe un SDK propio de Swfte. El gateway es compatible con OpenAI, así que los SDK oficiales de OpenAI (Python, TypeScript y otros) funcionan si apuntas la URL base al gateway de Swfte, igual que cualquier cliente HTTP.

Use claves API almacenadas en variables de entorno o pasadas directamente al SDK. Admitimos OAuth2 para la integración SSO empresarial y proporcionamos rotación segura de claves.

Nivel gratuito: 100 solicitudes/minuto. Pro: 1,000 solicitudes/minuto. Empresarial: Límites personalizados con capacidad dedicada y manejo de ráfagas.

El SDK proporciona clases de error tipadas con mensajes detallados. Todos los errores incluyen ID de solicitud para depuración y soporte. También ofrecemos reintentos automáticos con retroceso exponencial.

¡Sí! Todos los SDK admiten Server-Sent Events (SSE) para transmisión en tiempo real. Puede recibir tokens a medida que se generan para interfaces de usuario receptivas.

¿Listo para empezar a construir?

Obtenga su clave API y comience a construir en minutos.

Deploy a model with Swfte Connect

One gateway, every provider, per-token cost visibility. Swap models without touching your code.