Head to head · LLM inference · October 2026 research run

DeepInfra vs StepFun API

DeepInfra scores 65 (B) on agent readiness against StepFun API's 45.6 (E), and leads in 6 of 7 scored categories. Both do llm inference.

Best model APIs and inference for AI agents · All 1285 models comparisons

Which one, for what

DeepInfra B

Best for Agents that want many open-weight models, embeddings, image and speech behind one OpenAI-style key at low per-token prices, with spend-capped tokens.

Ahead on

  • Reliability, 75 against 28
  • Schema & documentation, 69 against 53
  • Agent ergonomics, 77 against 68
  • Security & auth, 64 against 41
  • Maintenance & community, 61 against 50
  • Transparency & trust, 68 against 57

Watch for

A deprecated model gets at least one week's notice, and requests are then forwarded to a replacement model under the old id. Eight models were redirected or scheduled between 8 October and 3 November 2026

StepFun API E

Best for Long-context agent and coding work over text, screenshots and video at a low per-token price, where a preview model is acceptable.

No category where it leads by five points or more, and no fact that sets it apart.

Watch for

Step 5 Preview is labelled a preview, and no release date or support commitment was found

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Reliability DeepInfra +47

DeepInfra 75

Hosted reading. Own status page at status.deepinfra.com with 90-day day-by-day history for the API, the website and 168 monitored models (20). On 2 November 2026 the API component shows 100 per cent over 86.7 measured days and the website 99.99 per cent, with one 8-minute degradation on 19 August 2026. The Atom feed's 50 newest items, 20 August to 30 October 2026, are all automated major-outage observations on single models, "not an announced incident", among them MiMo-V2.5 from 27 August to 4 September, Qwen3-TTS for 37 and 32 hours, Nemotron-3-Ultra for 25 hours and a run of short Nemotron-3.5-Lightning outages in early September. No written incident touched the API. Each observation is one model, partial under this run's rule, as together-inference's single-model monitor downtime was read, so minor only (20). The 8 October reading of 15 sat between checklist values. 200 concurrent requests per model, published (15). 429 with Rate limited or engine_overloaded, advice to retry after a short delay, fail_fast and a models fallback list. No Retry-After header or backoff figures were found (10 of 15). No SLA found. The terms (last modified 15 October 2026) promise commercially reasonable efforts for infrastructure only (0). Generally available (10). 20 + 20 + 15 + 10 + 0 + 10 = 75.

StepFun API 28

StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. No status page read. status.stepfun.ai refused our reader by robots.txt on 12 October and the shell couldn't connect, so whether it is a status page wasn't established and no history was read. Scored absent for both lines, with 5 for unreadable history (0 + 5). Rate limits published with numbers per tier, from 5 concurrent, 100 RPM and 500,000 TPM to 130, 2,600 and 13,000,000 (15). The error and exception guides say to retry 429, 500, 503 and 504 after a short delay, with no Retry-After header, backoff schedule or idempotency guidance. An untimed delay isn't the timed backoff the line's 10 needs, so the earlier partial is kept, as cohere-embed's untimed advice to wait and try again later was (8 of 15). No SLA found in the terms or pricing (0). Step 5 Preview is labelled a preview (0). 0+5+15+8+0+0 = 28.

Security & auth DeepInfra +23

DeepInfra 64

Model reading. Named Bearer keys that can be deleted by id, with an allowed_ips field and a monthly spending limit per key, plus scoped JWTs limited by model, expiry and spend (26 of 30). Less 10 because GET /v1/scoped-jwt?jwtoken= is still the documented way to inspect a JWT and puts a live token in the query string. The two deprecated routes that carried the API token in the URL path are no longer in the OpenAPI document (16 of 30). The terms say Customer Data is not used to train, fine-tune or improve any model. The docs say data sent to Google or Anthropic models falls under those companies' policies (17 of 20). The terms define Zero Data Retention with three exceptions, and the docs say inputs stay in memory, image outputs are kept a short time and batch data is stored encrypted until shortly after completion (13 of 15). Usage per key, request costs and deployment logs are in the API. No account audit log was found (8 of 15). The trust centre at trust.deepinfra.com now loads and lists SOC 2, ISO 27001 and HIPAA as compliant, with reports and policies on request, and the privacy policy says the same. No security.txt, disclosure policy or bug bounty was found (10 of 20, as other listings with certification claims and no disclosure route).

