All collections

Best AI Tools with API Access

AI tools with a developer API for building products and automations: models, speech, search, image and video generation, with how each one bills.

OpenAI API logoAnthropic API logoElevenLabs API logoStability AI API logoPerplexity API logoRunway API logoDeepgram logoAssemblyAI logo
17 toolsUpdated October 21, 2026
Short answer

Most AI products in 2026 are built on a few APIs. For language models, OpenAI's API runs from $0.05 per million input tokens for gpt-5-nano to $10 for gpt-6-astra, and Anthropic's runs from $0.10 for Haiku 5.5 to $10 for Fable 5.1, with output tokens costing about five times input on both. Google's Gemini API has the most generous free tier and paid models from $0.10 per million input tokens. Batch processing cuts prices by half at OpenAI and Anthropic. For voice, ElevenLabs bills API usage in credits from the same plans as its app, starting at $6 a month. For images, Stability AI's Stable Image Ultra costs about $0.08 an image. Perplexity's Sonar API starts at $1 per million tokens and its Search API costs $5 per 1,000 requests. Runway's video API charges $0.01 a credit, and Gen-4.5 uses 12 credits per second. Pick by task first, then by price per result.

Cheapest OpenAI model
gpt-5-nano, $0.05 input and $0.40 output per million tokens
OpenAI API pricing
Claude Haiku 5.5
$0.10 input and $0.50 output per million tokens, prompts up to 100K
Anthropic pricing
Batch discount
50% at OpenAI and Anthropic
OpenAI and Anthropic
Runway Gen-4.5
12 credits, $0.12, per second
Runway API pricing

Updated October 21, 2026How we evaluate tools

How we picked

Each tool offers a documented public API with published pricing or a free tier for testing. The list covers language models, speech-to-text, text-to-speech, web search, and image and video generation.

At a glance

ToolPricingFree planOpen sourceAPI
OpenAI API logoOpenAI APIUsage-based (from $0.05/1M input tokens)
Anthropic API logoAnthropic APIUsage-based (from $0.10/1M input tokens)
ElevenLabs API logoElevenLabs APICredit-based, plans from $6/month
Stability AI API logoStability AI APICredit-based (Stable Image Ultra about $0.08/image)
Perplexity API logoPerplexity APIUsage-based (from $1/1M tokens)
Runway API logoRunway API$0.01/credit
Deepgram logoDeepgramFree / Growth $4,000/year
AssemblyAI logoAssemblyAIFree / Text-to-Speech API $15 per 1M characters
Groq logoGroqFree to start, then usage-based
fal logofalFree / Serverless GPU $1.99/hour and up
Exa logoExaFree / Pay as you go From $4/1,000 requests
Brave Search API logoBrave Search APIFrom $5/1K requests
Cartesia logoCartesiaFree / Pro $5/month
DeepSeek logoDeepSeekFree to start, then usage-based
Luma AI (Dream Machine) logoLuma AI (Dream Machine)From $30/month
Ideogram logoIdeogramFree / Plus $20/month
Speechmatics logoSpeechmaticsFree / Pay as you go From $0.12/hour
Compare OpenAI API, Anthropic API, ElevenLabs API, Stability AI API side by side

