Loading...
Loading...
Current LLM prices. How to use the Narev API endpoints — list model pricing (GET) and calculate call cost (POST). Use when the user needs endpoint behavior, parameters, responses, or errors; real-time per-token rates; token-to-USD math for one call; or when they mention "Narev pricing", "model rates", "USD per token", "cost calculation", or "AI unit economics". For committing catalog snapshots or generator scripts, use update-llm-pricing.
npx skill4agent add narevai/skills narev-lookup-llm-pricing/platform/api-reference/endpoint/pricing/...update-llm-pricinghttps://www.narev.ai| Endpoint | Method | Purpose |
|---|---|---|
| | List the catalog. Filter by |
| | Compute the USD cost of one call given |
gpt-4oclaude-sonnet-4llama-3.1-70bupdate-llm-pricingGETadd-usage-based-billingmodel_idsearchprovidersubprovidersort_bymodel_idprovidersubproviderorderascdescpagelimit1000100modelIdproviderusagepromptTokenscompletionTokenscacheReadTokenscacheWriteTokensreasoningTokens0subproviderbedrockopenroutertogetherwebSearchCountisByokmodel_id=gpt-4oprovider=openaicurl -G 'https://www.narev.ai/api/models/pricing' \
--data-urlencode 'model_id=gpt-4o' \
--data-urlencode 'provider=openai'{ data: ModelPricingEntry[], meta: { page, limit, total, total_pages } }model_idprovidersubproviderpricingprice_promptprice_completionprice_input_cache_readprice_input_cache_writeprice_internal_reasoningpricing_requestprice_web_searchpricing_discount01price_imageprice_image_outputprice_audioprice_audio_outputprice_input_audio_cache1_000_000meta.total_pages > 1page=2page=3promptTokenscompletionTokenscacheReadTokenscacheWriteTokensreasoningTokens0curl -X POST 'https://www.narev.ai/api/models/pricing/calculate' \
-H 'Content-Type: application/json' \
-d '{
"modelId": "gpt-4o",
"provider": "openai",
"subprovider": "OpenAI",
"usage": {
"promptTokens": 1000,
"completionTokens": 500,
"cacheReadTokens": 0,
"cacheWriteTokens": 0,
"reasoningTokens": 0
}
}'pricinginputoutputrequestinputCacheReadinputCacheWriteinternalReasoningwebSearchcostBreakdown.totalusagecostBreakdown.totalpricingerrorpricing: nullmodelIdprovidersubprovidersubproviderusage0nullsubproviderllama-3.1-70bupdate-llm-pricing/platform/api-reference/introduction/platform/api-reference/endpoint/pricing/list-model-pricing/platform/api-reference/endpoint/pricing/calculate-cost-for-a-model-call