LLM API
A service model in which the capabilities of a cloud-based large language model are invoked through an API interface. Developers can integrate AI functionality without local deployment and pay according to request usage.
Core Facts
API billing typically distinguishes between input tokens and output tokens; in multi-turn conversations, the outputs from earlier turns become inputs in later turns and are billed again.
LLM APIs are billed by token, with approximately 1–2 tokens per English word and approximately 1–2 tokens per Chinese character.
Mainstream LLM APIs usually rate-limit on both requests per minute (RPM) and tokens per minute (TPM).
Timeline (last 90 days)
Attackers can take control of legitimate agents through prompt injection, poisoning shared data, compromising tools, or multi-agent collaboration, and can exploit legitimate encrypted LLM API traffic to exfiltrate sensitive data.
Desktop pet programs typically do not contain large language model weights; instead, they call cloud or locally deployed LLM services (such as OpenAI API, Ollama, etc.) via HTTP requests.
A local agent places the execution layer on the user's own computer; after command parsing it directly calls the local file system and operating system interfaces, so data need not leave the machine, but limited by local compute it usually relies on an external LLM API for semantic understanding.
The LLM API is the source of the desktop pet's conversational ability; the program uses an API Key to call the LLM to generate reply text, then feeds the motion intent into the T2M model to generate skeletal animation.
In LLM API scenarios, 502/503 usually correspond to gateway backend unavailability or overload, 504 corresponds to inference queue timeout, and 500 is mostly an internal exception.
The starting method for building a minimum viable Agent: choose a timer-triggered scenario, hook up a free LLM API to make simple judgments, and then output the results through a notification tool.
For LLM APIs, retryable errors include 429, 5xx and timeouts, while non-retryable errors include 400 parameter errors and 401 authentication failures.
Free-tier LLM API limits are usually distributed across four levels: request quota, response size, model capability and usage tracking.
Learning Agentic AI should start with directly using LLM APIs, mastering parameter controls such as temperature and max tokens, structured prompt engineering, and function calling mechanisms.
When calling an LLM API, the marginal cost grows linearly with the number of requests, whereas the marginal cost per execution of locally compiled decision logic is close to zero, with the main cost shifting to one-time compilation and validation investment.
33 more timeline events
All Facts (20)
API billing typically distinguishes between input tokens and output tokens; in multi-turn conversations, the outputs from earlier turns become inputs in later turns and are billed again.
75%VerifiedLLM APIs are billed by token, with approximately 1–2 tokens per English word and approximately 1–2 tokens per Chinese character.
70%VerifiedMainstream LLM APIs usually rate-limit on both requests per minute (RPM) and tokens per minute (TPM).
65%VerifiedThe request-response cycle handled by a traditional API gateway usually completes within 50 to 200 milliseconds, whereas an LLM API often needs to keep the connection open for 30 to 120 seconds.
65%VerifiedLarge model APIs universally adopt tokens as the billing unit and distinguish between input tokens and output tokens, with output tokens typically priced higher.
65%VerifiedSince 2023, API prices for mainstream LLMs have fallen by more than 90%
65%Unverified调用第三方LLM API的AI产品数据流向通常经历「用户设备→产品服务器→LLM服务商」三个节点,每个节点都存在独立的安全风险面
80%UnverifiedAll LLM API price lists are priced per million tokens, with input and output charged separately: cost = input_tokens/1,000,000 × input_price + output_tokens/1,000,000 × output_price.
60%UnverifiedThe current pricing systems of mainstream LLM APIs are usually composed of several dimensions: per-token billing (distinguishing input/output), per-call billing, tiered pricing, and cache-hit discounts.
60%UnverifiedTo make the model understand context, developers must manually attach the complete history of messages to the messages array in each request.
60%UnverifiedAttackers can take control of legitimate agents through prompt injection, poisoning shared data, compromising tools, or multi-agent collaboration, and can exploit legitimate encrypted LLM API traffic to exfiltrate sensitive data.
50%UnverifiedDesktop pet programs typically do not contain large language model weights; instead, they call cloud or locally deployed LLM services (such as OpenAI API, Ollama, etc.) via HTTP requests.
50%UnverifiedA local agent places the execution layer on the user's own computer; after command parsing it directly calls the local file system and operating system interfaces, so data need not leave the machine, but limited by local compute it usually relies on an external LLM API for semantic understanding.
50%UnverifiedThe LLM API is the source of the desktop pet's conversational ability; the program uses an API Key to call the LLM to generate reply text, then feeds the motion intent into the T2M model to generate skeletal animation.
50%UnverifiedIn LLM API scenarios, 502/503 usually correspond to gateway backend unavailability or overload, 504 corresponds to inference queue timeout, and 500 is mostly an internal exception.
50%UnverifiedThe starting method for building a minimum viable Agent: choose a timer-triggered scenario, hook up a free LLM API to make simple judgments, and then output the results through a notification tool.
50%UnverifiedFor LLM APIs, retryable errors include 429, 5xx and timeouts, while non-retryable errors include 400 parameter errors and 401 authentication failures.
50%UnverifiedFree-tier LLM API limits are usually distributed across four levels: request quota, response size, model capability and usage tracking.
50%UnverifiedLearning Agentic AI should start with directly using LLM APIs, mastering parameter controls such as temperature and max tokens, structured prompt engineering, and function calling mechanisms.
50%UnverifiedWhen calling an LLM API, the marginal cost grows linearly with the number of requests, whereas the marginal cost per execution of locally compiled decision logic is close to zero, with the main cost shifting to one-time compilation and validation investment.
50%