SShortSingh.
Back to feed

Perplexity API's per-request search fees can outweigh token costs on short queries

0
·2 views

Perplexity's Sonar API advertises a low per-million-token price, but developers building on it often encounter a separate per-request search fee. That fee, scaled by search context size, is charged regardless of token usage, so it can dominate total spend on short queries. Per Perplexity's documentation, base Sonar charges $5 to $12 per 1,000 requests depending on context level, while Sonar Pro and Sonar Reasoning Pro charge $6 to $14. Sonar Deep Research uses a different cost structure with its own rates for citation tokens, reasoning tokens, and search queries. The article argues that budgeting based only on the headline token rate can misrepresent actual costs for high-frequency workloads.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How Glass recovers C# primary constructor parameters from compiled IL

C# 12 primary constructors let a class header double as its constructor, but the compiler treats each parameter differently. Parameters used only to initialize members are consumed inside the constructor, while those read by method bodies are captured into synthesized private fields. These synthesized fields carry angle-bracketed names that never appear in source code. The Glass.NET decompiler recognizes this pattern by checking that such a field is assigned once from a constructor argument and read elsewhere. It then restores the field as a parameter in the class header.

0
ProgrammingDEV Community ·

Ford to make its next hands-free driving system standard on $28,350 Fathom EV pickup

Ford says its next-generation driver-assistance system, built in-house by subsidiary Latitude AI, will debut on the Fathom electric pickup in 2027 at a starting price of $28,350. The company claims the system costs 30% less to build and will come standard on every truck. It supports hands-free driving on qualified highways from on-ramp to off-ramp at launch, with eyes-off driving targeted for 2028. The article argues that Ford's current BlueCruise system gives the automaker limited access to the data it generates, which is a key reason for the in-house effort. Pricing for the feature itself has not been disclosed, and today's BlueCruise carries subscription or one-time fees.

0
ProgrammingDEV Community ·

Axel Labs runs 748-billion-parameter DeepSeek model on a single RTX 4090

Axel Labs says it ran DeepSeek-V4.1-Flash-1017, a model with 748 billion parameters, on a machine with one 24 GB NVIDIA RTX 4090 and an AMD EPYC 9534 processor. The official release occupies about 510 GB, and the test used the original FP8 and MXFP4 weights without further quantization. During the run, the engine used about 468 GiB of system RAM and no swap, while 22.7 of the GPU's 24 GiB of video memory was in use. In one filmed request, the model produced an animated SVG of a pelican cycling, generating 6,862 tokens at an average of roughly 79 tokens per second. A separate long-context test with about 128,000 tokens also returned three requested values correctly as JSON, with the full request taking nearly 200 seconds.

0
ProgrammingDEV Community ·

Senior Engineer James Joins DEV Community, Sharing Ten Years of Development Experience

James, a Senior Software Engineer, has introduced himself to the DEV Community as a new member eager to connect with developers and tech enthusiasts. He reports ten years of professional experience building web applications, full-stack solutions, backend systems, and API integrations. He says he enjoys tackling complex technical problems, designing scalable architectures, and integrating third-party services. He expressed interest in learning new technologies and exchanging ideas, and invited the community to share which technologies and projects they are currently working on.