The invention discloses a RESTful API intelligent application method based on a large
language model, and the method comprises the following steps: automatically extracting API endpoints, parameter entities and response code information from an OpenAPI standard document, a
source code annotation, HAR flow data, a WITSML standard
data stream of a
petroleum drilling geological design
system, and an SDK document of
Landmark and Schlumberger platforms through employing a BERT series model in combination with a rule template; the method comprises the following steps of: vectorizing a
natural language instruction input by a user through a Sension-BERT model; calculating a comprehensive
score based on three dimensions of
cosine similarity of a query vector and an API description vector, a Jaccard similarity coefficient of a parameter set and a historical calling frequency; an API calling request is constructed and executed, a dynamic
timeout threshold value based on a historical
response time P95 quantile is set, and a backspacing strategy related to the field is configured for a key API. According to the method, end-to-end intelligent API calling is realized, multidisciplinary data islands such as geology and
engineering are effectively broken through, and the
automation level and service continuity of
complex system integration are remarkably improved.