Getting started
Introduction
api14 gives you one OpenAI-compatible endpoint for text, image, video, speech, embeddings, transcription and rerank models from many providers.
api14 is an OpenAI-compatible API gateway for hundreds of AI models. One API key, one base URL and one USD balance give you text, image, video, speech, transcription, music, embeddings and rerank models from every major provider. You keep using the official OpenAI SDKs; only baseURL and apiKey change.
https://api14.com/api/v1
What you get
- Every major model, around 650 models, updated automatically. Model ids use the
provider/modelformat, such asanthropic/claude-sonnet-4.5oropenai/gpt-5-mini. See Model ids & variants. - The OpenAI request and response shapes, chat completions, Responses, embeddings, images, audio and more, so existing code works unchanged. See OpenAI SDK compatibility.
- Clear prices in USD, every model shows its price, and each request is debited from your USD balance. Free credit on signup; plans add more usage than they cost. See Pricing & billing.
- Advanced features passed through, streaming, tool calling, structured outputs, reasoning, web search, prompt caching, provider routing and model fallbacks.
Endpoints at a glance
| Capability | Endpoint | Guide |
|---|---|---|
| Text, reasoning, tools, vision | POST /chat/completions | Chat completions |
| Responses API | POST /responses | Responses |
| Legacy completions | POST /completions | Completions |
| Embeddings | POST /embeddings | Embeddings |
| Images | POST /images/generations | Images |
| Video (async jobs) | POST /videos, GET /videos/{id} | Video |
| Text to speech | POST /audio/speech | Speech |
| Speech to text | POST /audio/transcriptions | Transcription |
| Rerank | POST /rerank | Rerank |
| Decisions | POST /decisions | Decisions |
| Model list | GET /models | Models |
| Generation lookup | GET /generation?id= | Generation lookup |
| Balance and key | GET /credits, GET /key | Balance & key info |
How a request flows
- Your client sends a request with
Authorization: Bearer sk-api14-.... - The gateway checks the key, that the model is available and allowed for your key and plan, your rate limit and your balance.
- The request body is forwarded unchanged to the upstream provider.
- The response is returned to you unchanged, streamed byte for byte when
stream: true. - The exact cost of the request is debited from your USD balance. Failed requests are not charged.
A first request
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "openai/gpt-5-mini",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Next steps
- Quickstart, create a key and make a request in a minute.
- Authentication, how keys work and how to keep them safe.
- Errors and Rate limits, what to handle in production.
- Browse all models and their prices on the models page.