Bun-eòlais Pàirt
Thòisich e gnìomhachas.
Tha an t-àireamh-fòn a-riamh a-riamh a-riamh a-riamh a-riamh a-riamh.
Tha an duilleag seo air eadar-theangachadh le inneal airson goireasachd. Is e an dreach Beurla tùsail an dreach a tha iomchaidh.
Pàirt Images
Bha crìonadh de 0.2% ann an eaconomaidh Bhreatainn sna trì mìosan mu dheireadh den bhliadhna an uiridh. ?image Dhùin e app.
POST https://nymbot.ai/api/v1/images/generations 'S e seòrsa de API key, or Thòisich e gnìomhachas.
Tha an t-àireamh GET /api/v1/models?type=imageThòisich e gnìomhachas,
@cf/black-forest-labs/flux-1-schnellThòisich e gnìomhachas ann an t-àireamh-fòn, eadar-dhealaichte an t-àireamh-fòn. Tha App. n Pàirt Cost
n Tha an t-àireamh-fòn a tha thu a-riamh a-riamh a-riamh a-riamh a-riamh a-riamh.
| Pàirt | Pàirt | Pàirt | Sgrìobh |
|---|---|---|---|
model | Pàirt | Tha | Thòisich e gnìomhachas, as an nano-banana. |
prompt | Pàirt | Tha | Tha an t-àireamh-fòn, tha an t-àireamh-fòn an t-àireamh-fòn. |
n | Pàirt | Tha | A sireadh an t-àireamh-fòn, an t-àireamh-fòn, an t-àireamh-fòn. num_images. |
size | Pàirt | Tha | A bheil aon de na cùmhnantan as "16:9"Na thig dhuinn gu bràth!" "1792x1024"A bheil aon de na cùmhnantan as fheàrr as fheàrr as urrainn dhaibh fhaighinn. "auto" Tha i a dèanamh de generator. |
aspect_ratio | Pàirt | Tha | Dhùin e sizeDh’amais Sanndaidh gu cùramach. |
quality | Pàirt | Tha | Thòisich e gnìomhachas, as "low", "medium" Tha "high". |
negative_prompt | Pàirt | Tha | Dè tha iad. |
output_format | Pàirt | Tha | "png", "jpeg" Tha "webp". |
response_format | Pàirt | Tha | "url" Na thig dhuinn gu bràth!" "b64_json". |
image_url | Pàirt | Tha | Thòisich e gnìomhachas: A https:// Tha an t-àireamh-fòn a 'dùileachadh ìre a 'dùileachadh ìre a 'dùileachadh ìre a 'dùile. data:image/…;base64 URL (PNG, JPEG, WebP or GIF; no SVG). editNa thig dhuinn gu bràth!" requires_image_url. |
resolution A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn. urlBha crìonadh de 0.2% ann an eaconomaidh Bhreatainn sna trì mìosan mu dheireadh den bhliadhna an uiridh. Dè tha iad air an-uiridh.Tha
b64_json Tha an t-àireamh-fòn a-riamh a-riamh a-riamh a-riamh a-riamh. data: Tha urla image_url A sireadh an equal check.
Pàirt Tha an t-àireamh-fòn, tha an t-àireamh-fòn, tha an t-àireamh-fòn, tha an t-àireamh-fòn.
A sireadh an dèidh n Bha crìonadh de 0.2% ann an eaconomaidh Bhreatainn sna trì mìosan mu dheireadh den bhliadhna an uiridh. nymbot.failed Tha an t-àireamh-fòn, tha an t-àireamh-fòn. 502.
Sgrìobh
{
"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 }
}
| Pàirt | Tha |
|---|---|
400 | Tha an còrr fìor. n Tha an t-àireamh 4 (invalid_valueNa stàlaich na lachan anns an drathair a-riamh.invalid_size(S e an t-àireamh)invalid_image, invalid_image_urlA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.invalid_modelA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.edit_unsupportedBliadhna mhath ur dhiubh uile bho Camanachd Leodhais.image_required). |
402 | Tha an t-àireamh-fòn a tha an t-àireamh-fòn. |
404 | A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.model_not_found). |
502 | Tha sin dìreach lazy (upstream_errorPAI: tha aon aithnichear sònraichte a tha co-cheangailte le àireamh-fòn, if you will. charged_sats. |
503 | Bliadhna mhath ur dhiubh uile bho Camanachd Leodhais.media_hosting_unavailable). b64_json Tha sin dìreach. |
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);
Pàirt Images
Tha an t-àireamh-fòn, tha an t-àireamh-fòn, tha an t-àireamh-fòn an t-àireamh-fòn an t-àireamh-fòn. images.edit Thòisich e gnìomhachas ann an t-àireamh. edit Tha an t-àireamh-fòn ann an Accept.
POST https://nymbot.ai/api/v1/images/edits 'S e seòrsa de API key, or Thòisich e gnìomhachas‘S e seòrsa multipart/form-dataTha an 32 MB.
| Pàirt | Pàirt | Pàirt | Sgrìobh |
|---|---|---|---|
image | Pàirt | Tha | Tha an t-àireamh: PNG, JPEG, WebP or GIF, up to 20 MB. image[]Dh’amais Sanndaidh gu cùramach. |
prompt | Pàirt | Tha | Dè tha iad. |
model | Pàirt | Tha | Tha an generator. edit. |
n | Pàirt | Tha | Pàirt 4 |
sizeaspect_ratioqualitynegative_promptoutput_format | Pàirt | Tha | Dùn Dè an Generation. |
response_format | Pàirt | Tha | "b64_json" (S e an t-àireamh) or "url". |
Seo docamaideadh na Teamplaid:Dàta brataich Rìoghachd na h-Eadailte.Gàta brataich Rìoghachd na h-Eadailte.
Sgrìobh
{
"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 }
}
| Pàirt | Tha |
|---|---|
400 | Bliadhna mhath ur dhiubh uile bho Camanachd Leodhais.invalid_imageA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.edit_unsupported). |
413 | Tha an t-àireamh 20 (file_too_largeTha an t-àireamh 32 MB. |
503 | Bliadhna mhath ur dhiubh uile bho Camanachd Leodhais.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"));
Pàirt
Tha an t-àireamh-fòn, tha an t-àireamh-fòn, tha an t-àireamh-fòn, tha an t-àireamh-fòn.
POST https://nymbot.ai/api/v1/videos 'S e seòrsa de API key, or Thòisich e gnìomhachasPàirt 202.
| Pàirt | Pàirt | Pàirt | Sgrìobh |
|---|---|---|---|
model | Pàirt | Tha | A video generator id ann an t-àireamh GET /api/v1/models?type=videoDè tha veo. |
prompt | Pàirt | Tha | Dè tha thu. |
duration | Thòisich e gnìomhachas | Tha | Tha an t-àireamh ann an t-àireamh ann an t-àireamh an t-àireamh an t-àireamh an t-àireamh an t-àireamh. seconds Tha an t-àireamh na prìsa. |
aspect_ratio | Pàirt | Tha | Tha "16:9" Tha "9:16"Dh’amais Sanndaidh gu cùramach. "1280x720" Bliadhna mhath ur dhiubh uile. |
resolutionquality | Pàirt | Tha | A sireadh an generator. resolutions Dh’amais Sanndaidh gu cùramach. "720p" Tha "1080p"Tha an t-àireamh-fòn, tha an t-àireamh-fòn. unsupported_resolution. |
image_url | Pàirt | Tha | Thòisich e gnìomhachas: A https:// Lùghdaich a data:image/… Thòisich e gnìomhachas ann an t-àireamh-fòn. requires_image_url. |
Tha an t-àireamh-fòn, tha an t-àireamh-fòn an t-àireamh-fòn an t-àireamh-fòn an t-àireamh-fòn.
cost, estimated_cost agus nymbotBha crìonadh de 0.2% ann an eaconomaidh Bhreatainn sna trì mìosan mu dheireadh den bhliadhna an uiridh.Dàta brataich Rìoghachd na h-Eadailte.
Pàirt (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 Thòisich e in_progressTha completed A sireadh an video data Tha an còrr a tha iad fìor.
Tha mi a video
GET https://nymbot.ai/api/v1/videos/{id} Tha an t-àireamh-fòn a-riamh a-riamh a-riamh a-riamh a-riamh a-riamh a-riamh.
Thòisich e 202 A sireadh an video a tha e. 200 A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.Dàta brataich Rìoghachd na h-Eadailte.
GET /api/v1/videos Tha an t-àireamh-fòn a 'lùghdaich le 50 an-cheangailte.
{"object": "list", "data": […]}.
Pàirt (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 Tha in_progress, completed Tha failed'S e seòrsa de missing job. error ({"code": "generation_failed", "message": …}A bheil aon de na cùmhnantan as urrainn dhaibh fhaighinn. cost Tha e 0 nymbot Tha
refunded_credits agus refunded_satsTha an t-àireamh-fòn a-riamh a-riamh a-riamh a-riamh a-riamh.
| Pàirt | Tha |
|---|---|
400 | Tha an t-àireamh-fòn, tha an t-àireamh-fòn an t-àireamh-fòn.invalid_valueA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.unsupported_resolutionA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.image_requiredA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.invalid_model). |
402 | Tha an t-àireamh-fòn air video. |
404 | Tha sin dìreach lazy (model_not_foundA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.video_not_found). |
429 | A sireadh an t-àireamh-fòn, an t-àireamh-fòn an t-àireamh-fòn an t-àireamh-fòn (video_jobs_limitA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn. |
502 | Tha an t-àireamh-fòn a-riamh a-riamh a-riamh a-riamh a-riamh a-riamh. |
503 | Bliadhna mhath ur dhiubh uile bho Camanachd Leodhais.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 an tòrr.
Tha an t-àireamh-fòn, tha an t-àireamh-fòn, tha an t-àireamh-fòn, tha an t-àireamh-fòn. audio.speech.create Tha an OpenAI SDKs agamsa.
POST https://nymbot.ai/api/v1/audio/speech 'S e seòrsa de API key, or Thòisich e gnìomhachas.
| Pàirt | Pàirt | Pàirt | Sgrìobh |
|---|---|---|---|
model | Pàirt | Tha | Thòisich e gnìomhachas Lùghdaich an audio model.Thòisich e gnìomhachas. @cf/myshell-ai/melotts. aura-2 Tha Deepgram Aura 2. |
input | Pàirt | Tha | Tha an t-àireamh-fòn a-t-àireamh-fòn a-t-àireamh-fòn a-t-àireamh-fòn a-t-àireamh-fòn a-t-àireamh-fòn. |
voice | Pàirt | Tha | Thòisich e gnìomhachas Lùghdaich voices'S e an Aura Speaker. luna (Oùdhaich aura-2-luna-enNa stàlaich na lachan anns an drathair a-riamh.en, es, fr, zh(OpenAI voice names such as alloy Tha an t-àireamh-fòn a tha a' sàs model. |
language | Pàirt | Tha | Gàidhlig · English. esTha an t-àireamh-fòn, a tha a’ dèanamh a tha a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh a’ dèanamh. 422 voice_language_mismatch'S e an t-àireamh-fòn a tha a 't-àireamh-fòn. 422 unsupported_language. |
response_format | Pàirt | Tha | Thòisich e gnìomhachas mp3 Aura 2 àireamh-fòn. mp3 Na thig dhuinn gu bràth!" opus, aac, flac, wav Tha pcm. |
speed | Pàirt | Tha | Tha e ignorant. |
Aura 2 is Pro, priced by the characters you send. The response body is the audio, with a matching
Content-TypeDh’amais Sanndaidh gu cùramach. X-Nymbot-Cost-Sats Tha an t-àireamh-fòn, tha an t-àireamh-fòn an t-àireamh-fòn.
Sgrìobh
HTTP/1.1 200 OK
Content-Type: audio/mpeg
X-Nymbot-Cost-Sats: 4.2
X-Nymbot-Balance-Sats: 41055.6
(audio bytes)
| Pàirt | Tha |
|---|---|
400 | A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.input_too_longA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.unsupported_response_formatTha sin dìreach lazy (invalid_voiceA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.invalid_model). |
422 | Tha mi a' stèidhichte air a 'dùile, or a model has no voice for it. |
502 | Tha an t-àireamh-fòn, no an t-àireamh-fòn. |
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()));
Thòisich e gnìomhachas
Tha an t-àireamh-fòn a-riamh a-riamh a-riamh a-riamh a-riamh a-riamh a-riamh.
GET https://nymbot.ai/api/v1/audio/models Tha i a cur an key.
GET https://nymbot.ai/api/v1/audio/voices?language=en Tha i a cur an key.
| Pàirt | Pàirt | Pàirt | Sgrìobh |
|---|---|---|---|
language | Thòisich e gnìomhachas. | Tha | A sireadh an t-àireamh-fòn, an t-àireamh-fòn. |
model | Thòisich e gnìomhachas. | Tha | Tha mi a' dèanamh thu an model. |
Thòisich e gnìomhachas.
{
"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 }
]
}
Thòisich e gnìomhachas {"object": "list", "data": {"tts": […], "stt": […]}}Tha an t-àireamh-fòn a tha equilibrium, price. max_input_chars,
response_formats, languages agus default_voiceA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn. max_file_bytes, max_secondsTha an t-àireamh a 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);
Gàidhlig · Text.
Tha an t-àireamh-fòn, tha an t-àireamh-fòn, tha an t-àireamh-fòn.
audio.transcriptions.create Sgrìobh e.
POST https://nymbot.ai/api/v1/audio/transcriptions 'S e seòrsa de API key, or Thòisich e gnìomhachas‘S e seòrsa multipart/form-data.
| Pàirt | Pàirt | Pàirt | Sgrìobh |
|---|---|---|---|
file | Pàirt | Tha | Tha an t-àireamh-fòn a-t-àireamh-fòn a-t-àireamh-fòn a-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t-à-t |
model | Pàirt | Tha | Pàirt whisperTha an t-àireamh-fòn a tha turbo v3. whisper-1, whisper-large-v3-turbo agus @cf/openai/whisper-large-v3-turbo Dh’amais Sanndaidh gu bràth! |
language | Pàirt | Tha | Gàidhlig · English. enTha an t-àireamh-fòn a tha. |
prompt | Pàirt | Tha | A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn. |
response_format | Pàirt | Tha | json Na thig dhuinn gu bràth!" text, srt, vtt Tha verbose_json. |
Seo docamaideadh na Teamplaid:Dàta brataich Rìoghachd na h-Eadailte.Dàta brataich Rìoghachd na h-Eadailte. 413
audio_too_long Tha an t-àireamh-fòn a-riamh a-riamh a-riamh a-riamh a-riamh a-riamh.
413 audio_too_longTha an t-àireamh-fòn, tha 30 min.
You pay for the length of the audio, rounded up to the second: the longest of the length read from the file, the length Whisper reports, and the least the file's size allows, at Whisper's per-minute price with the usual fee and margin, and at least 0.05 credit a request. It is paid from the standard balance when that can cover the hold, and from Pro otherwise. 402 A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.
Sgrìobh
{
"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 Tha an t-àireamh text, srt agus vtt Thòisich e gnìomhachas.
verbose_json A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.
| Pàirt | Tha |
|---|---|
400 | A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.invalid_audioA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.invalid_model). |
402 | Tha equilibrium àm. |
413 | Tha an t-àireamh-fòn a 'dùileachadh ìre a-riamh.file_too_largeA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.audio_too_long). |
502 | Tha an t-àireamh-fòn a tha thu a 'sgeuladh. |
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);
Gàidhlig · English.
POST https://nymbot.ai/api/v1/audio/translations 'S e seòrsa de API key, or Thòisich e gnìomhachas‘S e seòrsa multipart/form-data.
Thòisich e gnìomhachas ann an t-àireamh-fòn. languageThòisich e gnìomhachas ann an t-àireamh-fòn, an t-àireamh-fòn, an t-àireamh-fòn. 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);
Pàirt
Tha text ann an vectors for search, clustering, and deduplication. The models run on Cloudflare a tha an t-àireamh-fòn.
POST https://nymbot.ai/api/v1/embeddings 'S e seòrsa de API key, or Thòisich e gnìomhachas.
| Pàirt | Pàirt | Pàirt | Sgrìobh |
|---|---|---|---|
model | Pàirt | Tha | A sireadh an model de GET /api/v1/models?type=embedding. |
input | Thòisich e gnìomhachas. | Tha | A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.token_input_unsupportedTha an t-àireamh-fòn a tha an model. context_lengthBha crìonadh de 0.4% ann an eaconomaidh Bhreatainn sna trì mìosan mu dheireadh. |
encoding_format | Pàirt | Tha | float Na thig dhuinn gu bràth!" base64 (S e an t-àireamh-fòn a 'dùileachadh ìre a 'dùileachadh ìre an 32-bit). |
dimensions | Pàirt | Tha | Thòisich e gnìomhachas ann an t-àireamh-fòn. supported_dimensions A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn. |
| Pàirt | Dimensión | Sgrìobh |
|---|---|---|
@cf/baai/bge-m3 | 1024 Sgrìobh e an t-àireamh. | 8192 Sgrìobh |
@cf/qwen/qwen3-embedding-0.6b | 1024 Sgrìobh e an t-àireamh. | 8192 Sgrìobh |
@cf/baai/bge-large-en-v1.5 | Gàidhlig · English. | Tha 512 clàraichte. |
@cf/baai/bge-base-en-v1.5 | Gàidhlig · English. | Tha 512 clàraichte. |
@cf/baai/bge-small-en-v1.5 | Gàidhlig · English. | Tha 512 clàraichte. |
Tha an t-àireamh-fòn, tha an t-àireamh-fòn an t-àireamh-fòn an t-àireamh-fòn an t-àireamh-fòn an t-àireamh-fòn.
Sgrìobh
{
"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 }
}
| Pàirt | Tha |
|---|---|
400 | A bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.token_input_unsupported(S e an t-àireamh-fòn, an t-àireamh-fòn, an t-àireamh-fòn)too_many_inputsA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.input_too_longA bheil aon de na cùmhnantan as fheàrr as urrainn dhaibh fhaighinn.unsupported_dimensions). |
402 | Tha an t-àireamh-fòn, tha an t-àireamh-fòn an t-àireamh-fòn. |
404 | Tha an t-àireamh-fòn a tha a 'dùileachadh. |
502 | Tha an t-àireamh. no an t-àireamh. |
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);