FOR DEVELOPERS

MEOMEO Tech API documentation

Vietnamese text-to-speech, transcription, vehicle and Vietnamese licence plate recognition through one API. OpenAI-style structure: just change base_url. Paid with Meomeo Coin you earn for free every day.

  1. Log in and verify your email. You get free Meomeo Coin every day you visit, and more for reading blog posts.
  2. Open Account → API keys and click Create key. Keys start with mmk_ and are shown only once.
  3. Call the API at the base URL https://meomeotech.com/v1 with the header Authorization: Bearer mmk_... (or X-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"

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);

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.

ParameterDescription
inputRequired. Text to read, up to 5,000 characters per call.
voiceRequired. 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.
modelmeomeo-tts-1 (default). tts-1, tts-1-hd and gpt-4o-mini-tts are accepted.
response_formatmp3 (default) or wav.
speed0.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

Send an audio or video file as multipart/form-data. 13 languages, best on Vietnamese.

ParameterDescription
fileRequired. mp3, wav, m4a, ogg, webm, mp4…
modelmeomeo-stt-1 (default). whisper-1 and gpt-4o-transcribe are accepted.
languageauto (default), vi, en, zh, ja, ko, fr, de, es, th, ru, id, km, lo.
response_formatjson (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"
}

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.

EndpointReturns
POST /v1/vision/alprFull 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/detectVehicles only: type (oto car, moto motorbike, truck, bus…), position and colour.
POST /v1/vision/plates/detectPlate positions only, no characters.
POST /v1/vision/plates/ocrA 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"])
  • 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"
ServicePrice
Text to speech1 coin / 10 characters (cloned voice ×2)
Transcription50 coins / minute, billed per second
Full plate recognition4 coins / image
Vehicle detection2 coins / image
Plate detection2 coins / image
Plate OCR1 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.

Errors follow OpenAI's format, so existing error handling (e.g. openai.RateLimitError) just works.

HTTPtype / codeMeaning
400invalid_request_errorMissing or invalid parameter. param names the field.
401invalid_api_key, missing_api_keyWrong or revoked key, or no key sent.
403wallet_frozen, account_blockedThe wallet or account is suspended.
413image_too_largeFile too large.
429insufficient_quotaNot enough Meomeo Coin.
429rate_limit_exceededToo many requests, or another request is still running. Retry after Retry-After seconds.
503service_unavailable, service_pausedService 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"
  }
}
  • 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.