GPT Image 2.5 is live — OpenAI's newest image model, targeted edits that leave the rest of the frame alone
All resources

· reAPI Team

OpenRouter Alternatives

Choose LiteLLM for a self-run gateway, Portkey for controls, Vercel for managed routing, Ollama for local models, or reAPI for supported hosted model access.

OpenRouter Alternatives

OpenRouter alternatives serve different jobs. Together and Fireworks are hosted-inference options when their model catalogs fit. Choose LiteLLM when you want to operate a gateway around your own model accounts; consider Portkey when routing and organizational controls are the requirement; evaluate Vercel AI Gateway for a managed service with AI SDK integration. Ollama's local server fits a different task: running a supported model on your own machine. reAPI is a candidate when you want hosted model access and the models in its catalog cover your application.[1][2][3][4][5]

We publish reAPI, one of the options below. This is a documentation-based comparison, not a latency benchmark or a claim that every option supports the same models. The gateway documentation was checked on October 22, 2026; the hosted-provider prices and billing additions below were checked on October 23. Its purpose is to help you choose a service category before changing a working integration. For OpenRouter's billing mechanics, use the separate OpenRouter pricing guide.

openrouter alternatives

Start with what you need to replace. Buying access to a model, controlling other teams' model accounts, and running a model locally are different responsibilities. A gateway can help with the second without providing the first.

OptionDocumented roleWhen to evaluate itWhat to verify before moving
OpenRouterHosted model access, consolidated billing and provider routingYour existing workflow depends on its model and routing choicesWhether a configuration change solves the problem without migration
reAPIHosted access to chat and media modelsYou want to call models in the reAPI catalog through documented APIsExact model ID, endpoint, supported inputs and current model-page billing
Together AIHosted models through serverless APIs and dedicated deploymentsA model in its catalog meets the taskExact model ID, prepaid access and endpoint compatibility
Fireworks AIHosted models with serverless modes and dedicated deploymentsYou want its model catalog or deployment choicesStandard versus Priority/Fast pricing, credits and separate spend limits
Direct model vendorAccess through that vendor's own API and accountNative features or vendor processing tiers are essentialVendor-specific protocol, billing and eligibility
LiteLLMPython SDK and self-hosted proxyYou already have model accounts and want to control the gatewayDeployment, database, credentials and budget enforcement
PortkeyGateway with routing, logs and organizational controls; open-source gateway also availableYou need a gateway layer around model accessWhich features belong to the edition and deployment you select
Vercel AI GatewayManaged gateway accessible from any infrastructureYou use AI SDK or want managed routing and request logsSDK options, BYOK behavior and budget scope
Ollama local serverLocal model execution with a subset of OpenAI API compatibilityA supported local model meets your taskHardware fit, model quality and the exact API features your app needs

Sources: each product's official documentation.[1][2][3][4][5][6] Together and Fireworks billing and API details are cited in their sections below; the direct-vendor example uses OpenAI’s published pricing and Batch contract.

Our recommendation is conditional: use reAPI when the job is obtaining supported model access. We do not present it as a replacement for LiteLLM's self-hosted software or Portkey's complete control plane. If ownership of your proxy deployment is essential, evaluate those products first. If your requirement is OpenRouter's provider-selection controls, keeping OpenRouter may be the right answer: its documented request options include ordered providers, fallback control and data-policy filters.[7]

openrouter vs litellm

LiteLLM offers two starting points: a Python library inside an application, and a proxy that applications call over HTTP. Its documentation describes virtual keys, cost tracking and an administrative interface for the proxy. That is a concrete reason to consider it when the problem is controlling access across a team, rather than finding another place to buy inference.[1]

The setup choice matters. LiteLLM's gateway quickstart starts a proxy and a PostgreSQL database; the database stores models, keys and spend logs. Its simpler configuration-file mode can run without the same management features. The documentation explicitly warns that global spend enforcement needs a database client: configuring a global budget without one does not make that budget enforceable.[8]

