Skip to main content

1. Get your IronaAI API Key

Create or log in to your IronaAI account. Grab your account’s API key from the “Settings” page. Gif of creating IronaAI Keys

2. Install the IronaAI SDK

pip install ironaai

</CodeGroup>

# 3. Integrate in 3 Lines of Code

<CodeGroup>
```Python Python
from ironaai import ironaai

client = ironaai.Client( # Optional - automatically loads from environment variable
api_key='your_ironaai_api_key'
)

chat_completions = irona.completions.create(
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain the golden ratio."}
],
models=['openai/gpt-4o', 'anthropic/claude-3-5-sonnet-20240620']
)

print('LLM output:', chat_completions.content)
print('Selected providers:', chat_completions.providers)