Skip to content
Provider Protocol Logo

Provider Protocol

Built by developers with AI First application developmental experience to simplify and streamline the next generation of AI First software.

Multi-Provider

One interface, any provider, any surface. Your backend code is your frontend code - your OpenAI code is your anthropic code.

Type-Safe

Full TypeScript support with intelligent autocompletion and compile-time checks.

Transparent

Build without worrying about magic, read provider official documentation and you already know how to use Provider Protocol.

Modular

Purpose-built interfaces for llm(), embedding(), and image().

import { llm, embedding } from '@providerprotocol/ai';
import { anthropic } from '@providerprotocol/ai/anthropic';
import { openai } from '@providerprotocol/ai/openai';
// LLM inference with Claude
const claude = llm({
model: anthropic('claude-sonnet-4-20250514'),
system: 'You are a helpful assistant.',
});
const response = await claude.generate('Explain quantum computing');
console.log(response.text);
// Generate embeddings with OpenAI
const embedder = embedding({
model: openai('text-embedding-3-large'),
});
const vector = await embedder.embed('Hello, world!');
UPP-1.3 Current
InterfaceStatusDescription
LLMStableText generation, streaming, tools, structured output
EmbeddingStableVector embeddings, batch processing, similarity
ImageStableGeneration, editing, variations
AudioPlannedSpeech-to-text, text-to-speech