inferencer: Simple Unified Wrappers for Hosted Foundation Model Inference APIs

Provides lightweight R wrappers for querying and listing models from several hosted foundation model inference platforms, currently including 'OpenAI' <https://developers.openai.com/api/docs/>, 'Google Gemini' <https://ai.google.dev/gemini-api/docs>, 'Groq' <https://console.groq.com/docs/>, 'OpenRouter' <https://openrouter.ai/docs/>, 'Cerebras' <https://inference-docs.cerebras.ai/>, and 'Ollama Cloud' <https://docs.ollama.com/cloud>. The package is designed for simple inference workflows and quick experimentation, with minimal abstraction and a consistent interface across providers. It includes helper functions for model discovery, text generation, embeddings, image generation, and multimodal inputs, while leaving room for future support of provider-specific parameters and advanced options.

Version: 0.2.0
Depends: R (≥ 4.1.0)
Imports: data.table, httr2, jsonlite
Suggests: knitr, rmarkdown, testthat
Published: 2026-08-04
DOI: 10.32614/CRAN.package.inferencer
Author: Oliver Zhou [aut, cre]
Maintainer: Oliver Zhou <oliver.yxzhou at gmail.com>
BugReports: https://github.com/OliverLDS/inferencer/issues
License: MIT + file LICENSE
URL: https://github.com/OliverLDS/inferencer
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: inferencer results

Documentation:

Reference manual: inferencer.html , inferencer.pdf

Downloads:

Package source: inferencer_0.2.0.tar.gz
Windows binaries: r-devel: inferencer_0.1.4.5.zip, r-release: inferencer_0.1.4.5.zip, r-oldrel: inferencer_0.1.4.5.zip
macOS binaries: r-release (arm64): inferencer_0.1.4.5.tgz, r-oldrel (arm64): inferencer_0.1.4.5.tgz, r-release (x86_64): inferencer_0.1.4.5.tgz, r-oldrel (x86_64): inferencer_0.1.4.5.tgz
Old sources: inferencer archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=inferencer to link to this page.