Overview

OpenProvider documentation

Set up providers, browse free models, use the app, and integrate with the OpenAI-style API.

OpenProvider is a free-model gateway. You connect provider credentials once, OpenProvider syncs a free-only model catalog, and your apps call one OpenProvider surface for chat, image generation, image analysis, and speech.

The web app is for daily work: explore models, save useful routes, chat with text models, test image and speech routes, and manage provider/API credentials in Account.

Free model catalog

Browse synced free models across text, image generation, image analysis, and speech categories.

Provider setup

Save provider credentials once. OpenProvider keeps those provider-native keys on the server.

Auto and exact routes

Use auto routing for fallback, or pass an exact model id when you need deterministic provider behavior.

OpenProvider API keys

Client apps call OpenProvider with generated keys instead of handling provider credentials directly.

Setup

From empty workspace to working route

A working OpenProvider workspace needs a signed-in account, at least one configured provider, a synced catalog, and an OpenProvider API key for external apps.

  1. 01
    Sign in

    Use the account menu to create a personal workspace for provider keys, API keys, saved models, and chat history.

    Open account
  2. 02
    Connect providers

    Open Account -> Provider setup and save keys for the free providers you want OpenProvider to route through.

    Open provider setup
  3. 03
    Check the catalog

    Open Models to confirm synced free models, filter by category, and inspect exact model ids.

    Open models
  4. 04
    Generate an API key

    Open Account -> API keys and create an OpenProvider key for your application.

    Open API keys
Account

What each account area is for

Account is the operational center for credentials, API keys, saved model shortcuts, and conversation history.

Models

Understand the model catalog

Models shows the current free registry after provider discovery and free-only filtering. Use it to compare providers, inspect context/output limits, save models, and copy exact model ids for API calls.

Filter by category

Text, image, and speech are first-class catalog categories. Image analysis models are routed through the analysis workflow.

Prefer working models

The Working filter uses provider status checks so you can avoid routes that recently failed.

Save exact routes

Saved models become workspace shortcuts for repeated testing and app integration.

Chat

Use the chat console

Chat is the fastest way to test text models. Start with OpenProvider Auto Free for fallback across configured providers, or switch to a specific model when you need predictable provider behavior.

Chat -> select model -> send prompt -> save conversation in Account
Playground

Generate images, analyze images, and create speech

The playground is for media workflows. Image routes generate pictures from prompts, image analysis accepts URLs or uploads, and speech routes return audio bytes from text prompts.

Routing

Choose auto routing or exact model ids

Auto routing is best when availability matters. Exact model ids are best when your app depends on a specific provider, context window, category, or output behavior.

ModeUse when
Auto routeYou want OpenProvider to select an available free route and fall back when one provider fails.
Exact modelYou need deterministic provider behavior, model-specific limits, or a known output style.
Provider setupYou want to expand route availability by connecting more provider keys.
Authentication

Use OpenProvider API keys

Generate an OpenProvider key from Account, then send it as a Bearer token. Provider-native credentials never need to leave the OpenProvider server.

Authorization: Bearer opk_live_...
API reference

OpenAI-style routes for supported workflows

All `/v1/*` routes require an OpenProvider API key. Provider credentials stay encrypted in the workspace.

GET
List models/v1/models

Returns the free model registry for the authenticated workspace.

GET
Provider status/v1/providers/status

Returns configured provider state, discovery errors, and catalog coverage.

POST
Chat/v1/chat/completions

OpenAI-compatible chat completions with OpenProvider auto fallback.

POST
Image/v1/images/generations

Text-to-image generation through configured free image providers.

POST
Image analysis/v1/images/analyze

Image understanding from an image URL, data URL, or multipart upload.

POST
Speech/v1/audio/speech

Text-to-speech that returns raw audio bytes.

Interactive request builder

Choose a workflow below to generate copyable cURL and JavaScript snippets, edit the request body, and run a live request with your OpenProvider key.

Interactive example

Chat

OpenAI-compatible chat completions with OpenProvider auto fallback.

POST/v1/chat/completions
Text workflow
curl -X POST "https://your-openprovider.app/v1/chat/completions" \
  -H "Authorization: Bearer opk_live_..." \
  -H "Content-Type: application/json" \
  --data '{
  "model": "openprovider/auto-free",
  "messages": [
    {
      "role": "user",
      "content": "Explain OpenProvider auto routing in one paragraph."
    }
  ],
  "temperature": 0.3
}'
ChatJSON chat completion
JSON chat completion
Run an example to inspect the response here.
Errors

One error shape across providers

OpenProvider normalizes route, model, provider, and authentication failures into a predictable JSON envelope.

401authentication_error

Missing or invalid OpenProvider API key.

404model_not_found

Exact model is not in the free registry or does not match the endpoint category.

503no_route_available

No configured free model is currently available for the requested workflow.

429provider_rate_limited

A provider free tier returned a rate-limit response. Retry later or route to another model.