
mbarchfe
Vector Search with JavaScript: generate embeddings needs paid openai account?
Hi,
I have created a free openai account and generated an api key.
When I run the generate embeddings code with the api key, I get the following error:
Error: 429 You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.
Is a paid account needed?
Anyways, what model would you recommend to generate embeddings locally?
Thanks
Markus
First Post!

hummusonrails
Hi Markus,
Yes, OpenAI does have a pricing model. You can learn about their pricing model on their pricing page.
There are certainly good open source alternatives. To start take a look at the trending board of open source models on HuggingFace as a good reference point to begin your exploration. One particular model you can take a look at nomic-embed-text from ollama, but I encourage you to explore all the open source options and find what works best for your needs.
All the best,
Ben
Popular Pragmatic Bookshelf topics










Other popular topics








Categories:
Sub Categories:
Popular Portals
- /elixir
- /rust
- /ruby
- /wasm
- /erlang
- /phoenix
- /keyboards
- /rails
- /python
- /js
- /security
- /go
- /swift
- /vim
- /clojure
- /emacs
- /haskell
- /java
- /onivim
- /svelte
- /typescript
- /kotlin
- /crystal
- /c-plus-plus
- /tailwind
- /react
- /gleam
- /ocaml
- /flutter
- /elm
- /vscode
- /ash
- /html
- /opensuse
- /centos
- /php
- /deepseek
- /zig
- /scala
- /textmate
- /lisp
- /sublime-text
- /nixos
- /debian
- /react-native
- /agda
- /kubuntu
- /arch-linux
- /django
- /revery
- /ubuntu
- /manjaro
- /spring
- /nodejs
- /diversity
- /deno
- /lua
- /julia
- /slackware
- /c