Getting Started
Quick Start
Get up and running with the Metriqual AI Gateway in under 5 minutes. Route requests to OpenAI, MiniMax, and more through a single unified API.
1. Get Your API Key
Sign up at metriqual.com and create a proxy key from the dashboard. Your proxy key authenticates all requests through the gateway.
2. Install the SDK
Install the official SDK for your language. Both SDKs provide typed methods for every endpoint.
npm
npm install @metriqual/sdkyarn
yarn add @metriqual/sdkpip
pip install metriqual3. Make Your First Request
Initialize the SDK with your proxy key and base URL. Then call any endpoint — chat completions, image generation, audio, video, and more.
Base URL
All API requests go through
https://api.metriqual.comTypeScript
import Metriqual from '@metriqual/sdk';
const mql = new Metriqual({
apiKey: 'your-proxy-key',
baseUrl: 'https://api.metriqual.com'
});
// Chat completion
const response = await mql.chat.completions({
model: 'gpt-4o',
messages: [
{ role: 'user', content: 'Hello!' }
]
});
console.log(response.choices[0].message.content);Python
from metriqual import MQL
client = MQL(api_key="your-proxy-key")
response = client.chat.create(
messages=[{"role": "user", "content": "Hello!"}],
model="gpt-4o",
)
print(response["choices"][0]["message"]["content"])4. Using cURL
You can also make requests directly via cURL or any HTTP client. Use your proxy key as a Bearer token.
cURL
curl https://api.metriqual.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_PROXY_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello!"}
]
}'Supported Models
Metriqual supports a wide range of AI models across multiple modalities and providers.
Chat & Text
| Model | Provider |
|---|---|
gpt-4o | OpenAI |
gpt-4o-mini | OpenAI |
gpt-4.1 | OpenAI |
gpt-4.1-mini | OpenAI |
gpt-4.1-nano | OpenAI |
o4-mini | OpenAI |
MiniMax-M1 | MiniMax |
Image Generation
| Model | Provider |
|---|---|
gpt-image-1 | OpenAI |
dall-e-3 | OpenAI |
dall-e-2 | OpenAI |
image-01 | MiniMax |
Audio & Music
| Model | Provider |
|---|---|
tts-1 | OpenAI |
tts-1-hd | OpenAI |
speech-02-hd | MiniMax |
whisper-1 | OpenAI |
music-01 | MiniMax |
Video
| Model | Provider |
|---|---|
sora | OpenAI |
T2V-01 | MiniMax |
I2V-01 | MiniMax |
S2V-01 | MiniMax |
Available Endpoints
POST
/v1/chat/completionsPOST
/v1/images/generationsPOST
/v1/images/minimax/generationsPOST
/v1/audio/speechPOST
/v1/audio/transcriptionsPOST
/v1/audio/voice-clonePOST
/v1/music/generationsPOST
/v1/videos/generationsPOST
/v1/videos/minimax/generationsPOST
/v1/embeddingsNeed help?
Check the Authentication guide to learn about proxy key scoping, or the SDK Reference for full TypeScript documentation.