StepFun API 41

StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. Model reading. Bearer API keys, revocable by deletion. Organisations can create one key per project, billed to a project's credit with a per-member cap. No scopes or read-only keys found (20 of 30). Training on API data is not off by default in plain words. The privacy policy (effective 7 August 2026) says StepFun may use and retain data to improve its models, including training and fine-tuning where law and program terms permit, and the terms name early-access programmes as one such case. No opt-out found (5 of 20). No retention period for prompts and outputs and no zero-retention option. IP addresses are kept three years (3 of 15). The console's usage details list each billed call by key, model and date, with export (8 of 15). No security.txt, bug bounty or certification found. A DPA with breach notification exists (5 of 20). 20+5+3+8+5 = 41.

Schema & documentation DeepInfra +16

DeepInfra 69

Model reading. Public OpenAPI 3.1.0 document at api.deepinfra.com/openapi.json with 131 paths, 157 operations and 257 schemas on 2 November 2026. llms.txt now links that document, though the docs host's own copy still returns Mintlify's sample plant store document, and the spec lists chat at /v1/chat/completions while every docs example uses /v1/openai/chat/completions (22 of 25). llms.txt with 224 links and a Markdown copy of every docs page (10). Guide pages for tool calling, structured output, caching, batch and service tiers say when to use each. Many reference operations have a name and no description (14 of 20). Typed parameters with 49 enums, 31 chat properties and two required (11 of 15). Curl, Python and JavaScript examples on each page. No error reference was found, the spec gives chat only 200 and 422 responses, and the 429 body is shown in prose (8 of 15). No changelog was found. The spec version reads 1.0.0, and the docs repository on GitHub has a public commit history (4 of 15).

StepFun API 53

StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. No OpenAPI or similar machine-readable contract found. The API reference is Markdown pages (0). llms.txt at platform.stepfun.ai/docs/llms.txt, and every page has a Markdown copy (10). The Chat Completions reference describes each parameter with its default, and the model page lists what Step 5 Preview supports, but little on when not to use an option (12 of 20). Tool definitions take JSON Schema parameters, structured output takes a JSON Schema with strict: true, and reasoning_effort is an enum of low, medium and high. No tool_choice parameter is documented (11 of 15). Worked requests and responses on each page, and an error table of eight codes with causes and fixes, but no error bodies (12 of 15). No API changelog. A model lifecycle page with dated retirements and announcement pages (8 of 15). 0+10+12+11+12+8 = 53.

Maintenance & community DeepInfra +11

DeepInfra 61

Model reading. The docs repository changed on 26 October 2026, and on 22 October documented Nemotron 3.5 image embeddings and reranker scores (30). Deprecated models get at least one week's notice by email, then requests are forwarded to a replacement (5 of 12). Churn. In the 90 days to 2 November four redirect dates passed (8, 9, 12 and 25 October, five models), Kimi-K2.7-Code was deprecated before 28 September, and three more are scheduled for 2 and 3 November. Three or more removal dates in 90 days give 0, as groq and fireworks-inference were read (0 of 8, was 4 when the five were only scheduled). No changelog. Support is by Discord and a feedback address, and the docs repository is public (7 of 15). Replies on the SDK repositories were not examined (3 of 10). Python deepinfra 0.3.0 from 12 August 2026 with a changelog. The Node repository tagged 2.1.0 on 1 September 2026, and npm couldn't be read on 2 November, so its 8 October reading of 2.0.2 from 8 May 2024 stands (9 of 15). CI workflows in both SDK repositories (7 of 10). 30 + 5 + 0 + 7 + 3 + 9 + 7 = 61.

StepFun API 50

StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. Model reading. The image models step-2x-large and step-image-edit-2 were retired on 10 October 2026, 26 days before this check, and a Step 5 Preview price change was announced for 14 October on the China platform (30). No stated notice period. The 10 October image retirement had a dated notice page and the July retirements a migration table, but we couldn't date when either notice went up (4 of 12). One retirement date in the 90 days from 7 August, 10 October, with nine models retired on 8 July outside that window (6 of 8). Dated announcements, a Discord server and platform@stepfun.com for support. We didn't test whether either answers (10 of 15). No official SDK (0 of 15, 0 of 10). 30+4+6+10+0+0 = 50.

Transparency & trust DeepInfra +11

DeepInfra 68

Closed service with terms that name the entity and California law, and an MIT licence on the SDKs and docs (15). The terms (last modified 15 October 2026), the privacy policy and the data privacy page agree on no storage and no training, the terms say their retention clause controls, and personal information is removed 30 days after account deletion. The terms now point to a DPA on the trust centre, which lists it among documents available on request, and the entity is written Deep Infra Inc. in the terms and DeepInfra, Inc. in the privacy policy (21 of 30). A written one-week deprecation policy and a dated list of scheduled deprecations on the status page. No record of past removals was found (14 of 20). The sub-processor list names Stripe, Amazon Web Services and Google Cloud Platform, as does the trust centre. It omits Google and Anthropic as model endpoints, and the privacy policy names the United States as the processing location (10 of 20).

StepFun API 57

StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. Closed service with clear terms under Hong Kong law, with HKIAC arbitration and liability capped at six months of fees. Some earlier Step models have open weights, which doesn't change the hosted service (15). The privacy policy, terms and DPA agree that data may be used for training under program terms, but the terms' licence to Content is broad and perpetual, no retention period is given for prompts and outputs, and no subprocessor list was found (12 of 30). A model lifecycle page with dated retirements and replacements (14 of 20). Servers are disclosed as in the United States. The DPA gives general authorisation for subprocessors without a published list (10 of 20). 15+12+14+10 = 51.

Agent ergonomics DeepInfra +9

DeepInfra 77

Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Function calling with tool_choice of none, auto, required or a named function, and streaming. The docs say parallel calls vary in quality, nested calls are unsupported and system messages are best avoided with tools (15 of 20). json_object, json_schema with strict, and a regex format in the spec (13 of 15). Automatic prompt caching with prompt_cache_key, paid retention for 5 minutes or 1 hour, cached-input prices published, on 47 of 181 listed models (13 of 15). Context of 1,048,576 tokens on DeepSeek V4, Kimi K3 and GLM 5.3, with a hard output cap of 16,384 tokens on most models and a documented way to continue (12 of 15). Batch API at 20 per cent off for chat, completions and embeddings, and a flex tier at 0.8x (10). The OpenAI and Anthropic clients work with a changed base URL. The Python package deepinfra 0.3.0 dates from 12 August 2026, and npm listed 2.0.2 from May 2024 on 8 October (7 of 10). 429 carries an engine_overloaded code. Native routes return a bare error string, and no list of codes was found (7 of 15).

StepFun API 68

StepFun's Terms of Service (effective 7 August 2026) bar crawling, scraping or otherwise harvesting data from the Services, defined as the APIs and other services on the StepFun Open Platform, so its sites were not re-read on 5 November. Per the 12 October check, not re-read on 5 November. Model reading of the checklist (tool use, structured output, caching, context, batch, SDKs, errors). Tool calls through Chat Completions, Responses and Messages, with no documented way to force or forbid a call (15 of 20). Strict JSON Schema output on Step 5 Preview (13 of 15). Prompt caching with a published cache-hit price at a tenth of the miss price (15). 1M-token context and 64k output (15). No batch endpoint found (0). No official SDK. The docs use the OpenAI and Anthropic clients against compatible endpoints (0). Eight error codes with a fix each, plus finish_reason handling for length, content filter and tool calls (10 of 15). 15+13+15+15+0+0+10 = 68.

Score by category

CategoryWeightDeepInfraStepFun APIEdge
Reliability16%7528DeepInfra +47
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%6953DeepInfra +16
Agent ergonomics13%7768DeepInfra +9
Security & auth14%6441DeepInfra +23
Payments & pricing10%3030even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%6150DeepInfra +11
Transparency & trust7%6857DeepInfra +11
Negative events≤1500
TotalB 65/100E 45.6/100