For an evaluation, write down which LiteLLM surface you would actually use. A solo Python application may need only the SDK. A team issuing application-specific credentials may need the proxy and its database. Treat backing up that database, updating the gateway and retaining the credential-encryption key as part of the deployment decision, rather than assuming that an open-source download removes operating work.[8]

LiteLLM's repository licenses code outside its enterprise/ directory under MIT; that directory has a separate license. Running the open-source gateway does not include free provider inference or free infrastructure.[11]

LiteLLM is the stronger candidate than reAPI for a team whose requirement is to run this gateway layer itself. That does not establish lower total cost or faster inference. Those require your hosting bill, engineering time and measurements against the models you will call. Keep those inputs separate from model-token charges.

Portkey belongs in the gateway evaluation too. Its current documentation calls the product Portkey (Prisma AIRS AI Gateway) and lists conditional routing, caching, fallbacks, budget limits and custom hosts. It also describes an open-source gateway that can run locally.[2] Do not assume that installing that gateway supplies every hosted administration feature. Define the edition and deployment in the comparison before using a feature list to make a purchase decision.

openrouter vs vercel ai gateway

Vercel AI Gateway is a managed option. The official overview supports calls through AI SDK, OpenAI-compatible clients and other documented interfaces. Your application does not have to run on Vercel. It provides request logs and configurable routing, so an existing AI SDK application has a relevant integration path to evaluate.[3]

Read the spending controls closely. Vercel documents that gateway budgets cover requests billed through its system credentials; BYOK spending is metered separately and does not count toward those limits. It also says that a failed BYOK request can fall back to system credentials.[3] If your intended contract is “use this provider account only,” test that configuration explicitly. A dashboard budget and a provider-account budget are not automatically the same control.

This gives Vercel a useful role in the shortlist: managed routing and logs without running the proxy stack yourself. It does not justify choosing it purely because another gateway's price table looks higher. Match the model, feature requirements, billing account and fallback policy first.

openrouter vs ollama

Ollama's local server changes where inference runs. Its official compatibility documentation shows OpenAI clients calling a localhost endpoint, while explicitly stating that Ollama supports a subset of the OpenAI API. The same documentation distinguishes local-server use from its separate cloud service.[4]

Choose the local path because local execution is part of the requirement and an available model fits the task. Do not assume that moving the base URL will reproduce a closed model you previously accessed through OpenRouter. Check the model you can actually run, then compare its answers on your application's evaluation set.

For a small local prototype, the useful test is whether the model completes the real job on the machine available to you. Include the longest expected input and any structured response or tool call the application needs. This is an evaluation method, not a promise of a particular speed or quality result. Local hardware cost and operational effort still belong in your comparison even when there is no hosted per-request invoice.

together ai vs openrouter

Together supplies hosted inference rather than a proxy you operate. Its catalog lists openai/gpt-oss-120b at $0.15 input and $0.60 output per million tokens, and DeepSeek V4.1 Flash at $0.30 input, $0.006 cached input and $1.20 output. These are model-specific prices, not a promise of equivalent results across models.[12]

Its credit documentation currently says no free trial: the first credit purchase is at least $15, later purchases at least $5. The self-serve service is prepaid; zero balance suspends API access, while existing Scale or Enterprise contracts retain their terms.[13] Do not confuse free registration with free inference.

For OpenAI clients, the documented base URL is https://api.together.ai/v1, with a Together key and its model ID. Compatibility is endpoint-specific: Chat Completions is supported, while OpenAI-shaped batches.* is not; Together has its own Batch API.[14] Choose it when its hosted model and API fit the application, rather than assuming an OpenRouter key or every SDK method transfers unchanged.

openrouter vs fireworks

Fireworks documents the OpenAI-client base URL https://api.fireworks.ai/inference/v1, with its own key and model identifiers.[15] Its Standard serverless rates below separate uncached input, cached input and output, in USD per million tokens:[16]

ModelInputCached inputOutput
GPT OSS 120B$0.15$0.015$0.60
DeepSeek V4.1 Flash$0.30$0.006$1.20

