# Voyage AI API

Category: [Embeddings and reranking](https://free-web-services.com/web-services/ai/embeddings/)  
Page: https://free-web-services.com/web-services/ai/embeddings/voyage-ai-api.html  
Documentation: https://docs.voyageai.com/docs/pricing

Voyage AI offers embedding and reranking models for search and retrieval-augmented generation (RAG): turn text, code or images into vectors for semantic search, and rerank search results by how well they match a question. There are general, multilingual, code, finance and law models. Requests are JSON POST calls with an API key. Free with a free API key for the first 200 million tokens per account on most current models; paid per token after that.

- API key: Needed, free
- Pricing: Free with a free API key for the first 200 million tokens per account on most current models; paid per token after that.
- From the browser: Yes (CORS)
- Formats: JSON
- Interface: REST
- Provider: docs.voyageai.com

Example request:

```sh
curl -X POST 'https://api.voyageai.com/v1/embeddings' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"input": ["hello"], "model": "voyage-4"}'
```

Replace YOUR_API_KEY with your own key. The JavaScript works in a web page as well as in Node.js 18 or newer.

