Flexen , go to home
Menu Close
Get a test key

Flexen API · prices net

Benchmarks: Method

Benchmark v4 and its rules, Flexen Light and Flexen Max, how we calculate and read, where the measurement reaches its limits and what we have not measured yet.

Calibration and reference

Two parts of the Flexen Score need more than one line of formula: how we score the stated uncertainty, and which cases count.

Calibration: hit and width of the range

Every answer states a range in which the true kcal value lies with 80% probability. Per case, two things count: is the reference inside the range, and how wide is the range? Points = 1 − (0.1 × width + distance of the reference from the range) / (0.5 × reference), at least 0. Ranges up to ±5% of the reference cost nothing.

  • Perfect is 100. error 0 and a narrow range give full points in every component.
  • More accurate is never worse. all components are computed per case. If an estimate moves closer to the reference, none of them falls.
  • Wide ranges do not pay. width costs points, a huge range scores 0. The rule is the Winkler interval score: stating your honest 80% range is best on average.
  • No range. the answer counts like a range of width 0 around the estimate. Invalid answers score 0 in every component.
  • Weight. calibration counts for 10% of the score.

One limit: calibration is related to accuracy. A system that estimates more accurately can state narrower ranges. It is not an independent second axis.

How the rules came about

  • Hidden stays hidden. the rules were developed on the open part only and fixed before the hidden part was scored with them. No hidden case was read; from there we only know the count per rule.
  • Manual findings. in the open part we additionally flagged 6 of 240 cases by hand (questionable label, table conflict without a record in the case, ingredient missing from the reference, hidden mass). They still count in the score, so that open and hidden are measured with the same instrument.
  • What remains. there is no mechanical rule for such cases. In the hidden part they are therefore still included.
  • Cost and response times. they are averaged over all measured calls, including the cases that do not count in the score.

See flagged cases in the case explorer

Which cases count

Seven rules check every case, using only its own data (source, portion text, ingredient list), never a model answer. Cases with an ambiguous reference do not count but stay visible in the case explorer, with reason and source. In the hidden part, 130 of 138 plates and 278 of 351 texts count; 2 references are corrected.

RuleWhatEffecthiddenopen
Text: FNDDS default portion, no amount in the text The text gives no amount. The reference uses the database default portion (USDA FNDDS, “Quantity not specified”). Other portions would be just as right. not scored 37 17
Text: FNDDS piece portion without a measure The weight comes from a named piece portion in the database (such as “1 regular sandwich”), with no measure and no grams in the text. How heavy a piece is, is set by the database, not by the text. The case counts if the piece size can be derived: a standardised piece (nugget, patty), a pizza slice with the pizza size given, or a named chain. not scored 24 8
Text: Pack with a drained weight The pack names a drained weight. Whether the nutrition values cover the contents with or without liquid is open. not scored 0 1
Text: Table conflict, BLS versus USDA Two official tables disagree: the German Bundeslebensmittelschlüssel and USDA SR Legacy differ by more than 20% for the same food. not scored 4 4
Photo: Nutrition5k: caesar dressing carries salad values Nutrition5k lists caesar dressing with the values of lettuce (0.44 kcal per g, 2.1% fat). Recomputed with USDA SR Legacy (5.42 kcal per g, 57.8% fat). reference corrected 3 1
Photo: Nutrition5k: caesar salad counted without dressing At least 20% of the plate is “caesar salad”. The reference counts it like undressed lettuce; how much dressing is on it is not recorded. not scored 9 4
Text: Pack of a snack or confectionery without grams “A pack” without grams for a snack or confectionery. Such products come in many pack sizes; the reference takes that of a single barcode. not scored 14 4

Benchmark v4

Since 22 November 2026 all rankings show benchmark v4: larger test sets, a hidden part that is measured exactly once, and separate hard sets..

Test sets

SetCasesopenhiddenscoredSources
Photo 200 62 138 130 Nutrition5k
Text 500 149 351 278 Open Food Facts, USDA FoodData Central, BLS 4.0
Photo, hard set 50 15 35 34 Nutrition5k
Text, hard set 50 14 36 30 Open Food Facts, USDA FoodData Central, BLS 4.0

Browse the open cases with reference and all estimates

