API Reference

Compare Models

Compare multiple AI models side-by-side. Returns pricing, token limits, and metadata for each requested model ID.

Endpoint

GET/comparePublic — no auth

Query Parameters

ParameterTypeRequiredDescription
idsstring✅ YesComma-separated model IDs. E.g., 1,2,5

Response

JSON
[
  {
    "id": 1,
    "name": "GPT-4o",
    "slug": "gpt-4o",
    "provider": "OpenAI",
    "price_input": 0.005,
    "price_output": 0.015,
    "unit": "1k_tokens",
    "confidence": "verified"
  }
]

Plan Limits

PlanMax IDs per Request
Free3
Pro10
Team / EnterpriseUnlimited

The limit reflects the plan of the authenticated caller — pass your API key (Authorization: Bearer tly_live_…) to use your plan's limit. Unauthenticated requests use the Free limit (3). Extra IDs beyond the limit are ignored.

Code Examples

JavaScript
const res = await fetch('https://api.tallyify.com/compare?ids=1,2,5');
const models = await res.json();
models.forEach(m => console.log(m.name, m.price_input));