% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{get_api_embeddings}
\alias{get_api_embeddings}
\title{Get Embeddings from API}
\usage{
get_api_embeddings(
  texts,
  provider = c("openai", "gemini"),
  model = NULL,
  api_key = NULL,
  batch_size = 100
)
}
\arguments{
\item{texts}{Character vector of texts to embed}

\item{provider}{Character string: "openai" or "gemini"}

\item{model}{Character string specifying the embedding model. Defaults:
\itemize{
\item openai: "text-embedding-3-small"
\item gemini: "gemini-embedding-001"
}}

\item{api_key}{Character string with API key}

\item{batch_size}{Integer, number of texts to embed per API call (default: 100)}
}
\value{
Matrix with embeddings (rows = texts, columns = dimensions)
}
\description{
Generates text embeddings using OpenAI or Gemini embedding APIs.
}
\concept{ai}
\keyword{internal}
