> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ironlabs.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> IronLabs API Documentation

<Note>
  Welcome to the IronLabs API documentation. This guide will help you get
  started with integrating the IronLabs API into your applications.
</Note>

The IronLabs API is a RESTful service with predictable, resource-oriented URLs. It utilizes standard HTTP verbs and response codes, and communicates using JSON for both request and response bodies.

* Base URL: [https://api.ironlabs.ai/api/v1/](https://api.ironlabs.ai/api/v1/)
* Content Type: The API accepts and returns JSON-encoded data.
* Authentication: API Key via Bearer Token.

## Authentication

<Warning>
  **Keep your API key secure!**

  Do not share it with others or expose it in any client-side code (browsers, apps).
  Production requests must be routed through your own backend server where your API key can be securely loaded from an environment variable or key management service.
</Warning>

All API endpoints are authenticated using API keys picked up from the Authorization HTTP header as follows:

```bash theme={null}
cURL --header 'Authorization: Bearer <IAI_API_Key>'
```

## API endpoints

You can learn more about each API endpoint via the sidebar links.
Include your API key in the `Authorization` header of each request:

```http theme={null}
Authorization: Bearer <IAI_API_Key>
```

<CodeGroup>
  ```bash shell theme={null}
  curl -X POST https://api.ironlabs.ai/v1/modelSelect \
       -H "Authorization: Bearer <IAI_API_Key>" \
       -H "Content-Type: application/json" \
       -d '{ "messages": [...], "models": [...] }'
  ```

  ```bash python theme={null}
  import requests

  headers = {
      "Authorization": "Bearer <IAI_API_Key>",
      "Content-Type": "application/json"
  }

  data = {
      "messages": [...],
      "models": [...]
  }

  response = requests.post("https://api.ironlabs.ai/api/v1/model-select", headers=headers, json=data)
  print(response.json())

  ```
</CodeGroup>

## Getting Started

1. **Sign Up**: Create an account on IronLabs and retrieve your API key.
2. **Integrate**: Use the `/model-select` endpoint to get model recommendations.
3. **Implement**: After receiving a recommendation, integrate with the recommended LLM using your preferred method or via our SDK.

## Support

If you have any questions or need assistance, please contact our support team at [support@ironlabs.ai](mailto:support@ironlabs.ai).