The 17 tools

  1. OpenAI API logo1

    OpenAI API

    Usage-based (from $0.05/1M input tokens)

    GPT-6 models, image generation, speech and embeddings via REST API

    Free planAPI

    ChatGPT is OpenAI’s conversational AI service for individuals, teams, educators, and enterprises. It supports writing, web search, file analysis, image generation, voice, coding, research, and custom workflows. A free plan is available, while paid individual plans start at $8/month for Go, with Plus at $20/month and Pro tiers from $100/month.

    Best for
    Writers who want drafting, revision, outlining, and research in one workspace.
    Strength
    ChatGPT combines writing, search, files, images, voice, coding, and research tools.
    Drawback
    Consumer content may be used for training unless users opt out.
  2. Anthropic API logo2

    Anthropic API

    Usage-based (from $0.10/1M input tokens)

    Claude Fable, Opus, Sonnet and Haiku models with tool use and streaming

    Free planAPI

    Claude is Anthropic’s conversational AI assistant for writers, researchers, developers, and organizations. It supports web search, file creation, code execution, Projects, Artifacts, connectors, and Claude Code on paid plans. A free plan is available, Pro costs $20/month or $200/year, and Max starts at $100/month. API access is billed by model and token usage.

    Best for
    Writers who need drafting, revision, and long document analysis in one workspace.
    Strength
    Current models offer context windows up to 1 million tokens.
    Drawback
    Usage limits vary with conversation length, model, features, and task complexity.
  3. ElevenLabs API logo3

    ElevenLabs API

    Credit-based, plans from $6/month

    Text-to-speech and voice cloning via REST API

    Free planAPI

    ElevenLabs is a web, API and agent platform for speech generation, dubbing, voice design, transcription and conversational audio. It serves creators, publishers, developers and businesses that need synthetic voices or realtime agents. A free plan includes 10,000 monthly credits, while paid plans start at $6/month, with separate agent minutes and usage charges.

    Best for
    Creators producing expressive voiceovers, dubbing, sound effects or music.
    Strength
    Eleven v4 supports expressive delivery, inline audio tags and more than 90 languages.
    Drawback
    Credit consumption varies across speech, transcription, music and dubbing features.
  4. Stability AI API logo4

    Stability AI API

    Credit-based (Stable Image Ultra about $0.08/image)

    Stable Diffusion image generation via REST API

    Free planSelf-hostableAPI

    Stable Diffusion is Stability AI's family of image generation and editing models for creators, developers, and businesses that need local control or API access. Community licensing covers qualifying use below $1 million in annual revenue, while API generation starts at $0.025 per image for Stable Diffusion 3.5 Flash.

    Best for
    Developers building image generation or editing into an application.
    Strength
    The family supports local deployment, API access, and hosted creative applications.
    Drawback
    Local use requires compatible hardware, model files, and a separate operating workflow.
  5. Perplexity API logo5

    Perplexity API

    Usage-based (from $1/1M tokens)

    Web-grounded search and answer API with citations

    Free planAPI

    Perplexity is an AI answer engine for current web research, source-linked answers, file analysis, and computer-assisted tasks. It serves individuals, students, developers, and organizations, with plans ranging from free access to enterprise tiers. Buyers should compare research limits, privacy arrangements, connected features, and verification needs before selecting a plan.

    Best for
    Researchers needing current answers with inline citations.
    Strength
    Inline citations place source links beside answer claims.
    Drawback
    Citations still require checking against the linked page.
  6. Runway API logo6

    Runway API

    $0.01/credit

    Gen-4.5 video generation and editing via API

    Free planAPI

    Runway is a web and API platform for filmmakers, designers, marketers, and developers creating generative video, images, and audio. Its free plan includes a one-time 125-credit grant, while paid access starts at $15 monthly or $12 per month with annual billing. The service combines models, editing tools, and enterprise controls.

    Best for
    Filmmakers creating short, reference-guided video sequences.
    Strength
    Gen-4 supports consistent subjects, locations, and objects across scenes.
    Drawback
    Standard and Pro credits expire each billing cycle.
  7. Deepgram logo7

    Deepgram

    Free / Growth $4,000/year

    Speech-to-text, text-to-speech and voice agent APIs priced by the minute

    Free planSelf-hostableAPIPaid from: Growth · $4,000/year

    Deepgram sells speech recognition, text-to-speech and voice agent APIs to developers building transcription and real-time voice products. It suits startups and enterprises that need fast streaming accuracy at low per-minute prices. New accounts get $200 in free credit, and streaming transcription starts at about $0.005 a minute.

    Best for
    Voice agent builders who need streaming transcription with turn detection under a few hundred milliseconds.
    Strength
    Streaming rates under half a cent a minute for Nova-3 undercut most rivals.
    Drawback
    Aura text-to-speech voices have less emotional range than ElevenLabs.
  8. AssemblyAI logo8

    AssemblyAI

    Free / Text-to-Speech API $15 per 1M characters

    Developer APIs for transcription, speech understanding, guardrails, text-to-speech, and voice applications.

    Free planAPIPaid from: Text-to-Speech API · $15 per 1M characters

    AssemblyAI provides cloud APIs for recorded and real-time transcription, speech understanding, guardrails, text-to-speech, and model access. Usage pricing starts at $0.15 per audio hour for Universal-2 transcription and $15 per million characters for text-to-speech, with separate session or token billing for other products and $50 in eligible new-account credits. Its pricing and usage limits depend on the selected subscription and production workflow.

    Best for
    Voice product engineering teams
    Strength
    It covers recorded transcription, streaming, understanding, guardrails, agents, and gateway access.
    Drawback
    Streaming idle time remains billable while a WebSocket is open.
  9. Groq logo9

    Groq

    Free to start, then usage-based

    Fast inference infrastructure for open models and AI applications

    Free planAPI

    Groq operates GroqCloud, an inference service with an OpenAI-compatible API, hosted open models, speech recognition, text to speech, compound tools, and batch processing. A free plan supports building and testing. Developer usage is pay as you go, with listed language-model prices starting at $0.075 per million input tokens for GPT OSS 20B.

    Best for
    It suits developers migrating OpenAI-compatible applications to fast hosted open-model inference.
    Strength
    The API uses familiar OpenAI-compatible chat-completion patterns.
    Drawback
    Model availability and prices can change as preview models are retired.
  10. fal logo10

    fal

    Free / Serverless GPU $1.99/hour and up

    Pay-as-you-go infrastructure for generative video models

    Free planAPIPaid from: Serverless GPU · $1.99/hour and up

    fal is an API and cloud infrastructure platform for developers building generative video, image, audio, and 3D products. It suits teams that need many hosted models, automated inference, or private deployments rather than a single consumer video editor. There is no public monthly subscription. Usage is prepaid, with model prices starting below one cent for some outputs.

    Best for
    Developers building products around generative video APIs.
    Strength
    fal exposes a large and changing catalog of generative media models.
    Drawback
    Model pricing, inputs, licenses, and output limits vary by endpoint.
  11. Exa logo11

    Exa

    Free / Pay as you go From $4/1,000 requests

    Semantic web search infrastructure for AI applications

    Free planAPIPaid from: Pay as you go · From $4/1,000 requests

    Exa is a hosted web search and research API for developers building AI agents, retrieval systems, coding tools, and research products. Its Free plan includes $10 in monthly credits, and paid usage starts from $4 per 1,000 Lite Search requests. Separate endpoints support page extraction, answers, monitoring, and asynchronous research.

    Best for
    AI agents needing semantic web retrieval with citations.
    Strength
    Search returns ranked results with highlights or page text.
    Drawback
    Costs vary with endpoints, result counts, and content options.
  12. Brave Search API logo12

    Brave Search API

    From $5/1K requests

    Independent, privacy-focused web search and AI grounding API

    APIPaid from: Search · $5/1K requests

    Brave Search API serves independent-index web, news, image, video, place, LLM Context, Answers, autocomplete, and spellcheck requests. It suits privacy-conscious developers, agents, and search products that need live sources without Google or Bing fallback. Public entry pricing starts at $5 per 1,000 Search requests, with recurring monthly credits on each public plan.

    Best for
    Privacy-conscious teams building search or grounding products.
    Strength
    The independent index avoids Google and Bing fallback.
    Drawback
    There is no standalone free subscription.
  13. Cartesia logo13

    Cartesia

    Free / Pro $5/month

    Low-latency text-to-speech, transcription and voice agents on state space models

    Free planSelf-hostableAPIPaid from: Pro · $5/month

    Cartesia makes Sonic text-to-speech, Ink speech-to-text and a managed voice agent platform, all tuned for real-time conversation. It suits developers building phone agents and live voice apps where latency matters most. A free plan includes 20,000 credits a month, and paid plans with commercial rights start at $5 a month.

    Best for
    Developers building phone or in-app voice agents where response delay must stay low.
    Strength
    First audio in well under 100 milliseconds suits live conversation.
    Drawback
    The free plan carries no commercial rights.
  14. DeepSeek logo14

    DeepSeek

    Free to start, then usage-based

    Low cost reasoning and general purpose models with open releases

    Free planOpen sourceSelf-hostableAPI

    DeepSeek offers free consumer chat and token-priced APIs for writing, coding, research, and reasoning. Buyers should separate hosted convenience from self-managed deployment, then review pricing, privacy, licensing, and operating responsibilities before selecting it for team use. Current documentation does not state funding, user, or employee totals.

    Best for
    Developers testing low cost reasoning and general purpose API workloads.
    Strength
    The consumer chat service is presented as free.
    Drawback
    The privacy policy describes collection of prompts and usage data.
  15. Luma AI (Dream Machine) logo15

    Production video generation with keyframes, HDR and clip editing

    APIPaid from: Plus · $30/month

    Luma AI makes generative image and video tools for creators, agencies, studios and developers. Its Plus plan starts at $30/month, or $25/month billed annually, with 10,000 credits and commercial use. The pricing page lists only paid plans. API credits are billed separately from app subscriptions.

    Best for
    Filmmakers needing keyframe and aspect-ratio control.
    Strength
    Ray3.2 supports up to 16 keyframes per clip.
    Drawback
    1080p and HDR consume credits rapidly.
  16. Ideogram logo16

    Ideogram

    Free / Plus $20/month

    Text-accurate image generation for creators and design teams

    Free planSelf-hostableAPIPaid from: Plus · $20/month

    Ideogram is a generative image platform for posters, logos, social graphics, and designs that need readable text. It suits creators, developers, and teams seeking hosted image and video generation, private outputs, or API access. Eligible free accounts receive 30 weekly credits, while Plus starts at $20/month.

    Best for
    Designers making posters, logos, and text-heavy social graphics.
    Strength
    Ideogram prioritizes readable text in generated images.
    Drawback
    Free generations are public and weekly credits require supported sign-in.
  17. Speechmatics logo17

    Speechmatics

    Free / Pay as you go From $0.12/hour

    Accurate speech-to-text in 55+ languages, from the cloud to on-premises servers

    Free planSelf-hostableAPIPaid from: Pay as you go · From $0.12/hour

    Speechmatics is a Cambridge, UK speech recognition company selling transcription, voice agent speech-to-text and text-to-speech APIs. It suits developers and enterprises handling accented, multilingual or medical speech, including those who must run models on their own servers. New accounts get $100 in free credit, and transcription starts at about $0.12 an hour after discounts.

    Best for
    Contact centres and agents serving callers with strong accents or mixed languages.
    Strength
    Melia 1 transcribes 55-plus languages and follows mid-sentence language switching.
    Drawback
    Headline prices assume discounts for sharing audio for training and volume commitments.