The uncached input/output rates match the two Together examples. That is a price comparison, not measured quality or latency parity. Fireworks lists Priority and Fast prices separately; its pricing page bills Batch input and output at 50% of serverless rates. Select the actual processing mode before comparing invoices.[16]

Fireworks is prepaid for ordinary accounts. A zero balance pauses usage without Auto Reload, and adding credits does not raise a separately configured monthly spend limit. Contracted customers may have post-paid arrangements.[17] A funded account therefore does not establish unlimited capacity or spending permission.

openrouter pricing vs direct

Direct vendor access can win when the application needs that vendor's native protocol or processing tier. For a concrete price counterexample, OpenAI lists GPT-6 Astra short-context input/output at $10/$50 per million tokens on Standard and $5/$25 on Batch. reAPI's rendered model page showed $8/$40 for its standard short-context path on October 23.[18][19]

Consider an illustrative request with 20,000 ordinary input tokens and 5,000 billed output tokens, including reasoning. With no cache reads or writes, tool charges, regional uplift or taxes, the calculation is cost = (input_tokens × input_rate + output_tokens × output_rate) / 1,000,000: $0.45 on direct Standard, $0.36 on reAPI, and $0.225 on direct Batch. These inputs stay below the 272K prompt threshold; reasoning tokens belong in billed output.[23] Direct Batch is cheaper in this example, but is asynchronous with a 24-hour completion window; it is not a replacement for an interactive response. reAPI's public contract does not establish support for that Batch workflow.[18][19][20]

OpenRouter's extra cost also depends on how you pay. Its pricing page lists a 5.5% Standard or 8% Business fee on credit purchases, while the rendered FAQ specifies a $0.80 minimum for the 5.5% fee. Thus $100 of Standard credits costs $105.50 before tax; small purchases can have a higher effective percentage.[21][22] BYOK is different: the provider bills inference directly, Standard and Business include $25,000 of list-price inference per month without an OpenRouter fee, and the excess carries a 5% fee calculated from OpenRouter list prices. Do not apply the credit-purchase fee to the entire external provider bill.[21]

openrouter api key

An API migration needs its own credential. Do not send an OpenRouter key to a different service. Store the destination's key with that destination's base URL, and replace the model identifier with the exact identifier its documentation specifies.

For reAPI, start from the model catalog and that model's API documentation. The published GPT-6 Sol documentation, for example, uses the base URL https://reapi.ai/api/v1 with an OpenAI client. Media generation has a different request lifecycle: the quickstart submits a generation task and polls its task ID. Do not treat a chat-completions integration as a ready-made image or video integration.[9][10]

Before moving production traffic, compare a small, representative set of application requests. Record these checks in your own migration notes:

  • The exact model and endpoint used on each side, including whether the destination is offering the same model.
  • The required input types, streaming events, tool arguments and structured output your application consumes.
  • Completion and failure handling, including what the application does after a partial stream.
  • The account charged, the recorded usage and any retry or fallback setting you intentionally enabled.

These are proposed acceptance checks; we did not run paid generations for this article. A successful basic text response cannot demonstrate that all of the application's other features work. Keep the existing integration available until the replacement passes the checks that matter to that application.

openrouter pricing

There is no universal cheapest choice in this comparison. A hosted API, a self-operated gateway and local inference have different cost components. To make the decision concrete, use the following worksheet with your own inputs:

Cost componentHosted model serviceSelf-operated gatewayLocal model
InferenceModel usage and applicable account feesModel-account usage behind the gatewayMachine or compute expense
Gateway operationEvaluate what the service includesHosting, database and maintenanceApplication/server maintenance
MigrationIntegration and acceptance checksIntegration plus deployment workIntegration plus model evaluation

This is an accounting framework, not a measured ranking. For reAPI, follow the catalog to the relevant model page for current rates and billing dimensions. For OpenRouter's fees and credit rules, the pricing article covers that separate question.

