Quantized API documentation

Quantized provides a single, unified API to access multiple AI providers and tools. One API key, one credit balance, one consistent interface — regardless of which provider powers the request.

What you can do

Chat Completions

Generate text with any LLM. Compatible with the OpenAI Chat Completions format.
Supports text, vision, tool calling, structured output, reasoning, and streaming.

POST /v1/chat/completions

Responses

Stateful text generation using the Responses API format.
Supports instructions, tools, reasoning, and streaming.

POST /v1/responses

Embeddings

Generate vector embeddings for text. Compatible with the OpenAI Embeddings format.

POST /v1/embeddings

Image Generation

Generate images from text prompts, through OpenAI’s gpt-image-* models or Google Gemini.

POST /v1/images/generations

Web Search

Search the web, or peer-reviewed papers with type: "academic".

POST /v1/web-search

Fetch

Extract clean text content from any URL.

POST /v1/fetch

Supported providers

Provider Capabilities
OpenRouter LLMs (GPT-4, Claude, Llama, Gemini, …), Responses API, Embeddings
OpenAI Direct Chat completions, Responses, Embeddings, Image generation (gpt-image-2, gpt-image-1.5, …)
CheaperInference Chat completions and Responses below list price
DeepInfra, Novita, Parasail, Relace, Together AI Chat completions on open-weight models
Anthropic Claude models directly
AWS Bedrock Chat completions, Responses, Bedrock-native embeddings
Google Gemini Gemini-native embeddings, Image generation (Gemini Flash Image, Imagen 4)
Exa Web search, content extraction
Tavily Web search, content extraction
Consensus Academic web search (peer-reviewed papers)
Consensus Academic search over peer-reviewed papers

You don’t need to manage separate API keys or accounts for each provider. Quantized handles provider routing, authentication, and billing automatically.

Get started

Get your API key

Your institution provides you with a Quantized API key (format: sk-quantized-...) or a JWT token.


Make your first request

curl -X POST https://api.quantized.us/v1/chat/completions \
  -H "Authorization: Bearer sk-quantized-YOUR-KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "openai/gpt-4.1-mini",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Explore the docs

Read the Quickstart guide or jump to the API Reference.

Key features

  • OpenAI-compatible — Use the OpenAI SDK with base_url="https://api.quantized.us/v1"
  • Unified billing — One credit balance across all providers and tools
  • Provider routing — Pin a specific provider with the X-Quantized-Provider header, or let Quantized pick among the providers that carry your model
  • Streaming — Server-Sent Events for real-time token delivery
  • Browser-ready — CORS is enabled, so you can call the API directly from a web page
  • Request attribution — Tag requests with your own context through the X-Quantized-Metadata header (see Authentication)
  • Transparent pricing — Every response includes credits_used; check your balance anytime via GET /v1/license