{"api":{"id":"api_9b898937869f0de79bab1e6f","slug":"hf-inference-router-models","name":"Hugging Face Inference Provider Models API","description":"Open AI models served through Hugging Face's inference router: for each model the providers hosting it, the lowest input and output price per million tokens, context length, tool support and modalities.","kind":"ready_made","visibility":"public","domain":"router.huggingface.co","source_url":"https://router.huggingface.co/v1/models","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":9,"created_at":"2026-12-06T04:45:48.359Z","updated_at":"2026-12-06T04:45:48.359Z","runnable":true},"version":"1.0","contract_hash":"a2d9c974050b29ede3f24cf7a6bdb219892afcafabfc78a510ab34a22b6d8328","fields":[{"name":"model_id","type":"string","description":"The model's Hugging Face id, such as Qwen/Qwen3-32B.","required":true,"coverage":1,"example":"Qwen/Qwen4-35B-A3B"},{"name":"url","type":"url","description":"The model's page on Hugging Face.","required":false,"coverage":1,"example":"https://huggingface.co/Qwen/Qwen4-35B-A3B"},{"name":"owned_by","type":"string","description":"The organisation that published the model.","required":false,"coverage":1,"example":"Qwen"},{"name":"providers","type":"array","description":"Short names of the inference providers serving the model.","required":false,"coverage":1,"example":["akashml","featherless-ai"]},{"name":"input_price","type":"number","description":"Lowest input price in US dollars per million tokens.","required":false,"coverage":1,"example":0.04},{"name":"output_price","type":"number","description":"Lowest output price in US dollars per million tokens.","required":false,"coverage":1,"example":0.3},{"name":"context_length","type":"integer","description":"Largest context window in tokens among the providers.","required":false,"coverage":1,"example":1048576},{"name":"has_tool_support","type":"boolean","description":"Whether at least one provider supports tool calling.","required":false,"coverage":1,"example":true},{"name":"modalities","type":"array","description":"Input and output types such as text or image, as in:text, out:text.","required":false,"coverage":1,"example":["in:text","in:image"]}],"inputs":[{"name":"search","type":"string","description":"Words that must appear in the model id, such as Qwen or llama.","example":"Qwen"},{"name":"provider","type":"string","description":"Only models served by this inference provider, by its short name such as together or cerebras.","example":"together"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"context_length":{"description":"Largest context window in tokens among the providers.","type":"integer"},"has_tool_support":{"description":"Whether at least one provider supports tool calling.","type":"boolean"},"input_price":{"description":"Lowest input price in US dollars per million tokens.","type":"number"},"modalities":{"description":"Input and output types such as text or image, as in:text, out:text.","type":"array"},"model_id":{"description":"The model's Hugging Face id, such as Qwen/Qwen3-32B.","type":"string"},"output_price":{"description":"Lowest output price in US dollars per million tokens.","type":"number"},"owned_by":{"description":"The organisation that published the model.","type":"string"},"providers":{"description":"Short names of the inference providers serving the model.","type":"array"},"url":{"description":"The model's page on Hugging Face.","format":"uri","type":"string"}},"required":["model_id"],"title":"Hugging Face Inference Provider Models API","type":"object"},"samples":[{"model_id":"Qwen/Qwen4-35B-A3B","url":"https://huggingface.co/Qwen/Qwen4-35B-A3B","owned_by":"Qwen","providers":["akashml","featherless-ai","makora","morph"],"input_price":0.04,"output_price":0.3,"context_length":1048576,"has_tool_support":true,"modalities":["in:text","in:image","out:text"]},{"model_id":"Qwen/Qwen3.8-27B","url":"https://huggingface.co/Qwen/Qwen3.8-27B","owned_by":"Qwen","providers":["akashml","cerebras","cloudflare","coreweave"],"input_price":0.04,"output_price":1.35,"context_length":1000000,"has_tool_support":true,"modalities":["in:text","in:image","out:text"]},{"model_id":"Qwen/Qwen3.5-9B","url":"https://huggingface.co/Qwen/Qwen3.5-9B","owned_by":"Qwen","providers":["deepinfra","parasail","primeintellect","together"],"input_price":0.083,"output_price":0.122,"context_length":262144,"has_tool_support":true,"modalities":["in:text","in:image","out:text"]}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"context_length":1,"has_tool_support":1,"input_price":1,"modalities":1,"model_id":1,"output_price":1,"owned_by":1,"providers":1,"url":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T04:45:48.359Z","activated_at":"2026-12-06T04:45:48.359Z","active":true,"contract_hash":"a2d9c974050b29ede3f24cf7a6bdb219892afcafabfc78a510ab34a22b6d8328","fields_count":9}]}