If hosted access to reAPI's supported models is your requirement, continue with the API documentation. If you need to own the gateway, evaluate LiteLLM or Portkey's deployment options. If your current OpenRouter configuration already satisfies the requirement, preserving it avoids an unnecessary migration. A useful shortlist of OpenRouter alternatives ends with an application-specific acceptance test, not a ranking that ignores what the application must do.

Questions from search

What is an OpenRouter?

In this API comparison, OpenRouter is the hosted service that exposes models through a unified API and consolidates billing and usage information. It is different from a model itself.[6]

Is LiteLLM free?

Its documentation describes an open-source library and a self-hosted gateway. That does not establish that model inference, hosting or every commercial feature is free. Evaluate the SDK or gateway edition you actually intend to use.[1]

What does Portkey do?

Portkey documents a gateway with routing, caching, fallbacks and usage controls. Its documentation currently uses the Prisma AIRS AI Gateway name as well. Compare the applicable edition rather than assuming every feature is part of the open-source gateway.[2]

References

  1. LiteLLM. Getting Started. Retrieved October 22, 2026. docs.litellm.ai/docs/
  2. Portkey. AI Gateway. Retrieved October 22, 2026. portkey.ai/docs/product/ai-gateway
  3. Vercel. Call AI models across providers with Vercel AI Gateway. Retrieved October 22, 2026. vercel.com/docs/ai-gateway
  4. Ollama. OpenAI compatibility. Retrieved October 22, 2026. docs.ollama.com/api/openai-compatibility
  5. reAPI. Welcome and model catalog. Retrieved October 22, 2026. reapi.ai/docs and reapi.ai/models
  6. OpenRouter. Frequently Asked Questions. Retrieved October 22, 2026. openrouter.ai/docs/faq
  7. OpenRouter. Provider Routing. Retrieved October 22, 2026. openrouter.ai/docs/guides/routing/provider-selection
  8. LiteLLM. Quickstart. Retrieved October 22, 2026. docs.litellm.ai/docs/proxy/docker_quick_start
  9. reAPI. GPT-6 Sol API documentation. Reviewed October 22, 2026. reapi.ai/docs/gpt-6-sol
  10. reAPI. Quickstart. Reviewed October 22, 2026. reapi.ai/docs/api/quickstart
  11. LiteLLM. Repository license. Checked October 23, 2026. github.com/BerriAI/litellm/blob/main/LICENSE.
  12. Together AI. Available serverless models and prices. Checked October 23, 2026. docs.together.ai/docs/serverless/models.
  13. Together AI. Credits: access requirements and purchases. Checked October 23, 2026. docs.together.ai/docs/billing-credits.
  14. Together AI. OpenAI compatibility matrix. Checked October 23, 2026. docs.together.ai/docs/inference/openai-compatibility.
  15. Fireworks AI. OpenAI compatibility. Checked October 23, 2026. docs.fireworks.ai/tools-sdks/openai-compatibility.
  16. Fireworks AI. Serverless pricing: Standard, Priority and Batch. Checked October 23, 2026. docs.fireworks.ai/serverless/pricing.
  17. Fireworks AI. Billing and credit usage. Checked October 23, 2026. docs.fireworks.ai/faq-new/billing-pricing/how-does-billing-and-credit-usage-work.
  18. OpenAI. API pricing: GPT-6 Astra Standard and Batch. Checked October 23, 2026. developers.openai.com/api/docs/pricing.
  19. reAPI. GPT-6 Astra model pricing and public request contract. Checked October 23, 2026. reapi.ai/models/gpt-6-astra. Public contract: reapi.ai/docs/gpt-6-astra; no live generation test.
  20. OpenAI. Batch API: asynchronous requests and completion window. Checked October 23, 2026. developers.openai.com/api/docs/guides/batch.
  21. OpenRouter. Pricing: plan fees and BYOK allowance. Checked October 23, 2026. openrouter.ai/pricing.
  22. OpenRouter. FAQ: rendered credit-purchase fee. Checked October 23, 2026. openrouter.ai/docs/faq.
  23. OpenAI. Reasoning: reasoning tokens billed as output. Checked October 23, 2026. developers.openai.com/api/docs/guides/reasoning
All resources