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:Um gateway compatível com OpenAI para criar aplicações de IA. Use os SDKs oficiais da OpenAI ou HTTP simples com a sua chave de API 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
Experimente ao vivo

Playground de API interativo

Teste chamadas de API em tempo real com exemplos de código ao vivo e 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." }
    ]
  }'

Seu caminho de integração guiado

Comece em minutos com nosso guia de integração passo a passo.

export SWFTE_API_KEY="sk-swfte-..."
Passo 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"],
)
Passo 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)
Passo 3

Make your first request

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

Perguntas frequentes

Ainda não existe um SDK próprio da Swfte. O gateway é compatível com OpenAI, por isso os SDKs oficiais da OpenAI (Python, TypeScript e outros) funcionam ao definir a URL base para o gateway Swfte, assim como qualquer cliente HTTP.

Use chaves de API armazenadas em variáveis de ambiente ou passadas diretamente ao SDK. Suportamos OAuth2 para integração SSO empresarial e fornecemos rotação segura de chaves.

Nível gratuito: 100 solicitações/minuto. Pro: 1.000 solicitações/minuto. Empresarial: Limites personalizados com capacidade dedicada e tratamento de picos.

O SDK fornece classes de erro tipadas com mensagens detalhadas. Todos os erros incluem IDs de solicitação para depuração e suporte. Também oferecemos tentativas automáticas com recuo exponencial.

Sim! Todos os SDKs suportam Server-Sent Events (SSE) para streaming em tempo real. Você pode receber tokens à medida que são gerados para UIs responsivas.

Pronto para começar a construir?

Obtenha sua chave de API e comece a construir em minutos.

Deploy a model with Swfte Connect

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