GET
/
api
/
models
/
public
curl --request GET \
  --url https://api.keywordsai.co/api/models/public
{
    "models": [
       {
        "model_name":"gpt-3.5-turbo",
        "max_context_window":4096,
        "input_cost":0.5,
        "output_cost":0.1,
        "rate_limit":30000,
        "provider": {
            "provider_name": "OpenAI",
            "provider_id": "openai",
            "moderation": "Filtered",
            "credential_fields": [
                "api_key" // The API key for the provider
            ]
        }
       },
       // ... other models ... 
    ]
}

Model parameters

{
    "models": [
       {
        "model_name":"gpt-3.5-turbo",
        "max_context_window":4096,
        "input_cost":0.5,
        "output_cost":0.1,
        "rate_limit":30000,
        "provider": {
            "provider_name": "OpenAI",
            "provider_id": "openai",
            "moderation": "Filtered",
            "credential_fields": [
                "api_key" // The API key for the provider
            ]
        }
       },
       // ... other models ... 
    ]
}