AI dictionary · AI basics
What is API?API kya hai?
Also called: Application Programming Interface
API: A defined way for one program to ask another program for data or an action.Ek program ka doosre program se data ya kaam maangne ka tay kiya hua tarika.
🧸 Think of it likeAise samjho
Like a waiter in a restaurant: you don't go into the kitchen, you tell the waiter what you want and the waiter brings it back.Restaurant ke waiter jaisa: aap kitchen mein nahi jaate, waiter ko batate ho kya chahiye aur woh le aata hai.
📘 ExplainedVistaar se
An API defines what you can request and what you get back, usually as JSON over HTTP. LLM providers offer APIs: you send a model name and messages, and receive the generated text and token counts. In AI products you both call APIs (LLMs, databases) and expose your own (for example a /predict endpoint for your model).API tay karta hai aap kya maang sakte ho aur badle mein kya milega, aam taur pe HTTP pe JSON. LLM providers APIs dete hain: aap model ka naam aur messages bhejte ho, aur generated text aur token counts milte hain. AI products mein aap APIs call bhi karte ho (LLMs, databases) aur apni bhi dete ho (jaise model ke liye /predict endpoint).
💡 Real exampleAsli example
A weather app calls a weather API to get today's forecast.Weather app aaj ka forecast lene ke liye weather API call karta hai.
📖 Learn it step by stepStep by step seekho
🔗 Related termsJude hue shabd
Questions people ask
What is API?
A defined way for one program to ask another program for data or an action. An API defines what you can request and what you get back, usually as JSON over HTTP. LLM providers offer APIs: you send a model name and messages, and receive the generated text and token counts. In AI products you both call APIs (LLMs, databases) and expose your own (for example a /predict endpoint for your model).
How can I understand API in simple words?
Like a waiter in a restaurant: you don't go into the kitchen, you tell the waiter what you want and the waiter brings it back.
What is an example of API?
A weather app calls a weather API to get today's forecast.
API ka matlab kya hai?
Ek program ka doosre program se data ya kaam maangne ka tay kiya hua tarika. Restaurant ke waiter jaisa: aap kitchen mein nahi jaate, waiter ko batate ho kya chahiye aur woh le aata hai.
See API in the full A to Z dictionary · Start a free AI course