API Directory › 🤖 AI & Machine Learning › Wit.ai
OAuthHTTPSCORS

Wit.ai API

Free natural-language understanding (intents and entities) from Meta.

Auth
OAuth
HTTPS
Yes
CORS
Yes
Open Wit.ai docs ↗

What it does

Wit.ai (owned by Meta) is a free natural-language understanding API. You define intents, entities and traits, train the app with example utterances, then send user text (or speech) and get back the detected intent and structured entities — ideal for chatbots, voice commands and IVR.

Base URL

https://api.wit.ai

Authentication

Create an app at wit.ai and copy the Server Access Token from Settings. Send it as Authorization: Bearer YOUR_TOKEN and include an API version date, e.g. ?v=20240401, on every request. The whole service is free.

Code examples

curl
curl -G "https://api.wit.ai/message" \
  -H "Authorization: Bearer $WIT_TOKEN" \
  --data-urlencode "v=20240401" \
  --data-urlencode "q=set an alarm for 6am tomorrow"
Python
import requests

r = requests.get(
    "https://api.wit.ai/message",
    headers={"Authorization": f"Bearer {TOKEN}"},
    params={"v": "20240401", "q": "set an alarm for 6am tomorrow"},
    timeout=10)
data = r.json()
print(data["intents"], data["entities"].keys())

Rate limits & quotas

Wit.ai is free but rate-limited per app — roughly a few requests per second (about 60/minute) for /message. It is meant for interactive traffic, not bulk batch processing. Speech requests (/speech) accept raw audio with a Content-Type such as audio/wav.

Key response fields

intents[0].name / intents[0].confidenceTop intent and its 0–1 score
entitiesMap of role:entity → list of resolved values
traitsSentiment-style attributes you defined (e.g. wit$sentiment)
textThe utterance Wit processed (echoed back)

Common errors

401Missing or wrong Server Access Token.
400 "bad v"The v= version parameter is missing or malformed.
429Per-app rate limit exceeded — slow down.
408Speech upload timed out — send shorter audio chunks.

When to use it (and alternatives)

A solid free option for intent + entity extraction in chatbots and voice UIs when you are happy to design the schema yourself. For free-form generation or reasoning you want an LLM like the OpenAI API or Claude instead.

FAQ

Is Wit.ai really free?

Yes. There is no paid tier and no billing — the trade-off is a modest rate limit and that Meta owns the platform, so treat it as a dependency you don’t control.

Why do I have to send a version date?

The v=YYYYMMDD parameter pins the API behaviour to a snapshot so Wit’s ongoing changes don’t silently break your integration. Set it and bump it deliberately.

Can Wit.ai transcribe speech?

Yes — POST raw audio to /speech with the right Content-Type. It returns the transcript plus the same intent/entity analysis as /message.

New to APIs?

Short guides for working with this API — and any other.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

Prompt ImproverLearn Prompt Engineering

Related AI & Machine Learning APIs

← Back

More AI & Machine Learning APIs · All 196 APIs