Pinecone API
by docs.pinecone.io
Embeddings and reranking
Added on November 3rd, 2026
Visit docs.pinecone.io →
What it does
Pinecone is a managed vector database with hosted embedding and reranking models, for semantic search or retrieval-augmented generation (RAG). Requests are JSON over HTTPS with an Api-Key header. Free on the Starter plan: up to 2 GB storage, 1 million read units and 2 million write units a month, 5 million embedding tokens a month per hosted model and 500 rerank requests a month. An official MCP server (npm package @pinecone-database/mcp) lets AI agents search and manage indexes.
At a glance
- API key
- Needed, free · More APIs with a free key
- Pricing
- Free on the Starter plan: up to 2 GB storage, 1 million read units and 2 million write units a month, 5 million embedding tokens a month per hosted model and 500 rerank requests a month.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, MCP
- Provider
- docs.pinecone.io
More information: https://docs.pinecone.io/guides/index-data/create-an-index
Compare: Pinecone API vs Qdrant Cloud
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl -X POST 'https://api.pinecone.io/embed' \
-H 'Api-Key: YOUR_API_KEY' \
-H 'X-Pinecone-Api-Version: 2025-10' \
-H 'Content-Type: application/json' \
-d '{"model":"llama-text-embed-v2","parameters":{"input_type":"passage"},"inputs":[{"text":"The quick brown fox"}]}'
JavaScript
const response = await fetch("https://api.pinecone.io/embed", {
method: 'POST',
headers: {
"Api-Key": "YOUR_API_KEY",
"X-Pinecone-Api-Version": "2025-10",
"Content-Type": "application/json",
},
body: JSON.stringify({"model":"llama-text-embed-v2","parameters":{"input_type":"passage"},"inputs":[{"text":"The quick brown fox"}]}),
});
const data = await response.json();
console.log(data);
Python
import requests
response = requests.post(
"https://api.pinecone.io/embed",
headers={
"Api-Key": "YOUR_API_KEY",
"X-Pinecone-Api-Version": "2025-10",
"Content-Type": "application/json",
},
json={
"model": "llama-text-embed-v2",
"parameters": {
"input_type": "passage",
},
"inputs": [
{
"text": "The quick brown fox",
},
],
},
timeout=30,
)
print(response.json())
Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.