Rules

  • Open and hidden. per stratum, 30% of the cases are open and published, 70% stay hidden. The rankings show the hidden part only.
  • Measured once. every system measures the hidden part exactly once. The first valid answer counts; a scored answer is never requested again.
  • Development kept apart. prompts, chains and settings were chosen on older sets only, never on v4. The model for Flexen Max was chosen on the open part. The form of Flexen Max (chain or single call), however, was chosen after the hidden measurement; the value shown is the higher of two forms and is therefore slightly biased upwards.
  • No model in the test set. no model wrote, selected or rated cases. The selection is drawn by strata with a fixed seed and can be rebuilt.
  • Strata. photos by calorie band, type of dish, number of ingredients, weight and share of fat; texts by eight kinds of input, from brand with grams to vague amount, in German (275) and English (225).
  • Independent plates. very similar plates in Nutrition5k (same ingredients shortly after each other) form a group; at most one plate per group is in the set, and none comes from a group used in earlier sets.
  • Hard sets. selected by criteria fixed in advance, scored separately, never part of the main score.
  • Correction v4.1. one open photo case showed a phone on the scale instead of food. On 22 Nov it was replaced by another plate, following the rule of the selection script. The hidden part stayed unchanged.

Flexen Light and Flexen Max

Flexen Light

Flexen Light is our multi-step chain: five requests for photos, of which the first four valid ones count, and two for text. From the answers it computes the median, the range and the review flag needs_review. Measured with processing in the EU. Price per estimate: text 1 credit, photo 2 credits.

Flexen Max

Flexen Max is our most accurate profile: since 22 Nov 2026 a single call to one large model per task. For photos, GPT-6.2 Sol (71.9) scores higher; the gap is not established, the bands overlap. For text, no measured system scores higher. We do not name the models behind Max; they are also listed under their own names in the rankings, with the same measurement. For photos it was measured in the EU. For text the model is currently not hosted in the EU; it was measured without an EU guarantee. If the customer sends a hint, we put it into the request as separate lines. Price per estimate: text 4 credits, photo 16 credits (from 1 Dec 2026). Flexen Max is coming soon and cannot be booked yet: until then the API answers tier: max with 422.

Compared with Flexen Light, Flexen Max is ahead by +4.8 (+1.2 to +8.4, established) for photos and by +2.8 (+1.2 to +4.4, established) for text.

Why Max is no longer a chain

Until 21 Nov, Flexen Max was the same chain as Light, only with the stronger model. Measuring the raw models on 22 Nov showed: without the chain the model is at least as accurate. Text: the model alone 89.3, in the chain 89.2, difference +0.2 (−0.4 to +0.8, not established). Photo: the model alone 70.9, in the chain 70.6, difference +0.3 (−1.3 to +1.8, not established). The photo chain costs five times as much (1.654 ct against 0.330 ct per estimate).

Before we re-measured this with hints, the rule was fixed: Max becomes a single call if, with a hint, it is at most 1 point behind the chain and is not shown to be more than 3 points worse in any stratum.

Text: met. Difference +1.4 (−0.1 to +3.0, not established), no stratum shown to be worse.

Photo: narrowly missed. Overall the single call is +0.6 (−0.8 to +1.9, not established) ahead of the chain. But in one of 28 strata checked, the light plates of the hard set (17 plates), it is −3.2 points behind (band −7.1 to −0.1). On the main set no stratum is shown to be worse.

By our own rule, Max would have remained the chain for photos. On 22 Nov we switched to the single call anyway: with 28 strata we consider a miss this narrow (the band ends at −0.1) to be probably chance, and the chain costs five times as much. That is a deviation from a rule fixed in advance. That is why it is stated here.

The figures on the rule in the three paragraphs before come from the evaluation on the day of the decision, with an earlier version of the calibration. Under today's scoring the first part of the rule is still met: photo +0.2 (−0.7 to +1.0, not established), text 0.0 (−0.5 to +0.5, not established). The strata were not rescored.

Max chain until 21 Nov (v4 hidden part)
Max chain 70.6 (67.6 to 73.4) 1.654 ct n = 130
Max chain 89.2 (87.0 to 91.1) 0.243 ct n = 278

Not measured yet

  • Real phone photos

    All photos come from Nutrition5k: plates from two US cafeterias, from above, with a fixed camera and good light. We do not know yet how the systems do with everyday photos and with European cuisine. After v4, 53 independent groups of plates remain in Nutrition5k; a larger measurement needs photos of our own.

  • Competitor APIs

    Specialised food APIs are missing from the rankings. We only measure a service if its terms allow a comparison; the list below shows the status per provider.

  • Day-to-day variation

    The hidden part is measured only once, so there is no repeat on v4. On development data and the open part, repeated runs of the same system were −1.3 points (Flexen Light, photo), +2.5 points (Flexen Max, photo) and −0.5 points (Flexen Max, text) off the first run; none of these differences is established. So do not read anything into differences below about 2 points.

Earlier measurements of the chain

The versions of our chain in measurements v2 (photo, 150 photos) and v3 (text, 102 texts) of 20 Nov 2026. Those were smaller, different test sets; the values cannot be compared with the v4 rankings. The latest version in each is the chain measured in v4 as Flexen Light.

