Liking cljdoc? Tell your friends :D

benchgecko.core

Official Clojure SDK for the BenchGecko API.

BenchGecko tracks every major AI model, benchmark, and provider. This library wraps the public REST API for querying model data, benchmark scores, and model comparisons.

Usage: (require '[benchgecko.core :as bg]) (bg/models) (bg/benchmarks) (bg/compare ["gpt-4o" "claude-opus-4"])

Official Clojure SDK for the BenchGecko API.

BenchGecko tracks every major AI model, benchmark, and provider.
This library wraps the public REST API for querying model data,
benchmark scores, and model comparisons.

Usage:
  (require '[benchgecko.core :as bg])
  (bg/models)
  (bg/benchmarks)
  (bg/compare ["gpt-4o" "claude-opus-4"])
raw docstring

*base-url*clj

Base URL for the BenchGecko API.

Base URL for the BenchGecko API.
sourceraw docstring

*timeout*clj

HTTP timeout in milliseconds.

HTTP timeout in milliseconds.
sourceraw docstring

benchmarksclj

(benchmarks)

List all benchmarks tracked by BenchGecko.

Returns a sequence of benchmark maps with name, category, and description.

Example: (def all-benchmarks (benchmarks)) (map :name all-benchmarks)

List all benchmarks tracked by BenchGecko.

Returns a sequence of benchmark maps with name, category,
and description.

Example:
  (def all-benchmarks (benchmarks))
  (map :name all-benchmarks)
sourceraw docstring

compareclj

(compare model-slugs)

Compare two or more AI models side by side.

Accepts a vector of model slugs (minimum 2) and returns a structured comparison with per-model scores and pricing.

Example: (compare ["gpt-4o" "claude-opus-4"]) ;; => {:models [{:name "GPT-4o" :scores {...}} ...]}

Compare two or more AI models side by side.

Accepts a vector of model slugs (minimum 2) and returns a
structured comparison with per-model scores and pricing.

Example:
  (compare ["gpt-4o" "claude-opus-4"])
  ;; => {:models [{:name "GPT-4o" :scores {...}} ...]}
sourceraw docstring

modelsclj

(models)

List all AI models tracked by BenchGecko.

Returns a sequence of model maps, each containing metadata like name, provider, parameter count, pricing, and benchmark scores.

Example: (def all-models (models)) (count all-models) (map :name (take 5 all-models))

List all AI models tracked by BenchGecko.

Returns a sequence of model maps, each containing metadata like
name, provider, parameter count, pricing, and benchmark scores.

Example:
  (def all-models (models))
  (count all-models)
  (map :name (take 5 all-models))
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close