Related tags

The best AI APIs in 2026: language models, voice, images, search and video

What an AI API gives you

An API lets your own software call an AI model directly, without a chat window. Developers use APIs to add AI features to apps, automate workflows, process documents in bulk and build agents. You pay for what you use, usually per million tokens for text, per character or credit for voice, per image for images and per second for video. There is no monthly fee on most APIs, though some require prepaid credits.

APIWhat it doesPricing unitEntry price
OpenAIText, images, speech, embeddings, realtime voicePer million tokens$0.05 input, gpt-5-nano
AnthropicClaude text and vision, tool use, agentsPer million tokens$0.10 input, Haiku 5.5
Google GeminiText, images, video, audioPer million tokensFree tier, then $0.10 input
ElevenLabsText-to-speech, voice cloning, dubbing, speech-to-textCreditsPlans from $6 a month
Stability AIImage generation and editingCredits per imageAbout $0.08, Stable Image Ultra
PerplexityWeb-grounded answers and search resultsTokens and requests$1 per million tokens, Sonar
RunwayVideo generation and editingCredits per second$0.01 a credit

Language models: OpenAI, Anthropic and Google

OpenAI's API covers the widest range of tasks. Its current text models span from gpt-5-nano for cheap, high-volume work to gpt-6-astra for the hardest reasoning. It also offers image generation with GPT Image models, speech-to-text, text-to-speech, embeddings and the Realtime API for voice agents.

