POST
/
model-select
curl --request POST \
  --url https://app.irona.ai/api/v1/model-select \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "messages": [
    {
      "role": "system",
      "content": "<string>"
    }
  ],
  "llm_providers": [
    {
      "name": "<string>",
      "price": 123,
      "latency": 123,
      "attributes": {}
    }
  ],
  "tools": [
    {
      "name": "<string>",
      "description": "<string>",
      "parameters": {}
    }
  ],
  "max_model_depth": 123,
  "tradeoff": "<string>",
  "preference_id": "<string>",
  "hash_content": false,
  "previous_session": "<string>"
}'
{
  "llm_label": "<string>"
}

Example usage:

curl -X POST https://api.irona.ai/api/v1/model-select \
        -H "Authorization: Bearer <IAI_API_Key>" \
        -H "Content-Type: application/json" \
        -d '{
  "messages": [
        {"role": "system", "content": "You are a world class software developer."},
        {"role": "assistant", "content": "How can I help you today?"},
        {"role": "user", "content": "Write a merge sort in Python."}
  ],
  "llm_providers": [
    {
      "provider": "openai",
      "model": "gpt-4-1106-preview"
    },
    {
      "provider": "anthropic",
      "model": "claude-3-opus-20240229"
    }
  ],
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Successful response

The response is of type object.