Photo
Version Flexen Score Band Status
Flexen API light v2 60.0 56.6 to 63.4 measured in v4 as Flexen Light
Flexen API light v1 55.4 52.4 to 58.4 earlier version
Text
Version Flexen Score Band Status
Flexen API light v2 82.9 79.2 to 86.2 earlier version
Flexen API light v2.3 (Text, 2 Anfragen, Nachlegen bei Langsamkeit) 82.8 78.7 to 86.4 measured in v4 as Flexen Light
Flexen API light v2.2 (Text, 2 Anfragen) 79.5 74.5 to 84.2 earlier version

How we calculate

What goes into the score

Per case: calorie points = max(0, 1 − |error| / max(reference, 25 kcal)); hit = error ≤ 20%; macro points = mean over protein, carbs, fat of max(0, 1 − |error| / max(reference, 3 g)); portion points (photo only) = max(0, 1 − |error| / max(reference, 25 g)); calibration points from the stated 80% range = max(0, 1 − (0.1 × width beyond ±5% + distance of the reference from the range) / (0.5 × R)), R = max(reference, 25 kcal). Without a range, the width counts as 0 around the estimate. Invalid responses and failed calls score 0 in every component. Sub-scores 0–100: calories 25%, calories within ±20% 15%, macros 30%, portion 10% (photo only), calibration 10%, reliability 10% (share of valid responses). Score = weighted mean; for text (no portion) the remaining weights are rescaled to 100%. The score is the mean of the case points; a perfect answer scores 100. Band: 95% bootstrap. Latency and cost are reported alongside, not inside the score.

25 %
Calorie accuracy 100 * mean(max(0, 1 - |kcal_hat - kcal| / max(kcal, 25)))
15 %
Calories within ±20% 100 * share(|kcal_hat - kcal| <= 0.2 * kcal)
30 %
Macro accuracy (protein, carbs, fat) 100 * mean over cases of mean over P/C/F of max(0, 1 - |x_hat - x| / max(x, 3 g))
10 %, Photo only
Portion weight 100 * mean(max(0, 1 - |g_hat - g| / max(g, 25 g))), photo only
10 %
Calibration: hit and width of the range 100 * mean(max(0, 1 - (0.1 * max(0, (high - low) - 0.1 * R) + max(0, low - kcal, kcal - high)) / (0.5 * R))), R = max(kcal, 25); no range: low = high = kcal_hat; invalid answer: 0
10 %
Reliability (valid response) 100 * share of calls returning a parseable answer with numeric kcal, protein, carbs, fat

What is not part of the score

Response time and cost are not part of the score. They are shown separately next to it, so you can weigh for yourself what matters more to you.

Bands

Every score comes with a band, a range of uncertainty. We compute it by bootstrap: the cases are redrawn at random many times, and the score is recomputed each time. The band shows how far the score moves.

Published accuracy figures in this market are sometimes based on very few cases per task. That is why we state the sample size and the band for every value.

More measurements

Besides the score, each participant has these values where the measurement includes them:

  • Coverage of the 80 % range: share of cases in which the reference value lies inside the kcal range a participant gives with 80 % confidence; about 80 % would fit.
  • Mean error per macronutrient: average absolute deviation for protein, carbohydrates and fat in grams.
  • Price from a date: cents per call where a different list price applies to a model from the date named.

Who is compared

Photo: Flexen Light is our multi-step chain, EU processing: 5 calls per input. Field-wise median; uncertainty from the spread of the answers (text) or spread plus stated range (photo); 80% range for calories and weight; needs_review on high uncertainty or implausible energy density. As measured, this range covers 83.1 % of cases instead of 80 %.

Text: Flexen Light is our multi-step chain, EU processing: 2 calls per input. Field-wise median; uncertainty from the spread of the answers (text) or spread plus stated range (photo); 80% range for calories and weight; needs_review on high uncertainty or implausible energy density. If 2 valid answers are not in after 6 s, it sends one more request (at most 3); the first 2 valid answers count. After 22 s it answers with what it has. As measured, this range covers 72.7 % of cases instead of 80 %.

Flexen Max is a single call to a large model with the published prompt. We do not name that model; it is also listed under its own name with the same measurement.

All raw models get the same prompt, without our chain, and answer with one call. We publish this prompt; it has been unchanged since v1.

Third-party food estimation APIs are meant to run through their public interface, on the same cases and without our prompt. We will then score the result as the service returns it. We only include services whose terms allow a comparative measurement.

Prompt of the raw models

Test set

Test set flexen-score-v4, as of 22 November 2026. The hidden part is what is scored.

The test set is curated, meaning we put it together.

