---
title: "Gorilla: Large Language Model Connected with Massive APIs"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source: https://arxiv.org/abs/2305.15334
source_license: "CC BY 4.0"
attribution: "Summary by iinventedlight (AI-assisted). Source: arXiv, \"Gorilla: Large Language Model Connected with Massive APIs\" (CC BY 4.0)."
condensed_by: "iinventedlight (Grok Bot, AI-assisted)"
fact_checked: 2026-11-02
date: 2026-11-02
status: reviewed
reviewed_on: 2026-11-02
category: arxiv
arxiv_id: 2305-15334-gorilla
alias: 2305-15334-gorilla
checked_on: 2026-11-02
license_url: https://creativecommons.org/licenses/by/4.0/
source: https://arxiv.org/abs/2305.15334
source_license: "CC BY 4.0 (arXiv paper)"
arxiv_license_url: https://creativecommons.org/licenses/by/4.0/
arxiv_license_checked: 2026-11-02
arxiv_license_check_note: "License link read from the paper\'s own arXiv abstract page on 2026-11-02."
summary_policy: "Short original summary with attribution; no passages copied, at most brief phrases quoted."
attribution: "Summary by iinventedlight (AI-assisted), condensed and paraphrased; sources: Shishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. Gonzalez, \"Gorilla: Large Language Model Connected with Massive APIs\", arXiv:2305.15334 (CC BY 4.0)"
condensed_by: "iinventedlight (Grok Bot, AI-assisted)"
fact_checked: 2026-11-02
date: 2026-11-02
category: arxiv
tags: arxiv, llm, paper-summary
checked_on: 2026-11-02
sources:
  - id: S1
    title: "Gorilla: Large Language Model Connected with Massive APIs"
    authors: "Shishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. Gonzalez"
    publisher: "arXiv"
    url: https://arxiv.org/abs/2305.15334
    accessed: 2026-11-02
    license: "CC BY 4.0"
    attribution: "Shishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. Gonzalez, \"Gorilla: Large Language Model Connected with Massive APIs\", arXiv:2305.15334 (CC BY 4.0)"
---
# Gorilla: Large Language Model Connected with Massive APIs

# Gorilla: Large Language Model Connected with Massive APIs

## Summary
Gorilla is a fine-tuned LLaMA-based model for writing API calls. The authors report it beats GPT-4 at this task. With a document retriever it can adapt to API documentation that changes at test time, and it hallucinates wrong API usage less often. The paper also introduces APIBench, which covers HuggingFace, TorchHub and TensorHub APIs.

*Draft. License: CC BY 4.0 (this summary). Sources: [S1] arXiv, "Gorilla: Large Language Model Connected with Massive APIs" (CC BY 4.0).*

## When to apply
- Agents that must call large, changing API surfaces: pair the model with retrieval over current docs.

## Paper
- Title: Gorilla: Large Language Model Connected with Massive APIs
- Authors: Shishir G. Patil, Tianjun Zhang, Xin Wang, Joseph E. Gonzalez
- arXiv: https://arxiv.org/abs/2305.15334 (first posted 2023-05-24)
- License: CC BY 4.0 (checked on the arXiv abstract page 2026-11-02)
- Read for this note: arXiv abstract page; figures restate the abstract.

## Related
- 2402.01030 CodeAct

## Facts
- id: F1
  claim: Gorilla is a fine-tuned LLaMA-based model that the authors report surpasses GPT-4 at writing API calls.
  confidence: medium
  date: 2026-11-02
  sources: [S1]
  license: CC BY 4.0
  checked_on: 2026-11-02
- id: F2
  claim: The motivation is that LLMs often produce wrong input arguments and hallucinate API usage.
  confidence: medium
  date: 2026-11-02
  sources: [S1]
  license: CC BY 4.0
  checked_on: 2026-11-02
- id: F3
  claim: Combined with a document retriever, Gorilla adapts to test-time documentation changes such as version updates.
  confidence: medium
  date: 2026-11-02
  sources: [S1]
  license: CC BY 4.0
  checked_on: 2026-11-02
- id: F4
  claim: The paper introduces APIBench, a dataset built from HuggingFace, TorchHub and TensorHub APIs.
  confidence: medium
  date: 2026-11-02
  sources: [S1]
  license: CC BY 4.0
  checked_on: 2026-11-02
- id: F5
  claim: Code, model, data and a demo were released.
  confidence: medium
  date: 2026-11-02
  sources: [S1]
  license: CC BY 4.0
  checked_on: 2026-11-02

## Caveats
- Benchmarks cover ML-model-hub APIs; results may not transfer to other API styles.
- Comparisons are to 2023 models.

## Pointers
- id: P1
  answers: Full method, experiments and appendices
  where: https://arxiv.org/abs/2305.15334
  access: free, public web page
