Atlas · skill

LLM API Integration

LLM API integration connects a model service to application data, workflows and user interfaces. It requires more than sending a prompt: the integration must preserve task state, validate outputs, control tool execution and handle timeouts, limits and changing provider interfaces in a way the rest of the application can depend on.

conceptModel Access

What it is

A model API is an external dependency whose outputs may vary even when inputs look similar. Integration code translates domain inputs into messages or content blocks and translates responses into application objects or user-facing content. It also manages streaming, conversation state, usage and errors. A provider abstraction can reduce duplicated code, but different models still have different tool schemas, context behavior and supported modalities. The integration boundary is where these differences become explicit contracts instead of hidden assumptions spread across business logic.

What the work involves

The practitioner defines the application's required response shape, failure states and maximum waiting time before selecting an API. Client code centralizes credential handling and provider adaptation, while domain code validates facts and permissions. Contract tests exercise supported inputs, truncated outputs, quota errors and unavailable dependencies. Logging captures identifiers and timing with appropriate redaction. A practical deliverable is an adapter whose documented behavior tells callers whether they received a complete result, a retryable failure or an answer requiring human review.

Illustrative example

A procurement system adds a model-assisted description normalizer. The adapter accepts an item record, asks a provider for a structured proposed description and returns either a validated proposal or an explicit failure. The existing system still checks product codes and requires review before saving. When the provider is unavailable, manual editing remains available. Replacing the model provider changes the adapter and evaluation configuration rather than forcing every procurement screen to understand a new message format.

Limits and common mistakes

A common interface does not make models interchangeable in quality or semantics. Retries can increase cost and repeat side effects; streaming text can be shown before later validation rejects the full answer. Silent provider fallbacks may change behavior users depend on. Good integration tests therefore inspect application outcomes as well as network success, and release decisions include representative model evaluations rather than relying only on mocked API responses.

Prerequisites

No prerequisites.

Related skills

Sources and further reading

  • Text generation

    Supports explicit request construction and response lifecycle handling.

  • Claude API overview

    Provides an independent provider interface for comparing integration contracts.

Last updated: 2026-10-10