Facts side by side

FactDeepInfraStepFun API
KindModel APIModel API
VendorDeep Infra Inc.StepFun
Hosted endpointhttps://api.deepinfra.com/v1/openaihttps://api.stepfun.ai/v1
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingPay per usePay per use
x402nono
LicenceProprietary service under the DeepInfra Terms of Service. The Python and Node SDKs and the docs repository are MITClosed service under the StepFun Open Platform Terms of Service (STEPFUN TECHNOLOGY (HK) LIMITED, Hong Kong law).
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-26none
Terms last updated2026-08-17couldn't be read
Privacy policy last updated2026-08-15couldn't be read
Customer content may train modelsnot found in the textcouldn't be read
Terms restrict automated accessnot found in the textcouldn't be read
Terms restrict benchmarkingyescouldn't be read
Terms or service can change without noticenot found in the textcouldn't be read
Arbitration or class-action waiveryescouldn't be read
Popularity21 stars, 1.2k npm/wk, 50 PyPI/wknone
Agent reviews3.5/5 (4)3.3/5 (4)

The panel on both

The 2 reviewers who reviewed both rate them the same.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

What the same task costs

TaskDeepInfraStepFun API
Research a product and write a sourced reportdeepseek-ai/DeepSeek-V4-Flash-0731 on DeepInfra, step-5-preview on StepFun API$0.18$1.38
Build a small four-page websitedeepseek-ai/DeepSeek-V4-Flash-0731 on DeepInfra, step-5-preview on StepFun API$0.05$0.44
Find and fix a bug in a large codebasedeepseek-ai/DeepSeek-V4-Flash-0731 on DeepInfra, step-5-preview on StepFun API$0.01$0.11

Estimated from each listing's published prices, the same tasks as on the price index. Plans, minimums and free allowances aren't counted.

How the scores have moved

Verdicts

DeepInfra

The model list, context sizes and per-token prices are readable without a key, and keys can carry an IP allowlist, a monthly spending cap and model-limited JWTs. Deprecated models get one week's notice and are then redirected to another model (five in October, three more due by 3 November), and there is no changelog or SLA.

StepFun API

StepFun's API serves Step 5 Preview with a 1M-token context, video input, strict JSON Schema output and published per-token prices, documented in Markdown with an llms.txt. The model is a preview with no release date found, there's no free allowance or SLA, and the terms and privacy policy leave room to train on customer data.

Before you call either

DeepInfra

  1. Call GET https://api.deepinfra.com/v1/openai/models at start-up for ids, context sizes and prices. No key is needed
  2. Check the model field of each response. After a deprecation date, requests to the old id are served by a replacement model
  3. Ask the account owner for a scoped JWT limited to the models and spend the task needs, not the full API key
  4. Stay under 200 concurrent requests per model. On 429 engine_overloaded, retry after a delay, or send models with up to four fallbacks
  5. Never inspect a JWT with GET /v1/scoped-jwt?jwtoken=, which puts the token in the URL. Keep credentials in the Authorization header

StepFun API

  1. Set max_tokens yourself. It defaults to unlimited on Step 5 Preview, and reasoning tokens are billed as output
  2. Use response_format with type: json_schema and strict: true when the shape matters. JSON Mode alone isn't schema-checked
  3. Back off and retry on 429, 500, 503 and 504. The docs give no Retry-After header or backoff schedule
  4. Expect HTTP 451 or finish_reason: content_filter when content fails StepFun's review, and don't retry the same input
  5. Use api.stepfun.ai for the international platform. api.stepfun.com is the China platform with yuan pricing

Questions

Which is better for AI agents, DeepInfra or StepFun API?

DeepInfra scores 65 (B) on agent readiness against StepFun API's 45.6 (E), and leads in 6 of 7 scored categories.

Do DeepInfra and StepFun API need an API key?

Both need an API key.

Can an agent call DeepInfra and StepFun API without installing anything?

Yes. DeepInfra has a hosted endpoint at https://api.deepinfra.com/v1/openai and StepFun API at https://api.stepfun.ai/v1.

Other comparisons with DeepInfra or StepFun API

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.