Python Integration
Basic Chat
key = 'sk-xxxx'
from openai import OpenAI
client = OpenAI(
base_url="https://api.aizn.com/v1",
api_key=key
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "user", "content": "Hello?"}
]
)
print(response)
Example Pages
Integration Conventions
- Use
https://api.aizn.com/v1as the sharedbase_url - Use the console-generated Bearer token as the
api_key