OR-Batch-Inference-Models / data_dictionary.json
danielrosehill's picture
Upload folder using huggingface_hub
972fff1 verified
Raw History Blame Contribute Delete
5.24 kB
{
"dataset": "danielrosehill/OR-Batch-Inference-Models",
"updated": "2026-10-31",
"origin_values": {
"api": "Retrieved from OpenRouter's public API (https://openrouter.ai/api/v1/models or /api/v1/models/{id}/endpoints) at fetch time, reformatted only (units, joins).",
"enriched": "Added by us: computed from API fields by a stated rule, or a judgement label. Not something OpenRouter publishes."
},
"columns": [
{"name": "snapshot_date", "type": "date", "origin": "enriched", "description": "UTC date the API was fetched. Same for every row of a file."},
{"name": "model_listed_utc", "type": "date", "origin": "api", "description": "Date OpenRouter first listed the model (`created`, Unix time to UTC date). Not the date batch support arrived."},
{"name": "model", "type": "string", "origin": "api", "description": "Sync model slug (`id` with `:batch` removed)."},
{"name": "batch_id", "type": "string", "origin": "api", "description": "Batch slug (`id`) to submit batches with."},
{"name": "name", "type": "string", "origin": "api", "description": "Display name (`name`)."},
{"name": "context_length", "type": "integer", "origin": "api", "description": "Context window in tokens (`context_length`)."},
{"name": "input_modalities", "type": "string", "origin": "api", "description": "`architecture.input_modalities`, `;`-separated."},
{"name": "batch_input_usd_per_m", "type": "number", "origin": "api", "description": "Batch input price, US$ per million tokens (`pricing.prompt` x 1e6, base tier)."},
{"name": "batch_output_usd_per_m", "type": "number", "origin": "api", "description": "Batch output price, US$ per million tokens (`pricing.completion` x 1e6, base tier)."},
{"name": "sync_input_usd_per_m", "type": "number|null", "origin": "api", "description": "Input price of the sync id for the same model. Empty if the sync id is not listed."},
{"name": "sync_output_usd_per_m", "type": "number|null", "origin": "api", "description": "Output price of the sync id for the same model. Empty if not listed."},
{"name": "batch_providers", "type": "string", "origin": "api", "description": "Providers serving the `:batch` id, from `/api/v1/models/{id}/endpoints`, `;`-separated."},
{"name": "canonical_slug", "type": "string", "origin": "api", "description": "`canonical_slug`: OpenRouter's permanent slug, usually the model name plus a release-date stamp."},
{"name": "hugging_face_id", "type": "string|null", "origin": "api", "description": "`hugging_face_id`: weights repo for open-weight models. Empty for closed models."},
{"name": "expiration_date", "type": "date|null", "origin": "api", "description": "`expiration_date`: announced retirement date. Empty if none announced."},
{"name": "tier", "type": "string", "origin": "enriched", "description": "Cheap / Mid / Expensive by batch output price: < $3, $3-20, >= $20 per million. Rule: notebook/07-price-tiers.md, scripts/price_tiers.py."},
{"name": "tier_rank", "type": "integer", "origin": "enriched", "description": "1 = Cheap, 2 = Mid, 3 = Expensive."},
{"name": "sub_band", "type": "string", "origin": "enriched", "description": "1a <= 1.00, 1b 1-3, 2a 3-8, 2b 8-20, 3a 20-50, 3b >= 50 (batch output $/M)."},
{"name": "input_band", "type": "string", "origin": "enriched", "description": "Cheap < 0.60, Mid 0.60-3.00, Expensive >= 3.00 (batch input $/M)."},
{"name": "input_mismatch", "type": "boolean", "origin": "enriched", "description": "True when input_band differs from tier: the model changes tier on input-heavy jobs."},
{"name": "out_in_ratio", "type": "number", "origin": "enriched", "description": "batch_output_usd_per_m / batch_input_usd_per_m, 1 decimal."},
{"name": "reference_job_usd", "type": "number", "origin": "enriched", "description": "Cost in US$ of 4.5M input + 0.5M output tokens at batch prices (bulk-labelling job shape, 9:1)."},
{"name": "stable_endpoint", "type": "boolean", "origin": "enriched", "description": "True if the id resolves to one fixed model version. False for dynamic aliases (`~` prefix or `latest` in the id, which OpenRouter says 'always redirects to the latest model') and for closed models whose canonical_slug has no date stamp (an upstream alias the provider can repoint). Rule: scripts/build_hf_dataset.py."},
{"name": "stability_basis", "type": "string", "origin": "enriched", "description": "Which branch of the stable_endpoint rule applied."},
{"name": "offers_cache_pricing", "type": "boolean", "origin": "enriched", "description": "True when the batch id's API record publishes a prompt-cache read price (`pricing.input_cache_read`). False means no cache price is listed, not proof the provider never caches."},
{"name": "cache_pricing", "type": "string (JSON)|null", "origin": "api", "description": "Cache prices from `pricing`, US$ per million tokens, as compact JSON: `read_usd_per_m` (`input_cache_read`), `write_usd_per_m` (`input_cache_write`, null when not published: usually automatic caching with no write premium), and `long_context` {`min_prompt_tokens`, `read_usd_per_m`, `write_usd_per_m`} when a long-context override lists cache prices. Empty when offers_cache_pricing is False."}
]
}