We publish part of the cases openly, so you can recompute results. The rest stays hidden, so that nobody optimises for exactly these cases.

Download the open cases of v4 (JSON, index of the four files) · Browse the cases

The photos and their reference values come from Nutrition5k (Thames et al., CVPR 2021), CC BY 4.0; resized and stored as WebP. The texts contain data from Open Food Facts, ODbL 1.0, https://opendatacommons.org/licenses/odbl/1-0/, from the German nutrient database BLS 4.0 (Max Rubner-Institut, 2025), CC BY 4.0, and from USDA FoodData Central (U.S. Department of Agriculture), public domain. The source is stated with every case.

How we read the results

  • Every participant is compared with our current chain, a previous version of the chain included, and the comparison is paired: we compute the difference of the scores on the same cases, anew in every bootstrap draw, and state it with a band. A positive difference means a higher score than our current chain.
  • A difference is only established if the band of the difference does not include 0. Then the table says shown better or shown worse. If the band includes 0, it says indistinguishable, even if the scores differ.
  • That makes many comparisons per task. If a band only just excludes 0, the difference can still be chance.
  • The rank among the measured participants follows the score. If the bands overlap, a difference in rank means little.
  • If other participants are on par with our chain or better, the table says exactly that.
  • Our chain is marked, but not sorted ahead of others.

Limits

  • The photos in Nutrition5k are not phone photos. With everyday photos, results can differ.
  • Nutrition5k is public. Its images may be in the training data of the models. The hidden part of the test set protects against tuning to exactly this selection, not against prior knowledge of the dataset.
  • For text, the input often states the amount. That part then mainly measures nutrition knowledge and conversion. Estimating an unknown portion is measured only by the strata with a vague amount, a restaurant portion or a pack without weight.
  • The Flexen Score is our own weighting and not an industry standard. Other weights can lead to a different order.
  • We measure our own product ourselves. That is why we publish the formula and an open part of the test set, so you can recompute the results.
  • Results apply to the model versions and the date named. If a model changes, the result can differ.
  • Third-party APIs and apps are missing from this comparison. Third-party APIs are planned for round 2.

For this measurement

  • Photo: Nutrition5k shows plates from two US cafeterias, shot from above with a fixed camera. They are not phone photos and not European cuisine.
  • Nutrition5k has been public since 2021; its images may be in the training data of the models. The hidden part protects against tuning to the selection, not against prior knowledge of the dataset.
  • One pass per system and case. The hidden part was measured exactly once; there is no repeat on another day for v4.
  • Photo: the heavy calorie band has 22 plates instead of the 30 planned, mass from 450 g has 24 instead of 30, fat or sauce from 25% of kcal has 29 instead of 30. The pool of independent plates held no more.
  • Text: restaurant portions and vague amounts are US dishes (USDA FNDDS) in the German texts too; there is no open source with portion weights for German dishes. Piece and spoon weights of German texts come from USDA portions.
  • Text: for vague amounts the reference is the standard portion of the source; other portions would be just as right.
  • Open Food Facts is edited continuously. The retrieval of 21 Nov 2026 is what counts.
  • Response times were measured from a machine in Norway, with up to 16 parallel requests per provider. For text, Flexen Light shared its provider with other runs. We suspect this load as the cause of the 4.6 s; a measurement without parallel runs is still pending.
  • Costs are list prices on the day of measurement, converted at 1 USD = 0.92 €. Gemini 4 Argon ran at a promotional price until 30 Nov 2026; from 1 Dec it costs twice as much.
  • For Flexen Light and one raw model the provider changed its list price after the measurement. Their costs are converted to the list price of 22 Nov 2026; for text that is about 9% more than on the day of measurement.

Not measured

This list states openly whom we may not or cannot measure, each with the reason, the source and the date retrieved. It is not a ranking and not part of the results; the order is alphabetical.

  • Chomp

    Not measured. The terms of use of Chomp prohibit benchmarks for public distribution (Terms of Use, retrieved on 20 November 2026, link ). Chomp also offers no estimate from a photo or free text.

  • Edamam

    Not measured. The API terms of use of Edamam prohibit using the API to measure or benchmark the performance of Edamam services (API Terms, last revised 28 February 2023, retrieved on 20 November 2026, link ).

  • Passio

    Not measured. The terms of use of Passio allow use only internally and non-commercially, for evaluation; commercial use requires a separate agreement (Terms of Use, last revised 3 December 2018, retrieved on 20 November 2026, link ).

For now, one provider service may be measured; its run will follow.

Round 2, later

Third-party food estimation APIs are planned to run in the same test. No participants have been named yet: we only include services whose terms allow a comparative measurement. Until then, this page only compares our chain with raw models.