OpenAI modelInput per 1M tokensOutput per 1M tokens
gpt-6-astra$10.00$50.00
gpt-6.1-sol$2.00$10.00
gpt-6-luna$0.10$0.50
gpt-5-nano$0.05$0.40

Anthropic's API serves the Claude models. Developers often choose Claude for coding, long documents and agents, and the API supports tool use, computer use, prompt caching, file inputs and the Claude Agent SDK.

Claude modelInput per 1M tokensOutput per 1M tokens
Fable 5.1$10.00$50.00
Opus 5.5$4.00$20.00
Sonnet 5.5$2.00$10.00
Haiku 5.5 (prompts up to 100K)$0.10$0.50
Haiku 4.5$1.00$5.00

Both companies take 50% off for batch jobs that can finish within 24 hours, and both discount cached input when you reuse the same long prompt.

Google's Gemini API has the most generous free tier, covering Flash and Flash-Lite models plus 2.5 Pro with rate limits. Google says free-tier data may be used to improve its products, so production apps should use the paid tier. Paid prices start at $0.10 input and $0.40 output for 2.5 Flash-Lite, with 3.8 Flash at a promotional $0.75 input and $3.75 output through December 31, 2026, and 3.1 Pro Preview at $2 and $12. Gemini 4 Argon reached the paid API in October 2026.

Voice: ElevenLabs

ElevenLabs offers text-to-speech in dozens of languages, voice cloning, dubbing, sound effects, speech-to-text and a platform for voice agents. API usage draws credits from the same plans as the web app: Starter at $6 a month for 30,000 credits, Creator at $22 for 121,000, Pro at $99 for 600,000 and Scale at $299, with usage-based billing above that. Its newest speech model, Eleven v4, launched October 1, 2026. For high-volume speech where cost matters more than voice quality, Amazon Polly starts at $4 per million characters for standard voices. Our voice tools guide compares more providers.

