Request an authority key for the SwiftAPI Trust Authority. Instant issuance. Verify scope. Start governing AI actions now. Trust baked into AI execution and everything is signed, attested, and auditable.
pip install swiftapi-pythonOpenAI
from swiftapi import OpenAI
client = OpenAI(
swiftapi_key="swiftapi_live_...",
openai_key="sk-..."
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Anthropic
from swiftapi import Anthropic
client = Anthropic(
swiftapi_key="swiftapi_live_...",
anthropic_key="sk-ant-..."
)
response = client.messages.create(
model="claude-sonnet-4-5-20250929",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}]
)
print(response.content[0].text)