Gorilla Benchmark API Bench

APIBench, a comprehensive dataset of over 11,000 instruction-API pairs from HuggingFace, TorchHub, and TensorHub APIs for evaluating language models' ability to generate accurate API calls.

Llama 3.1 405B Instruct from Meta currently leads the Gorilla Benchmark API Bench leaderboard with a score of 0.353 across 3 evaluated AI models.

Paper
About this benchmark

What Gorilla Benchmark API Bench measures

Gorilla Benchmark API Bench is a text benchmark that evaluates large language models on reasoning, code, and tool calling tasks. LLM Stats tracks 3 models on this benchmark, with a maximum possible score of 1. Current average across reported models is 0.2, with the leader reaching 0.4.

Compare leaders on the best AI for reasoning, best AI for code and best AI for tool calling leaderboards.

Publication

Paper
Gorilla: Large Language Model Connected with Massive APIs
Authors
Shishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. Gonzalez
Published

Abstract

Large Language Models (LLMs) have seen an impressive wave of advances recently, with models now excelling in a variety of tasks, such as mathematical reasoning and program synthesis. However, their potential to effectively use tools via API calls remains unfulfilled. This is a challenging task even for today's state-of-the-art LLMs such as GPT-4, largely due to their inability to generate accurate input arguments and their tendency to hallucinate the wrong usage of an API call. We release Gorilla, a finetuned LLaMA-based model that surpasses the performance of GPT-4 on writing API calls. When combined with a document retriever, Gorilla demonstrates a strong capability to adapt to test-time document changes, enabling flexible user updates or version changes. It also substantially mitigates the issue of hallucination, commonly encountered when prompting LLMs directly. To evaluate the model's ability, we introduce APIBench, a comprehensive dataset consisting of HuggingFace, TorchHub, and TensorHub APIs. The successful integration of the retrieval system with Gorilla demonstrates the potential for LLMs to use tools more accurately, keep up with frequently updated documentation, and consequently increase the reliability and applicability of their outputs. Gorilla's code, model, data, and demo are available at https://gorilla.cs.berkeley.edu

MetaLlama 3.1 405B Instruct leads with 35.3%, followed by MetaLlama 3.1 70B Instruct at 29.7% and MetaLlama 3.1 8B Instruct at 8.2%.

Progress Over Time

Interactive timeline showing model performance evolution on Gorilla Benchmark API Bench

State-of-the-art frontier
Open
Proprietary

Gorilla Benchmark API Bench Leaderboard

3 models
ContextCostLicense
1405B
270B
38B
Notice missing or incorrect data?

FAQ

Common questions about Gorilla Benchmark API Bench.

What is the Gorilla Benchmark API Bench benchmark?

APIBench, a comprehensive dataset of over 11,000 instruction-API pairs from HuggingFace, TorchHub, and TensorHub APIs for evaluating language models' ability to generate accurate API calls.

What is the Gorilla Benchmark API Bench leaderboard?

The Gorilla Benchmark API Bench leaderboard ranks 3 AI models based on their performance on this benchmark. Currently, Llama 3.1 405B Instruct by Meta leads with a score of 0.353. The average score across all models is 0.244.

What is the highest Gorilla Benchmark API Bench score?

The highest Gorilla Benchmark API Bench score is 0.353, achieved by Llama 3.1 405B Instruct from Meta.

How many models are evaluated on Gorilla Benchmark API Bench?

3 models have been evaluated on the Gorilla Benchmark API Bench benchmark, with 0 verified results and 3 self-reported results.

Where can I find the Gorilla Benchmark API Bench paper?

The Gorilla Benchmark API Bench paper is available at https://arxiv.org/abs/2305.15334. The paper details the methodology, dataset construction, and evaluation criteria.

What categories does Gorilla Benchmark API Bench cover?

Gorilla Benchmark API Bench is categorized under reasoning, code, and tool calling. The benchmark evaluates text models.

What is the best open-source model on Gorilla Benchmark API Bench?

Llama 3.1 405B Instruct by Meta is the top-ranked open-source model on Gorilla Benchmark API Bench, with a score of 0.353 (rank #1).

How recent are the Gorilla Benchmark API Bench leaderboard results?

The Gorilla Benchmark API Bench leaderboard was last updated in June 2026 and currently includes 3 evaluated models.

More evaluations to explore

Related benchmarks in the same category

View all reasoning
GPQA

A challenging dataset of 448 multiple-choice questions written by domain experts in biology, physics, and chemistry. Questions are Google-proof and extremely difficult, with PhD experts reaching 65% accuracy.

reasoning
224 models
MMLU-Pro

A more robust and challenging multi-task language understanding benchmark that extends MMLU by expanding multiple-choice options from 4 to 10, eliminating trivial questions, and focusing on reasoning-intensive tasks. Features over 12,000 curated questions across 14 domains and causes a 16-33% accuracy drop compared to original MMLU.

reasoning
127 models
AIME 2025

All 30 problems from the 2025 American Invitational Mathematics Examination (AIME I and AIME II), testing olympiad-level mathematical reasoning with integer answers from 000-999. Used as an AI benchmark to evaluate large language models' ability to solve complex mathematical problems requiring multi-step logical deductions and structured symbolic reasoning.

reasoning
114 models
MMLU

Massive Multitask Language Understanding benchmark testing knowledge across 57 diverse subjects including STEM, humanities, social sciences, and professional domains

reasoning
100 models
SWE-Bench Verified

A verified subset of 500 software engineering problems from real GitHub issues, validated by human annotators for evaluating language models' ability to resolve real-world coding issues by generating patches for Python codebases.

reasoning
100 models
Humanity's Last Exam

Humanity's Last Exam (HLE) is a multi-modal academic benchmark with 2,500 questions across mathematics, humanities, and natural sciences, designed to test LLM capabilities at the frontier of human knowledge with unambiguous, verifiable solutions

reasoningmultimodal
82 models