# Mesh API > Asia's largest sovereign AI gateway: 1,000+ AI models through one OpenAI-compatible endpoint. Track, control and protect every AI call, and keep your data inside your border. Mesh API is a Fiesta Labs company (https://aifiesta.ai), built by Y Combinator alumni. Telcos and fintechs in 100+ countries run on Mesh, and 1M+ people use products built on it. ## Key links - [Docs](https://developers.meshapi.ai): API reference and guides. - [API base URL](https://api.meshapi.ai/v1): OpenAI-compatible endpoint. Swap the base URL and API key. - [Get an API key](https://link.meshapi.ai/landing/): Sign up and start routing requests. - [Status](https://status.meshapi.ai): Live uptime and incidents. - [Contact](mailto:contact@meshapi.ai): contact@meshapi.ai ## Product - [Homepage](https://meshapi.ai/): Observability (request traces, spend by team, provider health, live log), governance (allowed models, spend caps, role-based access, rate limits, allowed IPs) and security in one gateway. Under 50ms p90 latency added per request, 99.999% uptime. - [Markdown version of the homepage](https://meshapi.ai/index.md): The full homepage as markdown. - [Auto routing](https://meshapi.ai/auto-routing): Retries and fallbacks, plus per-prompt model selection on per-task efficiency frontiers. Up to 4x cost savings. - [Customer stories](https://meshapi.ai/customers): How Globe, Khalti, Gushwork, TagMango and others run on Mesh. - Deployment: Mesh Cloud, a dedicated region of your choice, or self-hosted in your VPC, data center or on device. Open-weight models can run on your hardware; frontier models pass through Mesh in your region. ## Security & compliance - [Security & Compliance](https://meshapi.ai/security): SOC 2 Type II audited, ISO 27001 certified, GDPR compliant. Reports on request from https://meshapi.ai/security. - Zero data retention is on by default: prompts and responses are not stored, and Mesh never trains on your data. - PII redaction replaces personal data with tokens before it reaches a model. Every hop is encrypted in transit. ## Pricing - [Pricing](https://meshapi.ai/pricing): Pay as you go, no subscriptions or minimums. Pay in your currency, with UPI, net banking, wallets, cards or international methods. - Direct model discounts of up to 40% off list price, and $0 per cached request. ## Models - [Models](https://meshapi.ai/models): Every model on Mesh with pricing, context windows and capabilities. One API key, one bill. - [Leaderboard](https://meshapi.ai/leaderboard): The most used models on Mesh by share of traffic. ## Research - [Dollar per Image Bench](https://meshapi.ai/research/dollar-per-image-bench): A cost x quality map of 7 frontier image models on Mesh API. The cheapest image beats the most expensive at 1/7.5th the price. - [Dollar per Task Bench](https://meshapi.ai/research/dollar-per-task-bench): Five LLMs, ten real tasks, one API. The cheapest model passed every coding test and matched on support quality, while the bill swung 259× across the same session. - [Value Rankings](https://meshapi.ai/research/value-rankings): The full price-performance leaderboard for every text model on Mesh. 122 ranked on verified Artificial Analysis indices, 176 more listed honestly on a data-pending shelf with real Mesh pricing. - [Engineering Notes](https://meshapi.ai/research/mesh-optimize): Engineering notes from building a beta token-savings dial for the Mesh gateway. Prompt caching mechanics, an honest savings receipt, real terminal output, and the 500 error that taught us our own schema. ## Blog - [Seedance 2.5 1080p: Real Render, 25% Cheaper](https://meshapi.ai/blog/seedance-2-5-1080p-tested): 2026-08-17. Seedance 2.5 native 1080p is live at $8.77 per 1M tokens, 25% below going direct. We read the token meter to prove it renders natively instead of upscaling. - [Seedream 5.0 Pro on Mesh API: Ad Creative, Brand Kits & UI](https://meshapi.ai/blog/seedream-5-pro): 2026-08-08. Seedream 5.0 Pro is live on Mesh API at $0.11/image. It generates legible ad creative, brand kits, and UI mockups from one API call. Five use cases, tested. - [Your Model Eval Framework Is Broken. Claude Detects Prefilled Prompts and Silently Resists.](https://meshapi.ai/blog/prefill-awareness-evals-invalid): 2026-06-14. Claude Opus 4.5 detects tampered prefilled responses with 67.6% accuracy—and doesn't tell you. Here's why your eval harness is confounded, and how to fix it. - [Google's Open Knowledge Format Is Smart. But Here's What's Missing.](https://meshapi.ai/blog/introducing-the-open-knowledge-format-as-something-new-launched): 2026-06-14. Google's Open Knowledge Format (OKF v0.1) formalizes how AI agents consume organizational knowledge. But empirical performance gains, governance, and migration strategies are still undefined. Here's what the first 100 deployments will cost. - [Why 4B Models Beat 671B Giants at Theorem Proving. (It's Not What You Think.)](https://meshapi.ai/blog/pythagoras-prover-small-models-reasoning): 2026-06-14. A 4B model beats a 671B giant at theorem proving—but it's training, not parameters. Benchmark breakdown, compute-parity gap, and practitioner guide. - [Google Analytics Now Tracks ChatGPT, Claude, and Gemini Traffic Separately. Here's What Your Real Metrics Look Like.](https://meshapi.ai/blog/google-analytics-ai-assistant-traffic): 2026-06-14. GA4's new 'AI Assistant' channel separates ChatGPT, Claude, and Gemini traffic automatically—no setup needed. But referrer-based measurement means 40-70% of AI sessions still hide in Direct. Here's the full picture. - [AI Agents Fail Real Workflows at Scale. 1,000+ Long-Horizon Tasks Show the Production Gap.](https://meshapi.ai/blog/agents-last-exam-production-gap): 2026-06-14. Current AI agents solve well-specified labs (100% pass rates) but collapse on 1,000+ long-horizon real-world tasks (2–24% success). The gap between research benchmarks and production is orders of magnitude. - [Stop Fine-Tuning Tool Workflows. Evolutionary Search Raises Small Models From 3% to 24%.](https://meshapi.ai/blog/evoflux-tool-workflows-beats-finetuning): 2026-06-13. Evolutionary search lifts small-model feasibility 3%→24% without fine-tuning. What Evoflux measured, what it missed, and when fine-tuning wins. - [60-80% of Agent Traffic Goes Local Now. Here's Why Single-Model Strategies Lost.](https://meshapi.ai/blog/routing-local-first-60-80-pattern-default): 2026-06-13. Agentic traffic grew 1,300% in 2025. Routing 60-80% to local LLMs cuts costs 40-85% at 90%+ accuracy. The 60-80% is a forecast. We mapped what's real. - [LangChain and AutoGPT Have Zero Memory-Integrity Safety. One Poisoned Write Breaks 88.9% of Decisions.](https://meshapi.ai/blog/containment-gap-langchain-agent-safety): 2026-06-13. Three major agent frameworks—LangChain, AutoGPT, and OpenAI Agents SDK—ship with zero memory-integrity safeguards. Here's what that costs you. - [When Prompt Caching Actually Breaks Even: We Mapped the Latency vs Cost ROI](https://meshapi.ai/blog/prompt-caching-latency-roi-threshold): 2026-06-12. Prompt caching claims 90% savings, but break-even depends on hit rate, prefix size, and provider. We mapped the exact ROI frontier—including the scenarios where caching hurts. - [Why Your LLM Provider's Generous Daily Quota Is a Lie (And What the Real Bottleneck Actually Is)](https://meshapi.ai/blog/llm-api-tpm-ceiling-kills-daily-quota): 2026-06-12. Developers think they have millions of tokens/day. In practice, tokens-per-minute limits and concurrency caps constrain you first. We mapped the bottleneck across 5 major providers. - [Your Agent Task Costs $0.50 in Tokens but $8 in Retries. Where Your LLM Bill Actually Goes.](https://meshapi.ai/blog/agent-workflows-real-cost-retries-vs-tokens): 2026-06-12. Headline agent cost is prompt tokens. Real cost is retries, re-prompting on tool failures, and context replay. Learn to measure where your LLM bill actually goes. - [We Made Two LLMs Play Tetris. The Winner Wasn't the Better Player.](https://meshapi.ai/blog/llm-tetris-contest-opus-deepseek): 2026-06-09. Claude Opus 4.8 vs DeepSeek V3.1 at turn-based Tetris, both served through Mesh API. Placement is basically solved, so the contest measures something more interesting: temperament. - [Why Claude Design Burns Your Quota (and How to Fix It)](https://meshapi.ai/blog/why-claude-design-burns-quota): 2026-06-07. We spent a 5-hour quota plus $8 in one Claude Design prompt. Here is why code-based design costs so much, and the hybrid workflow that keeps it cheap. ## Migration guides - [Migrate from LiteLLM to Mesh API](https://meshapi.ai/migration/litellm): Switch from self-hosted LiteLLM proxy to Mesh API. Same OpenAI format, zero YAML, 40% lower blended cost. - [Migrate from OpenRouter to Mesh API](https://meshapi.ai/migration/openrouter): Move from OpenRouter to Mesh API. Same model selection, zero platform fee, real smart routing, multi-currency billing. - [Migrate from Vercel AI Gateway to Mesh API](https://meshapi.ai/migration/vercel-ai-gateway): Move from Vercel AI Gateway to Mesh API. Provider-agnostic, zero platform fee, smart routing, works on any framework or cloud. ## Legal - [Privacy Policy](https://meshapi.ai/privacy): Zero Data Retention by default. Mesh API never trains on, sells, or shares your prompts and outputs. How Fiesta Labs Inc. handles your data. - [Terms & Conditions](https://meshapi.ai/terms): Mesh API terms and conditions: Zero Data Retention by default, no training on customer data, usage, billing, and refund policies for Fiesta Labs Inc. - [Data Processing Addendum](https://meshapi.ai/dpa): List of third-party service providers authorized to process data for Mesh API (Fiesta Labs Inc.). - [Cookies Policy](https://meshapi.ai/cookies): How Mesh API uses strictly necessary, analytics, and marketing cookies, and how you can manage or withdraw your cookie consent at any time. ## Seedance 2.5 1080p: Real Render, 25% Cheaper URL: https://meshapi.ai/blog/seedance-2-5-1080p-tested # Seedance 2.5 1080p: Real Render, 25% Cheaper
Seedance 2.5, native 1920×1080, 121 frames, 5.04s, synced audio. Billed 245,025 tokens — $2.15 at the current 1080p rate. This is the actual clip, transcoded to H.264 for playback: the original is 10-bit HEVC, for reasons we get into below.
## TL;DR - **Seedance 2.5 native 1080p is live at $8.77 per 1M tokens — about 25% below going direct to ByteDance.** A 5-second 1080p clip is **$2.15**, ten seconds is **$4.28**, a 30-second single-take is **$12.80**. [Start generating →](https://app.meshapi.ai/?utm_source=blog&utm_medium=referral&utm_campaign=seedance-2-5-1080p-tested) - **1080p is 2.25x the pixels but only 1.84x the price.** The 1080p tier bills at $8.77/1M while 480p and 720p bill at $10.70/1M, so the resolution upgrade costs meaningfully less than the pixel math implies. - **The 1080p tier is a genuine native render, and we can prove it.** A 1080p request bills **245,025 tokens**; the same prompt at 720p bills **108,900**. The ratio is 2.2500 — exactly the pixel ratio. An upscale would have billed the 720p number. - **The billing formula is `width x height x frames / 1024`, and `frames = fps x duration + 1`.** That +1 is real. Every file we pulled was **121 frames** for a "5-second" clip, and the meter charged for all 121. You pay 0.83% more than the arithmetic suggests at 5s. - **At 1080p, Seedance 2.5 switches codec.** 720p comes back 8-bit H.264. 1080p comes back **10-bit HEVC (`hevc`, Main 10, `yuv420p10le`)**. Same model, same request shape. Reproduced on two independent jobs. This will break players and pipelines that happily ate Seedance 2.0. - **1080p is slow.** 720.7s to a downloadable file versus 216.1s at 720p — 3.3x the wall clock for 2.25x the pixels. - **Quality costs about 7x here.** A 5-second 1080p clip billed $2.6218 the morning we ran it; Seedance 2.0 at the same size was $1.8867 and Seedance 1.5 Pro just $0.2940. The gap in prompt adherence is visible in the clips below. So is the gap in the bill. - **"Give me a 5-second 1080p clip" means five different things to five vendors.** Sora 2 rejects `1080p` outright and caps at 1792x1024. MiniMax wants `1080P` with a capital P. We asked Veo 3.1 for 5 seconds at 1080p and got 8.0 seconds at 1280x720.
Native 1080p · live now
Seedance 2.5 at 1080p — 25% cheaper than going direct.
$8.77 per 1M tokens versus ByteDance's own ¥77 (about $11.77). 5-second clip $2.15 · 10 seconds $4.28 · 30-second single-take $12.80. Open the console and generate one →
Everything below is why that clip is worth generating — measured, not claimed. --- ## Does Seedance 2.5 Actually Render at 1080p? ByteDance launched Seedance 2.5 on July 31, 2026, onto Jimeng AI and Doubao Pro ([TechNode](https://technode.com/2026/07/31/bytedance-launches-seedance-2-5-video-generation-model/), 2026). The launch post led with the headline number: 30 seconds of video in a single pass, double what Seedance 2.0 managed. It also claimed up to 50 multimodal references — 30 images, 10 video clips, 10 audio clips — and joint audio-video generation rather than dubbing a silent render afterward. It never said what resolution the thing outputs. So the ecosystem guessed, and split. One vendor's docs stated flatly that native output is 480p or 720p and that any 1080p or 4K route is an upscale off the 720p base. Another advertised native 4K. A third described a full 1920x1080 frame generated directly. These are not compatible claims, and every one of them is load-bearing if you're budgeting a render farm. The disagreement has a boring explanation — the tier moved. Native 1080p was reportedly switched on around **August 17, 2026**, which is why pages written in early August describe a different model than pages written now ([ChatSlide](https://www.chatslide.ai/pages/seedance-2-5-api), 2026). Boring explanations still leave the question a marketing page can't answer. When you pay for 1080p, *what are you actually paying for?* Pixel dimensions in the returned file prove nothing. `ffmpeg` will happily hand you a 1920x1080 file that was rendered at 720p and stretched. Every upscaler on earth produces exactly that. There is a way to settle it. It just isn't the video file. ## How Do You Prove a Render Isn't an Upscale? Seedance is billed per token, not per second or per video. That's mildly annoying for budgeting and enormously useful for forensics, because the token count is computed from the **render**, not from the file that lands in your bucket. We ran the same prompt at 720p and at 1080p and read `usage.completion_tokens` off each completed job: | Request | Delivered file | Billed tokens | |---|---|---| | `resolution: "720p"` | 1280x720 | **108,900** | | `resolution: "1080p"` | 1920x1080 | **245,025** | 245,025 / 108,900 = **2.2500**. The pixel ratio between 1920x1080 and 1280x720 is also exactly 2.25. If Seedance 2.5 were rendering at 720p and upscaling, the meter would have read 108,900 both times — you cannot bill for pixels you never diffused. It read the full 1080p count. **The 1080p tier is a real render.** Billed tokens for one 5-second clip, Seedance 2.5Bar chart, 3 itemsBilled tokens for one 5-second clip, Seedance 2.5720p request (measured)108,9001080p if upscaled from720p108,9001080p request (measured)245,025Mesh API usage.completion_tokens, byteplus/dreamina-seedance-2-5, 2026-08-17. An upscale bills the r… ### The formula, and the frame you didn't order Chasing that number gave us the billing formula outright. Solve 245,025 back through 1920x1080: ``` 245,025 x 1024 / (1920 x 1080) = 121.0 ``` 121 frames. Not 120. And `ffprobe` confirms it on every single file we pulled — `nb_frames=121` across Seedance 1.0 Pro, 1.5 Pro, 2.0 and 2.5, and on Kling 3.0 too: ``` tokens = width x height x frames / 1024 frames = fps x duration + 1 ``` Check it: 1920 x 1080 x 121 / 1024 = 245,025. Exactly. At 720p: 1280 x 720 x 121 / 1024 = 108,900. Exactly. Five jobs reported a token count. Five exact hits, no rounding. The +1 is the inclusive endpoint — a 5-second clip at 24fps spans frames 0 through 120. It's defensible, it's also billable, and nobody mentions it. At 5 seconds you're paying for 0.83% more frames than `duration x fps` implies. At 30 seconds it decays to 0.14%. It will not bankrupt you. It will make your cost model wrong by a consistent, confusing sliver until you know why. We verified the arithmetic against the money, not just the meter. Reading `/v1/balance` before and after each job, the 1080p clip moved the balance by **$2.621768**. 245,025 tokens at the $10.70/1M list rate is $2.6217675. The meter and the ledger agree to the seventh decimal. ## Why Does Seedance 2.5 Return HEVC at 1080p? Here's what we didn't go looking for. Ask Seedance 2.5 for 720p and you get 8-bit H.264, High profile — the same boring, universally playable thing Seedance 2.0 returns. Ask the same model for 1080p and you get this: ``` codec_name=hevc profile=Main 10 pix_fmt=yuv420p10le width=1920 height=1080 nb_frames=121 ``` **HEVC. 10-bit.** From the same model ID, same endpoint, same request shape — the only difference is the resolution string. We hit it twice on independent jobs, hours apart, and both came back `hvc1`/Main 10/`yuv420p10le`. Here are both clips. Same prompt, same model, one parameter apart:
720p — H.264 High, 8-bit, 108,900 tokens, $1.1652, 216.1s
1080p — HEVC Main 10, 10-bit, 245,025 tokens, $2.6218, 720.7s
That right-hand player is doing the exact thing this section is about. Its first `` is the untouched 10-bit HEVC file the API returned; the second is our H.264 transcode. Safari takes the original. Chrome and Firefox mostly fall through to the fallback. If we had shipped only the file the API gave us, the right-hand box would be black for a large share of you. The 1080p files are also the only ones in the whole run carrying colour metadata — BT.709 primaries, transfer and matrix. Every other file arrived with no colour tags at all, leaving players to guess. On the merits this is an upgrade. Ten-bit kills the banding you get in exactly the content video models love to generate — gradient skies, neon falloff, smoke, shallow-depth bokeh. HEVC carries more quality per bit. If you're grading footage, you want this. If you're piping model output straight to a `