Last updated:
1. Quickstart
- Log in and verify your email. You get free Meomeo Coin every day you visit, and more for reading blog posts.
- Open Account → API keys and click Create key. Keys start with
mmk_and are shown only once. - Call the API at the base URL
https://meomeotech.com/v1with the headerAuthorization: Bearer mmk_...(orX-API-Key: mmk_...).
Never ship your key in browser or mobile app code. Call the API from your own server.
export MEOMEO_API_KEY="mmk_..."
curl https://meomeotech.com/v1/balance -H "Authorization: Bearer $MEOMEO_API_KEY"
2. Using the OpenAI SDK
The two audio endpoints use OpenAI's exact format, so the official OpenAI SDKs (Python, Node.js and compatible libraries) work as-is: set base_url and your mmk_ key. The model names tts-1 and whisper-1 are accepted. For voice, use a MEOMEO voice id (see section 3).
# pip install openai
from openai import OpenAI
client = OpenAI(api_key="mmk_...", base_url="https://meomeotech.com/v1")
# Văn bản -> giọng nói / Text to speech
with client.audio.speech.with_streaming_response.create(
model="meomeo-tts-1", voice="meomeotech_giang", input="Xin chào, mình là Meo Meo!"
) as r:
r.stream_to_file("xin-chao.mp3")
# Giọng nói -> văn bản / Speech to text
with open("ghi-am.mp3", "rb") as f:
t = client.audio.transcriptions.create(model="meomeo-stt-1", file=f, language="vi")
print(t.text)
// npm i openai
import OpenAI from "openai";
import fs from "node:fs";
const client = new OpenAI({ apiKey: process.env.MEOMEO_API_KEY, baseURL: "https://meomeotech.com/v1" });
const speech = await client.audio.speech.create({ model: "meomeo-tts-1", voice: "meomeotech_vy", input: "Xin chào!" });
fs.writeFileSync("xin-chao.mp3", Buffer.from(await speech.arrayBuffer()));
const t = await client.audio.transcriptions.create({ model: "meomeo-stt-1", file: fs.createReadStream("ghi-am.mp3") });
console.log(t.text);
3. Text to speech: POST /v1/audio/speech
Returns an audio file. Strong Vietnamese (numbers, dates and symbols are normalised automatically) and English.
Choosing a voice: call GET /v1/audio/voices to list nearly 40 voices (gender, region, style), then pass the id field (e.g. meomeotech_hung) as voice. The voice actually used is returned in the x-meomeo-voice header.
| Parameter | Description |
|---|---|
input | Required. Text to read, up to 5,000 characters per call. |
voice | Required. A voice id from GET /v1/audio/voices, e.g. meomeotech_giang. The display name (Giang) also works. OpenAI voice names (alloy, onyx…) exist only so existing code keeps working; each maps to one fixed voice, see openai_aliases. |
model | meomeo-tts-1 (default). tts-1, tts-1-hd and gpt-4o-mini-tts are accepted. |
response_format | mp3 (default) or wav. |
speed | 0.5 to 2.0. Default 1.0. |
# Bước 1: lấy danh sách giọng / Step 1: list voices
curl https://meomeotech.com/v1/audio/voices -H "Authorization: Bearer $MEOMEO_API_KEY"
{
"object": "list",
"data": [
{ "id": "meomeotech_giang", "name": "Giang", "description": "Giang - Nữ miền Bắc dẫn chuyện",
"gender": "female", "region": "north", "openai_aliases": ["alloy"] },
{ "id": "meomeotech_hung", "name": "Hùng", "description": "Hùng - Nam trầm, điềm tĩnh, sâu lắng",
"gender": "male", "region": null, "openai_aliases": ["onyx"] },
{ "id": "meomeotech_vy", "name": "Vy", "description": "Vy - Nữ miền Nam, tin tức",
"gender": "female", "region": "south", "openai_aliases": ["sage"] }
]
}
# Bước 2: gửi văn bản với voice ID vừa chọn / Step 2: synthesize with the chosen voice id
curl https://meomeotech.com/v1/audio/speech \
-H "Authorization: Bearer $MEOMEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "meomeo-tts-1", "voice": "meomeotech_hung", "input": "Chào mừng bạn đến với MEOMEO Tech.", "response_format": "mp3"}' \
--output speech.mp3
4. Speech to text: POST /v1/audio/transcriptions
Send an audio or video file as multipart/form-data. 13 languages, best on Vietnamese.
| Parameter | Description |
|---|---|
file | Required. mp3, wav, m4a, ogg, webm, mp4… |
model | meomeo-stt-1 (default). whisper-1 and gpt-4o-transcribe are accepted. |
language | auto (default), vi, en, zh, ja, ko, fr, de, es, th, ru, id, km, lo. |
response_format | json (default), text, srt, vtt, verbose_json (timed segments). |
If processing takes longer than about 90 seconds, the API returns 202 with a poll_url. Call GET /v1/jobs/{id} every few seconds until you get the result (200). Billing uses the real audio duration in seconds.
curl https://meomeotech.com/v1/audio/transcriptions \
-H "Authorization: Bearer $MEOMEO_API_KEY" \
-F [email protected] \
-F model=meomeo-stt-1 \
-F language=vi \
-F response_format=srt
{
"text": "Xin chào, đây là bài kiểm tra.",
"usage": { "type": "duration", "seconds": 4 }
}
HTTP/1.1 202 Accepted
{
"id": "08853e9eeabd4d94bb886a9515721cdf",
"object": "transcription.job",
"status": "running",
"poll_url": "/v1/jobs/08853e9eeabd4d94bb886a9515721cdf?response_format=srt"
}
5. Vehicle and Vietnamese licence plate recognition
Send the image as upload (file), image_url (public link) or image_base64. Up to 8 MB, JPEG, PNG, WebP or BMP. box coordinates are pixels of the original image.
| Endpoint | Returns |
|---|---|
POST /v1/vision/alpr | Full pipeline: every vehicle (type, colour, position) with its plate text (plate, plate_display, confidence, whether it matches the Vietnamese plate format). |
POST /v1/vision/vehicles/detect | Vehicles only: type (oto car, moto motorbike, truck, bus…), position and colour. |
POST /v1/vision/plates/detect | Plate positions only, no characters. |
POST /v1/vision/plates/ocr | A cropped plate image → its characters. Cheapest if you already crop plates yourself. |
# Ảnh trong máy / Local file
curl https://meomeotech.com/v1/vision/alpr \
-H "Authorization: Bearer $MEOMEO_API_KEY" \
-F [email protected]
# Ảnh từ đường link / Image URL
curl https://meomeotech.com/v1/vision/alpr \
-H "Authorization: Bearer $MEOMEO_API_KEY" \
-F image_url=https://example.com/xe.jpg
{
"object": "vision.result",
"model": "meomeo-alpr-1",
"image": { "width": 1280, "height": 901 },
"results": [
{
"plate": "51F17812",
"plate_display": "51F-178.12",
"score": 0.83,
"valid_format": true,
"box": { "xmin": 412, "ymin": 530, "xmax": 655, "ymax": 610 },
"dscore": 0.67,
"vehicle": { "type": "oto", "score": 0.91, "color": "white",
"box": { "xmin": 120, "ymin": 180, "xmax": 1010, "ymax": 860 } }
}
],
"processing_time": 122,
"usage": { "images": 1, "coins": 4 }
}
import requests
r = requests.post(
"https://meomeotech.com/v1/vision/plates/ocr",
headers={"Authorization": "Bearer mmk_..."},
files={"upload": open("bien-so.jpg", "rb")},
)
print(r.json()["results"][0]["plate_display"])
6. Models, balance and usage
GET /v1/models: list models (OpenAI format).GET /v1/audio/voices: list voices.GET /v1/balance: Meomeo Coin balance, coins about to expire, current prices.GET /v1/usage: billed calls made with this key.
Every successful response carries x-meomeo-coins-charged (coins spent) and x-meomeo-balance (remaining balance) headers.
curl https://meomeotech.com/v1/models -H "Authorization: Bearer $MEOMEO_API_KEY"
curl https://meomeotech.com/v1/balance -H "Authorization: Bearer $MEOMEO_API_KEY"
curl "https://meomeotech.com/v1/usage?limit=20" -H "Authorization: Bearer $MEOMEO_API_KEY"
7. Pricing (Meomeo Coin)
| Service | Price |
|---|---|
| Text to speech | 1 coin / 10 characters (cloned voice ×2) |
| Transcription | 50 coins / minute, billed per second |
| Full plate recognition | 4 coins / image |
| Vehicle detection | 2 coins / image |
| Plate detection | 2 coins / image |
| Plate OCR | 1 coin / image |
The daily login bonus covers about 16,000 characters of speech, or 32 minutes of transcription, or 400 plate images. Prices may change; the current prices are always returned by GET /v1/balance. Coins held for a failed call are returned automatically.
8. Errors
Errors follow OpenAI's format, so existing error handling (e.g. openai.RateLimitError) just works.
| HTTP | type / code | Meaning |
|---|---|---|
| 400 | invalid_request_error | Missing or invalid parameter. param names the field. |
| 401 | invalid_api_key, missing_api_key | Wrong or revoked key, or no key sent. |
| 403 | wallet_frozen, account_blocked | The wallet or account is suspended. |
| 413 | image_too_large | File too large. |
| 429 | insufficient_quota | Not enough Meomeo Coin. |
| 429 | rate_limit_exceeded | Too many requests, or another request is still running. Retry after Retry-After seconds. |
| 503 | service_unavailable, service_paused | Service busy or under maintenance. No coins are charged. |
{
"error": {
"message": "Không đủ Meomeo Coin: cần 50, còn 12.",
"type": "insufficient_quota",
"param": null,
"code": "insufficient_quota"
}
}
9. Limits
- 60 requests per minute per key (header
x-ratelimit-limit-requests). - Speech and transcription: one request at a time per key; send the next one after the previous finishes.
- Up to 5 keys per account.
- Speech: 5,000 characters per call. Images: 8 MB. Audio length follows the current member limit.
Need higher limits for your project? Get in touch via the Terms page. API use is governed by the Meomeo Coin and API section of the Terms of Service.