Images: Stability AI

Stability AI's platform API serves Stable Diffusion 3.5 and its Stable Image models for generation, upscaling, inpainting and background removal, billed in prepaid credits. Stable Image Ultra, its top model, costs about $0.08 an image. Competing image APIs are often cheaper: Google's Nano Banana 2.1 costs $0.0336 for a 1K image and OpenAI's GPT Image 2 about $0.053 at medium quality. If you have GPUs, Stable Diffusion 3.5 weights are free to self-host for businesses under $1 million in revenue.

Search: Perplexity

Perplexity's API gives your app answers grounded in live web results, with citations. The Sonar models start at $1 per million tokens, plus a per-request search fee that depends on search depth. The Search API, which returns ranked web results without a written answer, costs $5 per 1,000 requests. Developers use it for research assistants, news summaries and fact-checking steps inside agents.

Video: Runway

Runway's API generates and edits video with the same models as its app. Credits cost $0.01 each, and Gen-4.5 uses 12 credits per second, so a 10-second clip costs $1.20. Faster and older models cost less per second. Google's Veo 3.1 through the Gemini API and Kling 3.0 are the main alternatives. OpenAI shut down its Sora API on September 24, 2026.

Estimating and controlling cost

To estimate cost, multiply average input and output tokens per request by monthly requests, then by the model's price per million. Then lower it:

  • Start small. Run your prompts on the cheapest model first, and move up only where quality falls short.
  • Cache long prompts. Anthropic, OpenAI and Google all discount repeated input such as system prompts and documents.
  • Batch what can wait. Overnight jobs cost half as much at OpenAI and Anthropic.
  • Set spending limits. Each provider's console lets you cap monthly spend and alert on spikes.
  • Route by task. Send simple classification to a small model and hard reasoning to a large one.

Routers such as OpenRouter offer many providers' models through one API and one bill, which helps when you want to switch models without changing code.

Related: best AI tools for developers, privacy-first AI tools, AI coding tools.

Frequently asked questions

Which AI API is the cheapest?

For text, the cheapest current models are OpenAI's gpt-5-nano at $0.05 per million input tokens and $0.40 per million output tokens, and Google's Gemini 2.5 Flash-Lite at $0.10 input and $0.40 output. Anthropic's Haiku 5.5 costs $0.10 input and $0.50 output for prompts up to 100,000 tokens. Google's Gemini API also has a free tier for Flash and Flash-Lite models, though Google says free-tier data may be used to improve its products. Batch processing at OpenAI and Anthropic halves prices for jobs that can wait up to a day.

Is the OpenAI API or the Anthropic API better?

Both offer a full range of models at similar prices. OpenAI's gpt-6-astra and Anthropic's Fable 5.1 both cost $10 per million input tokens and $50 per million output tokens at the top end. Many developers choose Anthropic's Claude models for coding and agent work and OpenAI for its wider set of extras, such as image generation, speech and the Realtime API. Test both on your own prompts, since quality differences depend heavily on the task.

How much does an AI API cost per month?

It depends entirely on usage. A small app sending 1,000 requests a day with 2,000 input tokens and 500 output tokens each uses about 60 million input and 15 million output tokens a month. On a mid-range model such as Claude Sonnet 5.5 or GPT-6.1 Sol at $2 input and $10 output, that comes to about $270 a month. On Haiku 5.5 or GPT-6 Luna at $0.10 and $0.50, it is about $13.50. Prompt caching and batch processing lower these figures further.

Do AI APIs train on my data?

OpenAI and Anthropic say they do not train on data sent through their paid APIs by default. Google says it does not use paid Gemini API data to improve products, but the free tier's data may be used for that, so do not send private data through the free tier. Most providers keep API data for a limited period for abuse monitoring, and offer zero data retention agreements to qualifying business customers.

What is a token?

A token is the unit AI models read and write, roughly three quarters of an English word on average, so 1,000 tokens is about 750 words. APIs price input tokens, the prompt and any documents you send, separately from output tokens, the model's reply. Output usually costs four to eight times as much as input. Long system prompts and conversation history count as input on every request unless you use prompt caching.

Sources

  1. OpenAI API pricing
  2. Anthropic API pricing
  3. Gemini API pricing
  4. ElevenLabs API pricing
  5. Stability AI platform pricing
  6. Perplexity API pricing
  7. Runway API pricing