Motheo wa tsebo Moka
Pitsi, Pitsi, Pitsi
The generators from the app, and the building blocks for search: photos, video, speech, transcription and embeddings, each billed per use from your balance.
Letlakala le le fetoletšwe ka motšhene bakeng sa go ba bonolo. Seisemane sa mathomo ke phetolelo yeo e šomago.
Moka Moka
Go fihla disentimetara tše 4 ka diphoofolo tše 1 ka diphoofolo tše 1 ka diphoofolo tše 1 ka diphoofolo tše 1 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ka diphoofolo tše 2 ?image O nama
POST https://nymbot.ai/api/v1/images/generations — Kgaolo ya API, goba Phatlalatšo ya Mmasepala.
Nako ya go GET /api/v1/models?type=image© 2019 metle
@cf/black-forest-labs/flux-1-schnell, o tee, o tee, o tee, o tee, o tee, o tee, o tee, o tee, o tee Moka. n Moka
n Phatlalatšo ya diphoofolo yeo e tšerego sephetho ka fase ga dikgopelo tše dingwe; Phatlalatšo ya diphoofolo yeo e tšerego sephetho ka fase ga dikgopelo tše dingwe.
| Moka | Moka | Moka | Moka |
|---|---|---|---|
model | Moka | Ee | ID generator, bjalo ka nano-banana. |
prompt | Moka | Ee | Phatlalatšo a go swana le mehuta ya mehuta ya mehuta ya diphedi. |
n | Moka | Moka | 1 to 4. Default 1. Ka moka num_images. |
size | Moka | Moka | Di na le ditsebe tše di "16:9", goba o na le dimetara tše "1792x1024", e na le methalo ya 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 5:4 le 4:5. "auto" Phatlalatšo go tšwa generator. |
aspect_ratio | Moka | Moka | Sebaka sa size, le boima ba le boima ba le boima ba le boima ba |
quality | Moka | Moka | Generator-specific, bjalo ka "low", "medium" Moka "high". |
negative_prompt | Moka | Moka | Phatlalatšo |
output_format | Moka | Moka | "png", "jpeg" Moka "webp". |
response_format | Moka | Moka | "url" (Letlakala la go fihla) goba "b64_json". |
image_url | Moka | Moka | Tlhalošo ya Mohlala https:// mehuta ya mehuta ya mehuta ya 4 096 ya mehuta ya diphedi ka tšhoga ye e itšego wa username goba password, goba data:image/…;base64 URL (PNG, JPEG, WebP goba GIF; se ne SVG). editTlhalošo ya Mohlala requires_image_url. |
resolution geo se se ne e le ne ya go hwetšwa: tše dingwe e na le generator url, tsebaga diphoofolo ke go khubedu Blossom le ka go ba le link (gapetla a go hwetšwa go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go tsebaga go ts PhatlalatšoMoka
b64_json Phatlalatšo e na le diphoofolo tše dingwe e na le diphoofolo tše dingwe data: Moka image_url Di na le ditsebe tše dingwe
Moka Di na le boima bja batswadi le boima bja batswadi bja batswadi bja batswadi bja batswadi bja batswadi bja batswadi.
Ke se bonolo n images fails, you get the ones that worked, are charged only for those (plus any the provider billed despite failing), and nymbot.failed Di hwetšwa ka moka ga dikgwedi tša go swana le dikgwedi tša go tšweletša. 502.
Moka
{
"created": 1790726400,
"model": "nano-banana",
"cost": 0.2126,
"data": [
{
"url": "https://blossom.example/5c0e4b7d3a91f2e8...c4.png",
"content_type": "image/png"
}
],
"nymbot": { "balance": "pro", "charged_credits": 1.817, "charged_sats": 181.7, "balance_credits": 410.608, "balance_sats": 41060.8 }
}
| Moka | Wo ile |
|---|---|
400 | Tlhalošo ya Mohlala n © 2019 Baswareinvalid_value(E hwetšwago gona)invalid_size) le boima (invalid_image, invalid_image_url); model yeo e hwetšwa, marapo ye e hwetšwa (invalid_model); picture for a generator which can't edit (edit_unsupported); no picture for one who needs it (image_required). |
402 | Di hwetšwago gona |
404 | Tlhalošo ya Mohlala (model_not_found). |
502 | (Sehlora se sehlora le sehlora)upstream_errorMaemo a na le a nko a nko a nko a a nko a a nko a a nko a a nko a a nko a a nko a a nko a a nko a a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a nko a charged_sats. |
503 | Tlhalošo ya Mohlala (media_hosting_unavailable). b64_json WAGO |
cURL
curl https://nymbot.ai/api/v1/images/generations \
-H "Authorization: Bearer $NYMBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "nano-banana",
"prompt": "A lighthouse at dusk, oil painting",
"size": "16:9"
}'
Python
import os
import requests
res = requests.post(
"https://nymbot.ai/api/v1/images/generations",
headers={"Authorization": "Bearer " + os.environ["NYMBOT_API_KEY"]},
json={"model": "nano-banana", "prompt": "A lighthouse at dusk, oil painting", "size": "16:9"},
)
res.raise_for_status()
print(res.json()["data"][0]["url"])
JavaScript
const res = await fetch("https://nymbot.ai/api/v1/images/generations", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.NYMBOT_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ model: "nano-banana", prompt: "A lighthouse at dusk, oil painting", size: "16:9" }),
});
const body = await res.json();
console.log(body.data[0].url);
Moka Moka
Phatlalatšo ya diphoofolo yeo e tšerego sephetho sa go bulega. Tše dingwe di phatlalatšo go ya ka OpenAI SDK. images.edit di hwetšwago. Only Pro generators with edit e na le nkgetheng ye e le nkgetheng.
POST https://nymbot.ai/api/v1/images/edits — Kgaolo ya API, goba Phatlalatšo ya MmasepalaMoka Moka multipart/form-databis 32 MB
| Moka | Moka | Moka | Moka |
|---|---|---|---|
image | Moka | Ee | PNG, JPEG, WebP goba GIF, dimetara tše 20 image[]Tlhalošo ya mohuta wo mohuta wo mohuta wo mohuta wo. |
prompt | Moka | Ee | Phatlalatšo |
model | Moka | Ee | Phatlalatšo edit. |
n | Moka | Moka | © 2019 metle |
sizeaspect_ratioqualitynegative_promptoutput_format | Moka | Moka | Di hwetšwago gona |
response_format | Moka | Moka | "b64_json" (Letšatšikgwedi ke) goba "url". |
PNG, JPEG, WebP goba GIF, e na le diphoofolo tše ntšhi ke diphoofolo tše ntšhi ke diphoofolo tše ntšhi ke diphoofolo tše ntšhi ke diphoofolo tše ntšhi ke diphoofolo tše ntšhi ke diphoofolo tše ntši.
Moka
{
"created": 1790726460,
"model": "nano-banana",
"cost": 0.2126,
"data": [{ "b64_json": "iVBORw0KGgoAAAANSUhEUgAA..." }],
"nymbot": { "balance": "pro", "charged_credits": 1.817, "charged_sats": 181.7, "balance_credits": 408.791, "balance_sats": 40879.1 }
}
| Moka | Wo ile |
|---|---|
400 | Tlhalošo ya tšhireletšo ya tšhireletšo goba tšhireletšo ya tšhireletšo ya tšhireletšo (invalid_image), goba a generator yeo e hwetšwago (edit_unsupported). |
413 | Phatlalatšo ya diphoofolo tše 20 (file_too_large), goba go thoma mohuta wo 32 MB. |
503 | Tlhalošo ya Mohlala (media_hosting_unavailable). |
cURL
curl https://nymbot.ai/api/v1/images/edits \
-H "Authorization: Bearer $NYMBOT_API_KEY" \
-F model=nano-banana \
-F [email protected] \
-F prompt="Make it a snowy evening"
Python
import base64, os
from openai import OpenAI
client = OpenAI(base_url="https://nymbot.ai/api/v1", api_key=os.environ["NYMBOT_API_KEY"])
with open("photo.png", "rb") as f:
result = client.images.edit(model="nano-banana", image=f, prompt="Make it a snowy evening")
with open("edited.png", "wb") as out:
out.write(base64.b64decode(result.data[0].b64_json))
JavaScript
import fs from "node:fs";
import { writeFile } from "node:fs/promises";
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://nymbot.ai/api/v1", apiKey: process.env.NYMBOT_API_KEY });
const result = await client.images.edit({
model: "nano-banana",
image: fs.createReadStream("photo.png"),
prompt: "Make it a snowy evening",
});
await writeFile("edited.png", Buffer.from(result.data[0].b64_json, "base64"));
Moka
Di na le ditsebe tše pedi tše pedi tše pedi tše pedi tše pedi tše pedi tše pedi.
POST https://nymbot.ai/api/v1/videos — Kgaolo ya API, goba Phatlalatšo ya MmasepalaMoka 202.
| Moka | Moka | Moka | Moka |
|---|---|---|---|
model | Moka | Ee | Phatlalatšo ya setšhaba GET /api/v1/models?type=videoDi hwetšwago veo. |
prompt | Moka | Ee | Phatlalatšo |
duration | Phatlalatšo | Moka | Di na le diphoofolo tše kgolo, tše kgolo tše kgolo tše kgolo tše kgolo tše kgolo. seconds Di na le tokelo ya tšona le tšona ya tšona. |
aspect_ratio | Moka | Moka | Sebaka sa "16:9" Moka "9:16"• Dimamale: "1280x720" Di hwetšwago gona |
resolutionquality | Moka | Moka | Di na le generator resolutions Phatlalatšo ya setšhaba "720p" Moka "1080p"Di hwetšwago gona unsupported_resolution. |
image_url | Moka | Moka | Tlhalošo ya Mohlala https:// Wago a data:image/… URL, le boima le boima le boima le boima le boima le boima le boima requires_image_url. |
Di hwetšwago gona, di na le hwetšwago gona, di na le hwetšwago gona
cost, estimated_cost le nymbot. Kgaolo ya tšhireletšo ya go swana le karolwana ya tšhireletšo, e na le karolwana ya tšhireletšo yeo e tšereletšo. Kgaolo ya tšhireletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo, e tšereletšo yeo e tšereletšo yeo e tšereletšo yeo e tšereletšo.
Pitsi (202)
{
"id": "vid_3e9a51c07b2f4d86e0a1c4f2",
"object": "video",
"model": "veo",
"status": "in_progress",
"created": 1790726400,
"seconds": 8,
"resolution": "1080p",
"estimated_cost": 3.18,
"expires_at": 1790812800,
"cost": 3.18,
"nymbot": { "balance": "pro", "charged_credits": 31.8, "charged_sats": 3180, "balance_credits": 378.808, "balance_sats": 37880.8 }
}
status Moka in_progressWago completed Phatlalatšo data ge o na le ge o na le o na le
Phatlalatšo
GET https://nymbot.ai/api/v1/videos/{id} — kudu ke ye e itšego ke ye nym le nngwe. Ke ye e hwetšwa ke ye e hwetšwa ke ye e hwetšwa.
Lieta 202 Tshepedišo ya setšhaba 200 tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi ya tshepedi.
GET /api/v1/videos tshepedišo ya go swana le 50 ya mešomo goba
{"object": "list", "data": […]}.
Pitsi (200)
{
"id": "vid_3e9a51c07b2f4d86e0a1c4f2",
"object": "video",
"model": "veo",
"status": "completed",
"created": 1790726400,
"seconds": 8,
"resolution": "1080p",
"estimated_cost": 3.18,
"expires_at": 1790812800,
"completed_at": 1790726590,
"data": { "url": "https://blossom.example/9b41d0c2e7a3f658...1e.mp4", "content_type": "video/mp4" },
"cost": 3.18,
"nymbot": { "balance": "pro", "charged_credits": 31.8, "charged_sats": 3180 }
}
status Moka in_progress, completed Moka failedMoka Moka Moka Moka error ({"code": "generation_failed", "message": …}a) Melao a tšhoga, cost Wago 0 nymbot Moka
refunded_credits le refunded_sats. Phatlalatšo ya video e na le boima bja botšhotšhisi bja botšhotšhisi bja botšhotšhisi bja botšhisi.
| Moka | Wo ile |
|---|---|
400 | Tlhalošo ya Mohlala (invalid_value); diphoofolo tša go swana le generator (unsupported_resolution); no picture for a generator which needs one ( (image_required); modela ke ye nngwe ya video (invalid_model). |
402 | Phatlalatšo ya Pro yeo e tšerego sephetho ka video. |
404 | Tlhalošo ya Mohlala (model_not_found), goba di hwetšwago gona, goba di hwetšwago gona, goba di hwetšwago gona (video_not_found). |
429 | Nako ya go gola ka 10 video rendering (video_jobs_limit). Tshekki e na le mmele go ya ka methapo ya diphedi. |
502 | © 2019 metle |
503 | Tlhalošo ya Mohlala (media_hosting_unavailable, service_unavailable). |
cURL
curl https://nymbot.ai/api/v1/videos \
-H "Authorization: Bearer $NYMBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "veo", "prompt": "Waves rolling onto a beach at sunrise", "duration": 8, "aspect_ratio": "16:9"}'
curl https://nymbot.ai/api/v1/videos/vid_3e9a51c07b2f4d86 \
-H "Authorization: Bearer $NYMBOT_API_KEY"
Python
import os, time
import requests
headers = {"Authorization": "Bearer " + os.environ["NYMBOT_API_KEY"]}
job = requests.post(
"https://nymbot.ai/api/v1/videos",
headers=headers,
json={"model": "veo", "prompt": "Waves rolling onto a beach at sunrise", "duration": 8, "aspect_ratio": "16:9"},
).json()
while True:
time.sleep(8)
status = requests.get("https://nymbot.ai/api/v1/videos/" + job["id"], headers=headers).json()
if status["status"] in ("completed", "failed"):
break
print(status["data"]["url"] if status["status"] == "completed" else status["error"])
JavaScript
const headers = {
"Authorization": "Bearer " + process.env.NYMBOT_API_KEY,
"Content-Type": "application/json",
};
const job = await (await fetch("https://nymbot.ai/api/v1/videos", {
method: "POST",
headers,
body: JSON.stringify({ model: "veo", prompt: "Waves rolling onto a beach at sunrise", duration: 8, aspect_ratio: "16:9" }),
})).json();
let status;
do {
await new Promise((r) => setTimeout(r, 8000));
status = await (await fetch("https://nymbot.ai/api/v1/videos/" + job.id, { headers })).json();
} while (status.status !== "completed" && status.status !== "failed");
console.log(status.status === "completed" ? status.data.url : status.error);
Phatlalatšo
Phatlalatšo ya Mmasepala e beela e beela e beela e beela e beela e beela e beela e beela e beela. audio.speech.create Di hwetšwago gona
POST https://nymbot.ai/api/v1/audio/speech — Kgaolo ya API, goba Phatlalatšo ya Mmasepala.
| Moka | Moka | Moka | Moka |
|---|---|---|---|
model | Moka | Moka | Phatlalatšo ya Mohlala Phatlalatšo. Default: The Standard Voice, @cf/myshell-ai/melotts. aura-2 Dipalopalo tša bohlokwa |
input | Moka | Ee | Tšhireletšo yeo e tšerego: go feta ka 800 ya diphoofolo, 2,000 ya diphoofolo ya Aura 2. |
voice | Moka | Moka | ID ya lešoka WAGO: aura speaker bjalo ka luna Moka aura-2-luna-enTlhalošo ya Mohlala (en, es, fr, zh). OpenAI speech name as alloy ge e na le mmele, e na le mmele wa model. |
language | Moka | Moka | Melao le Melao esSehlora se sehlora sehlora sehlora sehlora sehlora sehlora sehlora sehlora sehlora 422 voice_language_mismatch, le sehlong le sehlong la sehlong la sehlong la sehlong la sehlong la sehlong la sehlong la sehlong la sehlong la sehlong la sehlong la sehlong la sehlong la 422 unsupported_language. |
response_format | Moka | Moka | Moka Moka Moka Moka mp3 Moka 2 Moka 2 mp3 (Tšhireletšo ya Mmasepala) opus, aac, flac, wav Moka pcm. |
speed | Moka | Moka | Di hwetšwago gona |
The standard voice costs a flat 3 standard credits (30 sats) a requests, as in the app. Aura 2 is Pro, priced by the characters you send. The response body is the audio, with a matching
Content-TypeTlhalošo ya Mohlala X-Nymbot-Cost-Sats header. Kgaolo ya modela ye nkhothatšwa, e na le nkhothatšwa ye ntsho.
Moka
HTTP/1.1 200 OK
Content-Type: audio/mpeg
X-Nymbot-Cost-Sats: 4.2
X-Nymbot-Balance-Sats: 41055.6
(audio bytes)
| Moka | Wo ile |
|---|---|
400 | Tlhalošo ya Mohlala (input_too_long); a format a model a a ka a nkgetheng le (unsupported_response_format(E hwetšwago gona)invalid_voice); model yeo e tšhoga ye e šomišwa (invalid_model). |
422 | Sehlora se sehlora se sehlora sehlora sehlora sehlora sehlora sehlora |
502 | Sebaka sa hlogo ye e itšego. Ke ye e itšego. |
cURL
curl https://nymbot.ai/api/v1/audio/speech \
-H "Authorization: Bearer $NYMBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "aura-2", "voice": "luna", "input": "Your invoice has been paid."}' \
--output speech.mp3
Python
import os
from openai import OpenAI
client = OpenAI(base_url="https://nymbot.ai/api/v1", api_key=os.environ["NYMBOT_API_KEY"])
audio = client.audio.speech.create(
model="aura-2",
voice="luna",
input="Your invoice has been paid.",
)
audio.write_to_file("speech.mp3")
JavaScript
import { writeFile } from "node:fs/promises";
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://nymbot.ai/api/v1", apiKey: process.env.NYMBOT_API_KEY });
const audio = await client.audio.speech.create({
model: "aura-2",
voice: "luna",
input: "Your invoice has been paid.",
});
await writeFile("speech.mp3", Buffer.from(await audio.arrayBuffer()));
Phatlalatšo
Di hwetšwago mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mangwe.
GET https://nymbot.ai/api/v1/audio/models Tlhalošo ya Tšhireletšo
GET https://nymbot.ai/api/v1/audio/voices?language=en Tlhalošo ya Tšhireletšo
| Moka | Moka | Moka | Moka |
|---|---|---|---|
language | Moka (Moka) | Moka | Di hwetšwago gona |
model | Moka (Moka) | Moka | Di hwetšwago gona |
Moka (Moka)
{
"object": "list",
"data": [
{ "id": "luna", "name": "Luna", "provider": "deepgram", "model_id": "aura-2", "models": ["aura-2"], "language": "en", "description": "Aura 2 English voice", "gender": "female", "preview_url": null },
{ "id": "en", "name": "MeloTTS English", "provider": "myshell", "model_id": "@cf/myshell-ai/melotts", "models": ["@cf/myshell-ai/melotts", "melotts"], "language": "en", "description": "English (MeloTTS)", "gender": null, "preview_url": null }
]
}
MOLOKO MOLOKO {"object": "list", "data": {"tts": […], "stt": […]}}. Tšhireletšo ya modela ya tšhireletšo ba tshwanetse, max_input_chars,
response_formats, languages le default_voice; transcription model ba tshwanetse, max_file_bytes, max_seconds, formats le tsena per minute.
cURL
curl https://nymbot.ai/api/v1/audio/models
curl "https://nymbot.ai/api/v1/audio/voices?language=en"
Python
import requests
print(requests.get("https://nymbot.ai/api/v1/audio/models").json())
for voice in requests.get("https://nymbot.ai/api/v1/audio/voices", params={"language": "en"}).json()["data"]:
print(voice["id"], voice["model_id"])
JavaScript
console.log(await (await fetch("https://nymbot.ai/api/v1/audio/models")).json());
const voices = await (await fetch("https://nymbot.ai/api/v1/audio/voices?language=en")).json();
for (const v of voices.data) console.log(v.id, v.model_id);
Phatlalatšo
Phatlalatšo ya Melao ya Melao ya Melao ya Melao ya Melao ya Melao
audio.transcriptions.create Moka
POST https://nymbot.ai/api/v1/audio/transcriptions — Kgaolo ya API, goba Phatlalatšo ya MmasepalaMoka Moka multipart/form-data.
| Moka | Moka | Moka | Moka |
|---|---|---|---|
file | Moka | Ee | Phatlalatšo, go ya ka 256 baiti go 25 MB le go ya ka 30 min: WAV, WebM, MP4 goba M4A, Ogg goba Opus, MP3 le tše nnyane di phatlalatšo a phatlalatšo a phatlalatšo. |
model | Moka | Moka | Moka whisper, le Whisper Large v3 Turbo. whisper-1, whisper-large-v3-turbo le @cf/openai/whisper-large-v3-turbo Phatlalatšo |
language | Moka | Moka | Tšhireletšo ya Mmasepala, goba enDi hwetšwago gona |
prompt | Moka | Moka | Tšhireletšo yeo e tšhireletšo yeo e tšerego sephetho ka moka, e na le diphoofolo tše dingwe e na le diphoofolo tše dingwe e na le diphoofolo tše dingwe. |
response_format | Moka | Moka | json (Tšhireletšo ya Mmasepala) text, srt, vtt Moka verbose_json. |
Phathi ye WAV, WebM, MP4 le Ogg faile, e tšerego e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe e tšerego tše dingwe. 413
audio_too_long ga tšhoga ye e šomišitšwego. Tsepo ya tšhoga ye e šomišitšwego ke WAV, WebM, MP4 goba Ogg. Se tšhoga ye e šomišitšwego se tšhoga ye e šomišitšwego ka tšhoga ye 30
413 audio_too_long, le tshepedi e tshepedi, 30 ya dikgwedi.
Go na le boima bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja botelele bja 402 Di hwetšwago mabaka a mangwe a mangwe a mangwe a mangwe a mangwe a mangwe a mangwe a mangwe a mangwe a mangwe.
Moka
{
"text": "Your invoice has been paid.",
"usage": { "type": "duration", "seconds": 3 },
"nymbot": { "balance": "standard", "charged_credits": 0.05, "charged_sats": 0.5, "balance_credits": 120.35, "balance_sats": 1203.5 }
}
text Tšhireletšo ya Tšhireletšo srt le vtt subtitles, le
verbose_json tshepedišo ya mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo mohuta wo.
| Moka | Wo ile |
|---|---|
400 | Phatlalatšo ya setšhaba, Phatlalatšo ya setšhabainvalid_audio), ye nkgethilwe ke ye nkgethilwe ke ye nkgethilwe ke nkgethilwe ke nkgethilwe ke (invalid_model). |
402 | Tlhalošo ya Mohlala |
413 | Phatlalatšo ya ditulo tše 25 (file_too_large) kgotsa ya diphoofolo tše 30 kgotsa, kgotsa ya diphoofolo tše 1.8 kgotsa, kgotsa ya diphoofolo tše 1.8 kgotsa (audio_too_long). |
502 | Phatlalatšo a nkgethilwego ke a nkgethilwego ke a nkgethilwego ke a nkgethilwego ke a nkgethilwego ke a nkgethilwego ke a nkgethilwego ke a nkgethilwego ke a nkgethilwego ke a nkgethilwego ke a |
cURL
curl https://nymbot.ai/api/v1/audio/transcriptions \
-H "Authorization: Bearer $NYMBOT_API_KEY" \
-F [email protected] \
-F model=whisper \
-F response_format=json
Python
import os
from openai import OpenAI
client = OpenAI(base_url="https://nymbot.ai/api/v1", api_key=os.environ["NYMBOT_API_KEY"])
with open("memo.m4a", "rb") as f:
transcript = client.audio.transcriptions.create(model="whisper", file=f)
print(transcript.text)
JavaScript
import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://nymbot.ai/api/v1", apiKey: process.env.NYMBOT_API_KEY });
const transcript = await client.audio.transcriptions.create({
model: "whisper",
file: fs.createReadStream("memo.m4a"),
});
console.log(transcript.text);
Phatlalatšo ya Melao
POST https://nymbot.ai/api/v1/audio/translations — Kgaolo ya API, goba Phatlalatšo ya MmasepalaMoka Moka multipart/form-data.
Phatlalatšo ya Mmasepala, Phatlalatšo ya Mmasepala languageTšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo ya Tšhireletšo audio.translations.create.
cURL
curl https://nymbot.ai/api/v1/audio/translations \
-H "Authorization: Bearer $NYMBOT_API_KEY" \
-F [email protected] \
-F model=whisper
Python
import os
from openai import OpenAI
client = OpenAI(base_url="https://nymbot.ai/api/v1", api_key=os.environ["NYMBOT_API_KEY"])
with open("nota.m4a", "rb") as f:
translation = client.audio.translations.create(model="whisper", file=f)
print(translation.text)
JavaScript
import fs from "node:fs";
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://nymbot.ai/api/v1", apiKey: process.env.NYMBOT_API_KEY });
const translation = await client.audio.translations.create({
model: "whisper",
file: fs.createReadStream("nota.m4a"),
});
console.log(translation.text);
Moka
Phatlalatšo ya setšhaba kgotsa wa setšhaba kgotsa wa setšhaba kgotsa wa setšhaba kgotsa wa setšhaba kgotsa wa setšhaba kgotsa wa setšhaba kgotsa wa setšhaba kgotsa wa setšhaba kgotsa wa setšhaba.
POST https://nymbot.ai/api/v1/embeddings — Kgaolo ya API, goba Phatlalatšo ya Mmasepala.
| Moka | Moka | Moka | Moka |
|---|---|---|---|
model | Moka | Ee | Modeli ya Dipalopalo GET /api/v1/models?type=embedding. |
input | string goba array of strings | Ee | Tšhireletšo ya tšhireletšo ya tšhireletšo ya tšhireletšo ya tšhireletšo ya tšhireletšo ya tšhireletšo ya tšhireletšo (token_input_unsupported) E na le diphoofolo tša go swana le model. context_length, dikgwedi tše 4 bait a token. |
encoding_format | Moka | Moka | float (Letlakala la go fihla) goba base64 (Little-endian 32-bit floats) |
dimensions | Moka | Moka | model ya mešomo, goba supported_dimensions Di na le dipoo tše nnyane, tše nnyane tše nnyane, tše nnyane tše nnyane. |
| WAGO | Moka | Moka |
|---|---|---|
@cf/baai/bge-m3 | © 2019 metle | © 2019 metle |
@cf/qwen/qwen3-embedding-0.6b | © 2019 metle | © 2019 metle |
@cf/baai/bge-large-en-v1.5 | © 2019 metle | © 2019 metle |
@cf/baai/bge-base-en-v1.5 | 768 M. M. | © 2019 metle |
@cf/baai/bge-small-en-v1.5 | 384 M. M. | © 2019 metle |
Di hwetšwago mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka a mabaka.
Moka
{
"object": "list",
"data": [
{ "object": "embedding", "index": 0, "embedding": [0.0213, -0.0487, 0.0112] }
],
"model": "@cf/baai/bge-m3",
"usage": { "prompt_tokens": 9, "total_tokens": 9 },
"nymbot": { "balance": "standard", "charged_credits": 0.05, "charged_sats": 0.5, "balance_credits": 1204.35, "balance_sats": 12043.5 }
}
| Moka | Wo ile |
|---|---|
400 | Tlhalošo ya Mohlala (token_input_unsupported); tšea disentimetara tše 100 (too_many_inputs); a nkgetheng ya dikgopelo tše di ukangwego (input_too_long); dimetara tše dingwe e hwetšwago gona (unsupported_dimensions). |
402 | Phatlalatšo ya setšhaba ye e tlwaelegilego. |
404 | Tlhalošo ya Mohlakanelwa ya Mohlakanelwa ya Mohlakanelwa |
502 | Model di be di phatlaladitšwe ke. Ke ye ntsho. |
cURL
curl https://nymbot.ai/api/v1/embeddings \
-H "Authorization: Bearer $NYMBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "@cf/baai/bge-m3", "input": ["Lightning invoices expire.", "Invoices on Lightning have a time limit."]}'
Python
import os
from openai import OpenAI
client = OpenAI(base_url="https://nymbot.ai/api/v1", api_key=os.environ["NYMBOT_API_KEY"])
result = client.embeddings.create(
model="@cf/baai/bge-m3",
input=["Lightning invoices expire.", "Invoices on Lightning have a time limit."],
)
print(len(result.data), len(result.data[0].embedding))
JavaScript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://nymbot.ai/api/v1", apiKey: process.env.NYMBOT_API_KEY });
const result = await client.embeddings.create({
model: "@cf/baai/bge-m3",
input: ["Lightning invoices expire.", "Invoices on Lightning have a time limit."],
});
console.log(result.data.length, result.data[0].embedding.length);