Repository navigation
chore(cost-map): add six fal_ai iris-z endpoints, end the H3 Max promotion and apply the flux-3-max keyframes one - #52159
devin-ai-integration[bot] wants to merge 3 commits into
Conversation
|
|
PR overviewThe PR adds pricing entries for six fal_ai speridlabs/iris-z image endpoints to the model cost map. One pricing issue remains open: an authenticated caller with Fal passthrough access can submit a supported larger image while only the flat per-image rate is recorded against their budget. The documented request records $0.10 despite a $0.20 provider charge, allowing callers to underconsume their tracked budget and leave the operator covering the difference. No issues have been addressed yet. Open issues (1)
Fixed/addressed: 0 · PR risk: 5/10 Reviews |
| "litellm_provider": "fal_ai", | ||
| "metadata": {"notes":"fal bills speridlabs/iris-z/text-to-image at $0.1 per megapixel, rounding each image up to the nearest megapixel. The per-pixel rate is used when Fal reports the output size, and the flat per-image price prices the default 1 MP output like the sibling flux entries"}, | ||
| "mode": "image_generation", | ||
| "output_cost_per_image": 0.1, |
There was a problem hiding this comment.
Medium: Flat fallback enables underpriced passthrough submissions
Adding output_cost_per_image makes this model pass fal_ai_proxy_route()'s pricing gate, but fal_ai_passthrough_cost() only multiplies that flat rate by num_images, ignoring image_size and output_cost_per_pixel. An authenticated caller permitted to use Fal passthrough can POST to /fal_ai/speridlabs/iris-z/text-to-image with image_size: {"width":1280,"height":1024} and a prompt, recording $0.10 against their budget although Fal charges $0.20 for that supported size. (fal.ai)
Keep these megapixel-priced models blocked on passthrough until its accounting supports rounded output dimensions, including settlement when dimensions are unknown at submission; the regular image calculator's rounding does not protect this path.
There was a problem hiding this comment.
These rows follow the shape of the existing per megapixel fal_ai rows. Passthrough accounting for output size is outside this catalog sync and needs a code change
Merging this PR will not alter performance1 warning
Comparing |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…lux-3-max keyframes to its promotional rate
|
Superseded by the rolling registry PR #52162, which carries these fal_ai rows after re-checking each price against fal.ai pages. |
Pull request was closed
Summary
Fal's model list now carries eight
speridlabs/iris-zendpoints that the cost map does not have. This adds the six that Fal bills per megapixel, each priced from its own pagehttps://fal.ai/models/<endpoint id>/llms.txt, fetched raw with a cache buster on 2026-11-17. The rows use the same shape as the existing per megapixel fal_ai rows such asfal_ai/fal-ai/flux/dev.output_cost_per_imageis the price of the default 1 MP output andoutput_cost_per_pixelis that price divided by 1048576, the convention those sibling rows already follow.sourceon each row is the endpoint's fal.ai page.Every page opens its Pricing section with "Billing is calculated per megapixel of the generated image, rounded up to the next whole megapixel", and the quote column holds the sentence that states the number.
fal_ai/speridlabs/iris-z/depth-to-imagefal_ai/speridlabs/iris-z/small/depth-to-imagefal_ai/speridlabs/iris-z/small/text-to-imagefal_ai/speridlabs/iris-z/small/text-to-rgbdfal_ai/speridlabs/iris-z/text-to-imagefal_ai/speridlabs/iris-z/text-to-rgbdmodeisimage_generationfor all six. Fal's list gives categorytext-to-imagefor the three text endpoints andimage-to-imagefor the two depth-to-image endpoints, so the depth-to-image rows also carry/v1/images/editsandsupports_vision: truelike the existing image-to-image rows. The text-to-rgbd pages say "the depth map and depth array are included", so there is no separate charge for the depth output.Cross-check with
https://api.fal.ai/v1/models/pricingreturned the same six base prices with unitmegapixels.Promotion changes
https://fal.ai/pricing.mdchanged and now lists the H3 Max endpoints at $0.05 per second and the H3 Max Turbo endpoints at $0.025 per second, their standard 480p rates. Each endpoint's own pagehttps://fal.ai/models/<endpoint id>/llms.txt, fetched raw with a cache buster on 2026-11-17, says the November promotion ended on November 15, so these five rows move from the 30% off rates to the standard rates under rulingfal-ai-promotional-rates-apply-until-promotion-ends. The same ruling putsflux-3-max/keyframes-to-videoon the 50% promotional rate its page now states through November 22. The row was on the regular rate, and its two flux-3-max siblings already carry the promotional one. Each row'smetadata.commentis rewritten to match.fal_ai/minimax/h3-max/image-to-videofal_ai/minimax/h3-max/text-to-videofal_ai/minimax/h3-max/camera-controlsfal_ai/minimax/h3-max-turbo/image-to-videofal_ai/minimax/h3-max-turbo/text-to-videofal_ai/blackforestlabs/flux-3-max/keyframes-to-videoThe default resolution on each row is the one the row already used. The rest of the changed pricing page agrees with the catalog rows it names, and the rows that look different are the page's base unit against a row's default resolution or audio setting, checked on each endpoint's own page.
Left out
speridlabs/iris-zandsperidlabs/iris-z/smallare depth estimation endpoints billed per ensemble member, a unit no fal_ai cost field holds. Their pages say "Billing is calculated per ensemble member. Each member costs $0.01, so a default single-member request costs $0.01 and a 10-member ensemble costs $0.10", and the pricing API reports them as 0.01 perunits.Delisted by the provider
None
Details
Link to Devin session: https://app.devin.ai/sessions/ea837d8d24a64d30a663c3ec0b828bc1
Open in Devin Desktop: https://app.devin.ai/desktop/session/ea837d8d24a64d30a663c3ec0b828bc1?variant=devin
Requested by: @kerry-berri