Hriatna (knowledge base) a ni Siamtu te
चित्र, ऑडियो और एम्बेडिंग
App at a generator te, leh zawng dilna (search) tura hman tur building blocks te: thlalak, video, sawi chhuah, transcription leh embeddings, mahni balance atanga hman hlawhtlin lohna (billed) hman chin ang zelin a awm a ni.
He page hi awlsam zawk nan machine hmanga lehlin a ni. English original hi a hman dan tur version a ni.
Thlalak siam chhuah
प्रोम्प्टनिंचि Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1-Â1 - ?image ऐप्लिकेशन.
POST https://nymbot.ai/api/v1/images/generations — API key a mamawh a, nge... request tinah Lightning payment hmang.
Ids te chu aṭanga lo chhuak thin a, GET /api/v1/models?type=image. Generator thil dik tak,
@cf/black-forest-labs/flux-1-schnell, credit standard 5 (50 sats) a chhinchir khatah a hman thin a,
generator dang zawng zawng chuan Pro credit an hmang vek a, mahse an hman dan tur leh a man tur an neih hrang hrang a, hetiang hian a ni e app kha. n thlalak man
n a tam zawk hi. Generatorin field a lak loh chu den aiin kal bo ta a ni;
standard generator chuan prompt chauh a hmang.
| Chhungkhar/Hmun | ए. डब्ल्यू. ए. प्रकार | कियत् आवश्यक | Hrilhfiahna |
|---|---|---|---|
model | thlawp | Awle | एक जनरेटर आई. डी., उदा. nano-banana. |
prompt | thlawp | Awle | Eng nge tluk tur? A hmasa character 2,000 chauh hman tur a ni. |
n | पूर्णांक संख्या | Aih lo | 1 at tlanchhuah 4. Default 1. Hei hi hetiang pawhin pawm ve theih a ni: num_images. |
size | thlawp | Aih lo | Aspect ratio ang chi pakhat leh "16:9", अथवा ओपनएआई साइज़ जिवें कि "1792x1024", a nihna chu 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9, 5:4 leh 4:5 te hnai ber ang. "auto" generator-ah a hlet a. |
aspect_ratio | thlawp | Aih lo | Chutiang chiah hi a ni size, anihchuan an pahnihin an thawn chuan a hlawhtling ang. |
quality | thlawp | Aih lo | Generator-specific, entir zawngin, "low", "medium" り "high". |
negative_prompt | thlawp | Aih lo | Eng nge chan loh tur? |
output_format | thlawp | Aih lo | "png", "jpeg" り "webp". |
response_format | thlawp | Aih lo | "url" (a default) emaw "b64_json". |
image_url | thlawp | Aih lo | Thlalak tan lâna: an https:// Link character 4,096 aia rei lo, hming emaw password emaw awm lo, emaw... data:image/…;base64 यू. आर. एल. (पी. एन. जी., जे. पी. ई. जी., वेब पी. या जी. आई. एफ.; एस. वी. जी. नहीं)। edit; mi neitein an ngaihte requires_image_url. |
resolution a hman lo: generator tinin an size an siam rim rim a ni. Hman pawh... url,
thlalak tin hi Blossom host awm public-ah hian upload a ni a, a link i dawn ang (generator tlem tea te hi an link an pe thin a, chu chu hman tlak a ni), link neitu apiangin a hawng thei a, tihpui leh thei tawh lo tur a ni; en rawh API hmu thei tur. Nen
b64_json thlalak chu chhannaah a rawn inlar leh thin a, a thawn chhuah (upload) reng lo bawk. Thlalak
thawn hnuaia... data: URL ah image_url ârआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरोआरो
siamṭhat chuan Blossom-ah hmasa berin a upload a, generator chuan chu a lak thei turin;
thil chhuak lo leh hlawh luh lohna a awm chuan a delete leh dawn nia.
A hnuhai te zingah chuan n thlalak a hlawk lo, a hlawk thei te chauh i hmu ang, chumi chauhin i chawih ang (a hlawk loia providerin i chawih ngei pawh chhungin), leh nymbot.failed engzat nge awm tawh lo tih a hrilh a. An zawng zawngin an hlawhchhein chuan, request kha a lo let leh ang 502.
Chhanna
{
"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 }
}
| पी. टी. यू. स्थिति | कद... |
|---|---|
400 | त्वरित सूचना नहीं; n 1 atanga 4in pawh hnuai lamah (invalid_value); size tha lo (invalid_size) emaw thlalak (invalid_image, invalid_image_url); a model a awm mahse thlalak siamtu a ni lo (invalid_model); siamtu siam thei lo generator tana thlalak (edit_unsupported); a mamawh ber tura thlalak awm loh (image_required). |
402 | Hman tlak tha/sum zat hi thlalak zawng zawng kan duh ang angin a hman thei lo. |
404 | उस नाम का कोई मॉडल नहीं (model_not_found). |
502 | Generator a chhia (upstream_error). जब तक प्रदाता प्रयास के लिए बिल नहीं देता है तब तक कुछ भी शुल्क नहीं लिया जाता है; तब त्रुटि है charged_sats. |
503 | Thlalakte chu tunah host thei lo (media_hosting_unavailable). b64_json a laiaia dam reng a ni. |
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);
Thlalak siam danglamna
I thlalak i upload hmasa chu thupui (prompt) hmangin a thlak thin. Hei hi OpenAI edit endpoint a ni a, OpenAI SDK-te hian images.edit पी. ई. आर. ई. आर. ई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर. आई. आर edit प्रतिमान-सूचीत इसे स्वीकार करें।
POST https://nymbot.ai/api/v1/images/edits — API key a mamawh a, nge... request tinah Lightning payment hmangशरीर है। multipart/form-data, 32 MB thleng.
| Chhungkhar/Hmun | ए. डब्ल्यू. ए. प्रकार | कियत् आवश्यक | Hrilhfiahna |
|---|---|---|---|
image | file | Awle | संपादित करने के लिए चित्रः पी. एन. जी., जे. पी. ई. जी., वेब. पी. या जी. आई. एफ., 20 एम. बी. तक। image[]; awm pahnihna awm tawk chu hman a ni. |
prompt | thlawp | Awle | Eng nge thlak tur an nih. |
model | thlawp | Awle | Generator nei edit. |
n | पूर्णांक संख्या | Aih lo | 1-4. |
sizeaspect_ratioqualitynegative_promptoutput_format | thlawp | Aih lo | Generation chungchangah. |
response_format | thlawp | Aih lo | "b64_json" (यहाँ पूर्वनिर्धारित) अथवा "url". |
आपने जो तस्वीर अपलोड की है उसे एक अच्छी तरह से गठित पी. एन. जी., जे. पी. ई. जी., वेब. पी. या जी. आई. एफ. के रूप में चेक किया जाता है, जिसे इसके वास्तविक प्रकार के रूप में भेजा जाता है, और एक सार्वजनिक ब्लॉसम होस्ट पर रखा जाता है, क्योंकि जनरेटर लिंक के माध्यम से अपने इनपुट प्राप्त करते हैं। इसे सार्वजनिक मान लें। यदि संपादन विफल हो जाता है और कुछ भी शुल्क नहीं लिया जाता है, तो होस्ट की गई प्रतिलिपि फिर से हटा दी जाती है। प्रतिक्रिया पीढ़ी के लिए समान आकार की होती है। मूल्य निर्धारण जनरेटर की कीमत है, जिसमें कुछ जनरेटरों के लिए इनपुट चित्र के लिए शुल्क शामिल होता है।
Chhanna
{
"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 }
}
| पी. टी. यू. स्थिति | कद... |
|---|---|
400 | Thlalak emaw prompt nei lo, thlalak ni lo file (invalid_image), emaw generator siamrem thei lo (edit_unsupported). |
413 | Thlalak hi 20 MB aia a lian zawk (file_too_large), emaw thil zawng zawng hi 32 MB ai a tam zawng emaw. |
503 | Thlalak hi tunah hmunah siam sak thei lo a (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"));
वीडियो
प्रति वीडियो मिनटों का समय लेता है, इसलिए यह पृष्ठभूमि में चलता है। आप इसे जमा करते हैं, तुरंत एक आईडी प्राप्त करते हैं, और यह पूरा होने तक आईडी के बारे में पूछते हैं। प्रत्येक वीडियो जनरेटर प्रो शेष राशि खर्च करता है।
POST https://nymbot.ai/api/v1/videos — API key a mamawh a, nge... request tinah Lightning payment hmangवा. रिटर्न्स 202.
| Chhungkhar/Hmun | ए. डब्ल्यू. ए. प्रकार | कियत् आवश्यक | Hrilhfiahna |
|---|---|---|---|
model | thlawp | Awle | Video generator ID aṭanga... GET /api/v1/models?type=video, entir nawng veo. |
prompt | thlawp | Awle | Eng nge thil thleng tur an nih? |
duration | number nge string | Aih lo | Second hnuai thlengin, 0 aia a greater leh 60 thlengin. A hman tur chu thil siamtu (generators) leh thil thlan loh hman tur te hi a ni a; dangte chu an hman lai thil hman tur ang ang ngei an hmang dawn a, chu chu eng nge ni ang le? seconds प्रतिक्रिये में विल और मूल्य का पालन होता है। |
aspect_ratio | thlawp | Aih lo | Entir nawng "16:9" り "9:16"एक आकार, जैसे कि "1280x720" â निकटतम अनुपात बन जाता है। |
resolutionquality | thlawp | Aih lo | जनरेटरों में से एक resolutions model list-ah, entirnan "720p" り "1080p". Man a siam a ni. A dang zawng zawng chu hian an hnawl ang unsupported_resolution. |
image_url | thlawp | Aih lo | Thlalak tan lâna: an https:// लिंक या ए data:image/… URL, Blossom host hmun awmkhawm zawkah hmasa berin upload tur a ni. Generators-in a mamawh a, requires_image_url. |
Generator, resolution leh length atanga i submit hian man chu a inrem tawh thin a, chuvangin provider-in thil thawk tur chu a pawm rualin i Pro balance atangin a charge ang a, hetiang hian a lang ang:
cost, estimated_cost leh nymbotThawkpui chuan hna chu a phut chuan, sum chu tha ngai lo ang. Render a hnuah a thiam lo a nih chuan, emaw clip siam tawh chu khawl (store) thei lo a nih chuan, thawkpuia sum a chhut loh chuan, a sum chu hmasaberah (refund) a awtomatica a thawn leh ang. Sa hnuai pakhat hnuah render la kal reng si a nih chuan, a chan a ni ang a, a sum pawh a la awm reng ang, chumi chhan chu thawkpuian render a lak hnuah sum a chhut tawh a ni avangin. Refund in hian credit a thawn leh thei a, mahse key's spend count a tih tlem thei lo ang.
जवाब (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 a tan chuan in_progress, emaw completed video hman tawh
awt reng a data generator chuan a hman hma lo deuh chuan a rawn thleng nghal a.
Video enawh checking ka nei mek a
GET https://nymbot.ai/api/v1/videos/{id} â-इसे जमा करने वाले nym से संबंधित एक कुंजी की की चाहिए। एक कुंजी जो अपने कैप तक पहुंच गई है वह अभी भी जाँच कर सकती है।
A chhanna a nei 202 video siam lai leh 200 इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ. इ.
GET /api/v1/videos key-a hna hmasa 50 tarlang rawh...
{"object": "list", "data": […]}.
Chhanna (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 ni in_progress, completed り failed........................................................................................................................................................................................................ error ({"code": "generation_failed", "message": …}); यदि यह वापस कर दिया गया था, cost पी. एल. ई. 0 है और nymbot ए. डब्ल्यू. ए. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे. चे.
refunded_credits leh refunded_sats. Video siam chhuah tawh chu Blossom host public-ah a awm a, thlalak siam chhuah te ang bawkin.
| पी. टी. यू. स्थिति | कद... |
|---|---|
400 | Prompt awm lo; hun 0 aṭanga 60 inkar lohna (invalid_value); जनरेटर प्रदान नहीं करता एक रिज़ॉल्यूशन (unsupported_resolution); जनरेटर के लिए कोई तस्वीर नहीं है जिसे एक की आवश्यकता है (image_required); video siamtu ni lo model (invalid_model). |
402 | Pro balance hian video kha a cover thei lo. |
404 | (ऐसे कोई जनरेटर नहीं)model_not_foundउर्फ), या आपके एन. आई. एम. के लिए उस आई. डी. द्वारा कोई नौकरी नहीं, या यह 24 घंटे से अधिक पुरानी है (video_not_found). |
429 | युवर एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए. एन. आइ. एम.-ए.video_jobs_limit). An hnenah en la, pakhat an tawp veleh tam zawk submit rawh. |
502 | Thawkbawltu chuan hna kha a phur lo. Thil hrang hrang pawh chawm a ngai lo, thlenhtu chuan a chawmtir loh chuan. |
503 | वीडियोगुड़िक अभी डिलीवर या संग्रहीत नहीं की जा सकतीं (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);
Text atawng thliamna
Text a chhiar chhuak a, audio file ngei a rawn sem leh thin a, link a ni lo. OpenAI speech endpoint a ni,
chuvangin audio.speech.create ओपनएआई एस. डी. के.-क.-क.-क.-क.-क.-क.-क.-क.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख.-ख
POST https://nymbot.ai/api/v1/audio/speech — API key a mamawh a, nge... request tinah Lightning payment hmang.
| Chhungkhar/Hmun | ए. डब्ल्यू. ए. प्रकार | कियत् आवश्यक | Hrilhfiahna |
|---|---|---|---|
model | thlawp | Aih lo | भाषण मॉडल ए. एफ. ए. आर. ऑडियो मॉडल सूची. Thil tlangpui: aw tlangpui, @cf/myshell-ai/melotts. aura-2 दीपग्राम औरा 2 है। |
input | thlawp | Awle | पठनीय टेक्स्टः मानक आवाज के लिए 800 वर्णों तक, औरा 2 के लिए 2,000। |
voice | thlawp | Aih lo | A hming hriatna (voice id) atanga... awm thei hmelte listवाहः एक ऑरा वक्ता जैसे कि luna (अथवा aura-2-luna-en), emaw MeloTTS tawng (en, es, fr, zh). OpenAI aw hmingte entirnanin alloy lak a ni a, model awhmang ngei a pe. |
language | thlawp | Aih lo | भाषा कोड, उदा. es. Aw thiltlang hmawm lovin, chu tawng ngeia aw a thlang thin a. Tawng dang sawi thei aw hi chuan a rawn hmel hma leh thin. 422 voice_language_mismatch, और एक भाषा मॉडल के लिए कोई आवाज नहीं है 422 unsupported_language. |
response_format | thlawp | Aih lo | स्टैंडर्ड वॉयस रिटर्न mp3 chauh. Aura 2 a lo thlen leh. mp3 (a tlangpui), opus, aac, flac, wav り pcm. |
speed | number | Aih lo | Lo pawm leh ngaihtuah loh. |
मानक आवाज़ के लिए ऐप की तरह एक अनुरोध के लिए एक फ्लैट 3 मानक क्रेडिट (30 सैट्स) खर्च होता है। ऑरा 2 प्रो है, जिसकी कीमत आप भेजे गए वर्णों के अनुसार है। प्रतिक्रिया निकाय ऑडियो है, जिसमें एक मिलान है।
Content-Typeहो; लागत में है X-Nymbot-Cost-Sats स्पीच हेडर। यदि स्पीच मॉडल असफल रहता है, तो कुछ भी चार्ज नहीं किया जाता है।
Chhanna
HTTP/1.1 200 OK
Content-Type: audio/mpeg
X-Nymbot-Cost-Sats: 4.2
X-Nymbot-Balance-Sats: 41055.6
(audio bytes)
| पी. टी. यू. स्थिति | कद... |
|---|---|
400 | कोई इनपुट नहीं; मॉडल की सीमा से अधिक इनपुट (input_too_long); एक प्रारूप मॉडल उत्पन्न नहीं कर सकता (unsupported_response_format); एक अज्ञात आवाज (invalid_voice); एक मॉडल जो एक भाषण मॉडल नहीं है (invalid_model). |
422 | "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" |
502 | स्पीच माडल विफल.................................................................................................................................................................................................... |
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()));
Audio model leh aw rim danglamte
भाषण मॉडल और आवाज, या प्रतिलेखन मॉडल चुनने के लिए दो सार्वजनिक सूचियाँ। 41 औरा 2 अंग्रेजी बोलने वाले और चार मेलोटीटीएस भाषाएँ हैं।
GET https://nymbot.ai/api/v1/audio/models — key a ngai lo.
GET https://nymbot.ai/api/v1/audio/voices?language=en — key a ngai lo.
| Chhungkhar/Hmun | ए. डब्ल्यू. ए. प्रकार | कियत् आवश्यक | Hrilhfiahna |
|---|---|---|---|
language | string (zawhna) | Aih lo | He tawng tan hian aw chauh an nei. |
model | string (zawhna) | Aih lo | He model tan hi awmzia (voices) chauh a ni. |
जवाब दें (आवाज़ें)
{
"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 }
]
}
प्रतिमान जवाब सूचीबद्ध {"object": "list", "data": {"tts": […], "stt": […]}}प्रत्येक भाषण मॉडल अपना संतुलन, कीमत,, बताता है। max_input_chars,
response_formats, languages leh default_voice; transcription model chuan a hming dangte a hrilhfiah a, max_file_bytes, max_seconds,
format leh minute tin man.
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);
Thawngthu atanga thu ziakna
वायस्पर के साथ रिकॉर्डिंग को टेक्स्ट में बदल देता है। यह ओपनएआई का प्रतिलेखन अंतिम बिंदु है, इसलिए
audio.transcriptions.create a thawk e.
POST https://nymbot.ai/api/v1/audio/transcriptions — API key a mamawh a, nge... request tinah Lightning payment hmangशरीर है। multipart/form-data.
| Chhungkhar/Hmun | ए. डब्ल्यू. ए. प्रकार | कियत् आवश्यक | Hrilhfiahna |
|---|---|---|---|
file | file | Awle | Recording chu, bytes 256 atanga 25 MB thleng leh minute 30 thlengin: WAV, WebM, MP4 emaw M4A, Ogg emaw Opus, MP3 leh Whisper chhiar thei dangte a ni. MP3 leh format dang, a rei hriat theih loh hma leh a hmaa hriat theih loh te chu 1.8 MB chauh an ni thei ang. |
model | thlawp | Aih lo | पूर्वनिर्धारित whisper, chu Whisper Large v3 Turbo a ni. whisper-1, whisper-large-v3-turbo leh @cf/openai/whisper-large-v3-turbo ओं का अर्थ एक ही है। |
language | thlawp | Aih lo | Tuna sawi tawng, entirnan enA hmannawh loh chuan hmuh theih ang. |
prompt | thlawp | Aih lo | प्रतीक्षित शब्द या वर्तनी, जैसे नाम। केवल प्रथम 1,000 वर्णों का उपयोग किया जाता है। |
response_format | thlawp | Aih lo | json (a tlangpui), text, srt, vtt り verbose_json. |
डब्ल्यू. ए. वी., वेब. एम., एम. पी. 4., ओ. जी. जी., ओ. ए. वी., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम. पी. 4., एम 413
audio_too_long thil engmah a kal hmaa. Recording hluah hluah a zau deuh chuan WAV, WebM, MP4 emaw Ogg hmangin rawn thawn rawh.
Whisper chuan minute 30 aia zau a sawi chuan, request chu heti hian hrem a ni:
413 audio_too_long, chuvangin Whisper a la chhun, minute 30 te chu
man a ni.
Audio thluk (length) zat aiin i huchahtiam ang a, second khat chhung pawh ni se, a thluk aia inrei ber hi i huchahtiam ang a: file atanga chhiar chhuah, Whisper hriat chhuah, leh file size hmun hmasa ber hi a ni ang, Whisper minute hnawm khat man leh hman tlak fee leh margin nen, leh request khat atanga credit 0.05 aia rei lo thei lo turin; standard balance aia huchahtiam a nih chuan standard balance atanga huchahtiam a ni ang, Pro atanga huchahtiam a nih chuan Pro atanga huchahtiam a ni ang; a 402 balance tinhmelhmang hman tur a hriat tir thin. App ah chuan, voice message transcribe hi a free thei a; API ah chuan erawh a chawlhbawl reng thin. Whisper a hlawhchham chuan, sum zah tham ngai mah se, a chawlhbawl heihthei lo vang.
Chhanna
{
"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 text tluang tak a thawn, srt leh vtt subtitles te rawn thawn leh, leh
verbose_json hte lang, hun hman zat leh hun hman segment te a thlunzawm a. JSON ni lo pahnihna leh pathumna tan chuan, a man chu header-ah a awm a ni.
| पी. टी. यू. स्थिति | कद... |
|---|---|
400 | File awm lo, audio hman tlak a awm loh file (invalid_audio), एक अज्ञात प्रारूप, या एक मॉडल जो प्रतिलेखन मॉडल नहीं है (invalid_model). |
402 | An hmun zawng zawngin an veng thei lo ang. |
413 | File hi 25 MB aia a lian zawk (file_too_large) या 30 मिनट से अधिक की रिकॉर्डिंग, या, ऐसे प्रारूप में जिसकी लंबाई को आगे पढ़ा नहीं जा सकता है, 1.8 एमबी से अधिक (audio_too_long). |
502 | व्हिस्पर ऑडियो प्रोसेस नहीं कर सका। कुछ भी चार्ज नहीं है। |
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);
भाषण का अंग्रेज़ी में अनुवाद करना
POST https://nymbot.ai/api/v1/audio/translations — API key a mamawh a, nge... request tinah Lightning payment hmangशरीर है। multipart/form-data.
Transcription ang ang, a hnuaia tarlan (fields) leh hnuai ami hi thleng lo ringawtin, language, limit leh
man, mahse tawng hman ang pawh ni se, text chu English-in a rawn chhuak leh thin. OpenAI SDK-te chuan
chutiang chuan an hmang a 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);
Embeddings
Text hi thil zawng zawng hmuh theih nan, thuk deuh zawng leh inzawmna siam nan leh inpumpui leh inthup hriat nan vector-ah a thlak a. Model-te hi Cloudflare-ah an chaltlang a, balance dik tak an hmang a ni.
POST https://nymbot.ai/api/v1/embeddings — API key a mamawh a, nge... request tinah Lightning payment hmang.
| Chhungkhar/Hmun | ए. डब्ल्यू. ए. प्रकार | कियत् आवश्यक | Hrilhfiahna |
|---|---|---|---|
model | thlawp | Awle | Embedding model atanga... GET /api/v1/models?type=embedding. |
input | string emaw string array | Awle | Text thlunzawm tur, string 100 emaw aia tam lo, a awm loh loh. Token array te chu phal loh a ni (token_input_unsupported). Input tin hi model hman turah a inrem tur a ni context_length, token khat khat chu byte seng hnih vel angah anmual. |
encoding_format | thlawp | Aih lo | float (a default) emaw base64 (little-endian 32-bit floats). |
dimensions | पूर्णांक संख्या | Aih lo | Model size hmaia, emaw model hman tur... supported_dimensions chutuk pakhat; vector chu a hnuai deuh hlek leh normal a nih nan tih siam a ni. Chuti loh chuan thil dang zawng zawng hi rejeh an ni. |
| Model | आयाम | Hriatna hman tur |
|---|---|---|
@cf/baai/bge-m3 | 1024, tawng tam takin | 8,192 token |
@cf/qwen/qwen3-embedding-0.6b | 1024, tawng tam takin | 8,192 token |
@cf/baai/bge-large-en-v1.5 | 1024, Mizo | 512 tokens |
@cf/baai/bge-base-en-v1.5 | 768, Mizo | 512 tokens |
@cf/baai/bge-small-en-v1.5 | 384, English | 512 tokens |
प्रतिमान सूची सच्चाई का स्रोत है जिसके लिए उपलब्ध हैं और उनकी कीमत क्या है; गूगल का एम्बेडिंगगेमा, अनुरोध पर छोटे वैक्टर के साथ, वहाँ भी दिखाई देता है जब कैटलॉग की कीमत होती है। एम्बेडिंग्स प्रति इनपुट टोकन पर मीटर किए जाते हैं, और 0.05-credit न्यूनतम प्रत्येक अनुरोध पर लागू होता है, प्रत्येक इनपुट पर नहीं, इसलिए एक अनुरोध में कई ग्रंथों को बैच करना उन्हें एक बार में एक भेजने की तुलना में बहुत सस्ता है।
Chhanna
{
"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 }
}
| पी. टी. यू. स्थिति | कद... |
|---|---|
400 | Input awm lo emaw, a awm lo emaw; token arrays (token_input_unsupported); 100 से अधिक निवेश (too_many_inputs); model siam thei aiin input a zau zawk (input_too_long); model hian pe thei lo zawng size a nih avangin (unsupported_dimensions). |
402 | मानक संतुलन बहुत कम है। एम्बेडिंग्स कभी भी प्रो संतुलन का उपयोग नहीं करते हैं। |
404 | Hming vangin embedding model a awm lo. |
502 | Model chuan a sual a. Thil engmah pawh charge lo. |
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);