تخطَّ إلى المحتوى الرئيسي

سجّل عبر Google واحصل على ١٠٠ رصيد مجاني.

واجهة REST · الإصدار 1

ابنِ على واجهة AIVORA البرمجية

كل ما يفعله الاستوديو متاح بطلب HTTP واحد: ولّد الصور والفيديوهات، وتابع تقدّمها، ونزّل النتائج، وأدِر رصيدك ومفاتيحك. ترسل JSON وتستقبل JSON.

مقدمة

الواجهة البرمجية هي REST عادية عبر HTTPS بنصوص JSON، وهي نفسها التي يستخدمها استوديو الويب. فكل ما تفعله هناك يمكنك فعله من الشيفرة.

العنوان الأساسي

https://aivoraai.space/api/v1

كل مسار في هذه الصفحة نسبي إليه، ورقم الإصدار جزء من المسار.

الصيغة

JSON إرسالًا واستقبالًا بترميز UTF-8. الأوقات أعداد صحيحة بالمللي ثانية منذ بداية عصر Unix، والمعرّفات نصوص ببادئة مثل gen_.

المصادقة

Authorization: Bearer avk_…

أنشئ مفتاح API من حسابك وأرسله بصيغة Bearer.

البدء السريع

ولّد أول صورة لك في أربع خطوات. تستخدم الأمثلة النموذج fal-nano-banana-pro، وسعر الصورة به ٧٥ رصيدًا على هذا الخادم.

يحتاج cURL إلى jq لقراءة JSON، ويحتاج JavaScript إلى Node.js بإصدار 20 أو أحدث، ويحتاج Python إلى حزمة requests.

  1. أنشئ مفتاحًا وجهّز البيئة

    أنشئ مفتاح API من الحساب ← مفاتيح API وانسخه، فهو يظهر مرة واحدة فقط. احفظه في متغير بيئة اسمه AIVORA_API_KEY ولا تكتبه داخل الشيفرة أبدًا.

    يحتاج الحساب أيضًا إلى رصيد لينشئ: اشترِ حزمة أو باقة من صفحة الأسعار.

    cURL
    export AIVORA_API_KEY="avk_..."   # the key you just createdORIGIN="https://aivoraai.space"BASE_URL="$ORIGIN/api/v1"
  2. أنشئ عملية توليد

    يردّ POST /generations فورًا بالحالة queued. يُخصم السعر الآن ويُسترد كاملًا إن فشلت العملية. ويجعل Idempotency-Key إعادة المحاولة آمنة.

    cURL
    RESPONSE=$(curl -s -X POST "$BASE_URL/generations" \  -H "Authorization: Bearer $AIVORA_API_KEY" \  -H "Content-Type: application/json" \  -H "Idempotency-Key: quickstart-$(date +%s)-$RANDOM" \  -d '{    "tool": "text-to-image",    "modelId": "fal-nano-banana-pro",    "prompt": "A lighthouse at dawn, soft fog, cinematic",    "params": { "aspectRatio": "16:9" }  }')echo "$RESPONSE" | jq .ID=$(echo "$RESPONSE" | jq -r '.data.id')
  3. انتظر النتيجة

    تعمل عمليات التوليد في الخلفية. اسأل GET /generations/{id} كل ثانيتين تقريبًا حتى تصبح الحالة succeeded أو failed أو canceled. لا توجد خطافات ويب (webhooks).

    cURL
    while true; do  STATUS=$(curl -s "$BASE_URL/generations/$ID" \    -H "Authorization: Bearer $AIVORA_API_KEY" | jq -r '.data.status')  echo "status: $STATUS"  case "$STATUS" in queued|processing) sleep 2 ;; *) break ;; esacdone
  4. نزّل الملفات

    لكل عنصر في outputs حقل url. اجلبه بالمفتاح نفسه لتحفظ الصورة أو الفيديو.

    cURL
    curl -s "$BASE_URL/generations/$ID" -H "Authorization: Bearer $AIVORA_API_KEY" \  | jq -r '.data.outputs[].url' \  | while read -r URL; do      curl -sS -OJ -H "Authorization: Bearer $AIVORA_API_KEY" "$ORIGIN$URL?download=1"    donels -l aivora-*

المصادقة

أرسل مفتاح API في ترويسة Authorization مع كل طلب: Authorization: Bearer avk_…. يعمل المفتاح باسم حسابك، فكل ما يولّده يُخصم من رصيدك.

جلسة المتصفح فقط

إدارة المفاتيح، وتغيير كلمة المرور، وتسجيل الخروج، وحذف الحساب تتطلب أن تكون مسجّل الدخول في الموقع. يُرفض المفتاح فيها بالخطأ 403 forbidden، فلا يستطيع مفتاح مسرّب أن ينشئ مفاتيح أخرى أو يقفل الحساب في وجهك.

حافظ على مفاتيحك

  • استدعِ الواجهة من خادمك، لا من صفحة ويب ولا من تطبيق يستطيع الآخرون فحصه.
  • استخدم مفتاحًا لكل تطبيق، لتلغي أحدها دون أن تعطّل الباقي.
  • ألغِ المفتاح فور أن تشك في تسرّبه: يتوقف عن العمل في الحال، وإنشاء بديل لا يكلّفك شيئًا.
  • المفتاح الناقص أو الخاطئ أو الملغى يعني الخطأ 401 unauthorized.

دورة حياة التوليد

تمرّ عملية التوليد بعدة حالات ولا تعود إلى الوراء أبدًا. والحالات النهائية ثلاث: succeeded، failed، canceled.

حالات عملية التوليدتبدأ عملية التوليد بالحالة queued. يلتقطها عامل فتصبح processing. ومن processing تنتهي إلى succeeded حين تُخزَّن النتائج، أو failed عند حدوث خطأ أو انتهاء المهلة، أو canceled بناءً على طلبك. ويمكن إلغاء العملية وهي في حالة queued أيضًا.queuedprocessingsucceededfailedcanceledpicked upoutputs storederrorcancelcancel
حالات عملية التوليد
الحالةالنوعمعناها
queuedجاريةقُبلت وخُصم سعرها، وتنتظر عاملًا متاحًا.
processingجاريةقيد التوليد. يوضّح progress مقدار ما أُنجز.
succeededنهائيةاكتملت. تجد الملفات في outputs.
failedنهائيةلم تنجح. يبيّن error السبب، وقد أُعيد الرصيد إليك.
canceledنهائيةأُوقفت بناءً على طلب. وقد أُعيد الرصيد إليك.

المتابعة بالاستعلام

  • اسأل GET /generations/{id} كل ثانيتين تقريبًا للصور، وكل 5 ثوانٍ للفيديوهات.
  • توقف عند أول حالة نهائية، ولا تسأل أسرع من مرة في الثانية.
  • لمتابعة عدة عمليات معًا اطلب GET /generations?ids=a,b,c: طلب واحد لما يصل إلى 50 عملية.
  • ألغِ العملية بـ POST /generations/{id}/cancel ما دامت queued أو processing.

لا توجد خطافات ويب

لا يستدعي AIVORA خادمك. الاستعلام الدوري هو الطريقة الوحيدة لمعرفة انتهاء العملية، وهذا يُبقي التكامل بسيطًا ويعمل خلف أي جدار ناري.

والعملية التي تطول أكثر من اللازم تفشل بالسبب timeout ويُعاد رصيدها، فتنتهي حلقة الاستعلام دائمًا.

الطلبات والاستجابات

تردّ كل نقطة نهاية بـ JSON على إحدى ثلاث صور. اعتمد على حالة HTTP، وعند الفشل على error.code.

كائن واحد
{  "data": {    "id": "usr_01k8m3x9q2v7c5n4h6j0t1r8wd",    "email": "[email protected]",    "name": "Layla",    "role": "user",    "locale": "ar",    "creditBalance": 49,    "createdAt": 1759913600000,    "emailVerified": true,    "emailVerificationRequired": true,    "pendingBonusCredits": 0,    "hasPassword": true  }}
قائمة
{  "data": [    {      "id": "led_01k8m3x9q2v7c5n4h6j0t1r8wg",      "delta": -1,      "balanceAfter": 49,      "reason": "generation",      "generationId": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",      "createdAt": 1760000000000    }  ],  "nextCursor": "eyJ…"}
فشل
{  "error": {    "code": "not_found",    "message": "Generation not found"  }}

الترقيم إلى صفحات

القوائم مرتبة من الأحدث إلى الأقدم وتأتي على صفحات. أرسل limit (من 1 إلى 100) لتحدد حجم الصفحة.

إذا كانت قيمة nextCursor نصًا فأرسلها في cursor لتحصل على الصفحة التالية، وإذا كانت null فقد وصلت إلى النهاية. تعامل مع المؤشرات على أنها قيم معتمة.

القيم

  • الأوقات أعداد صحيحة: مللي ثانية منذ بداية عصر Unix.
  • المعرّفات نصوص ببادئة: gen_، ast_، key_، usr_.
  • أرسل Content-Type: application/json مع أي جسم طلب. الحقول غير المعروفة في الجسم تُرفض.
  • قد تظهر حقول جديدة في الاستجابات في أي وقت، فتجاهل ما لا تعرفه.
  • تحمل كل استجابة ترويسة X-Request-Id. اذكرها حين تطلب المساعدة.

الأخطاء

للطلب الفاشل حالة 4xx أو 5xx وجسم خطأ. code ثابت ومخصص لشيفرتك، أما message فنص إنجليزي للسجلات. وعند validation_failed يسرد details.issues كل المشكلات دفعة واحدة.

خطأ في التحقق
{  "error": {    "code": "validation_failed",    "message": "Request validation failed",    "details": {      "issues": [        {          "path": "params.count",          "message": "count must be at most 4 for this model"        }      ]    }  }}
رموز الأخطاء
الحالةالرمزالمعنى
400 Bad Requestbad_request

The request could not be understood or cannot be done in the current state, for example a malformed JSON body or a range that cannot be served. details.reason says more for some errors.

422 Unprocessable Contentvalidation_failed

A field is missing or not allowed. details.issues lists every problem with the field path and a message.

401 Unauthorizedunauthorized

No valid credentials: the key is wrong, revoked or missing, or the session has ended.

403 Forbiddenforbidden

The credentials are valid but not allowed here: an API key on a browser-only endpoint, a missing or foreign Origin on a cookie-authenticated change, or a disabled account.

404 Not Foundnot_found

The resource does not exist, or belongs to someone else (the two look the same on purpose).

409 Conflictconflict

The request clashes with the current state: the model is not configured on this deployment, an Idempotency-Key was reused for a different request, the generation is already finished, or the key limit is reached.

413 Content Too Largepayload_too_large

The request body or the uploaded file is larger than the limit of the endpoint.

415 Unsupported Media Typeunsupported_media_type

The content type is not supported: send JSON, PNG, JPEG or WebP for a picture upload, and MP3 or WAV for a recording.

422 Unprocessable Contentmoderation_blocked

The prompt goes against the content policy. Nothing was charged. details.category names the rule.

402 Payment Requiredinsufficient_credits

The balance does not cover the cost. details holds required and balance.

429 Too Many Requestsrate_limited

Too many requests. Wait details.retryAfterSec seconds (also the Retry-After header), then try again.

429 Too Many Requeststoo_many_active

You already have the maximum number of generations running at once. Wait for one to finish or cancel one.

403 Forbiddensignup_disabled

New registrations are closed on this deployment.

403 Forbiddenemail_not_verified

The deployment requires a confirmed email address before generating. Ask for a new link with POST /auth/verify-email/request.

422 Unprocessable Contentemail_not_allowed

Throwaway email domains cannot register.

429 Too Many Requestssignup_limit

Too many accounts were created from the same network today. Try again tomorrow.

409 Conflictpassword_not_set

The account signs in with Google and has no password yet, so there is none to check or change. Request a reset email (POST /auth/password/forgot) to set one first.

502 Bad Gatewayprovider_error

The generation provider could not be reached or answered with an error. Nothing was charged. Retry later.

503 Service Unavailableservice_busy

The platform is deliberately refusing new paid generations for a while (cost protection). Retry after details.retryAfterSec. With details.reason over_daily_budget the request alone costs more than the whole daily budget: there is no retryAfterSec and no Retry-After, because waiting never helps; send a smaller request (shorter text, fewer pictures or a shorter clip). Nothing was charged.

500 internal

Something went wrong on our side. The X-Request-Id header identifies the request.

تكرار الطلب بأمان

حين يتركك خطأ في الشبكة غير متأكد من إنشاء عملية التوليد، فقد تؤدي إعادة المحاولة إلى خصم السعر مرتين. ويجعل مفتاح التكرار (idempotency key) إعادة المحاولة آمنة.

أرسل ترويسة Idempotency-Key مع POST /generations: من 1 إلى 128 حرف ASCII مرئيًا، والأفضل أن يكون UUID.

  • المفتاح نفسه مع الطلب نفسه يُرجع العملية الأصلية بالحالة 200 والترويسة Idempotent-Replayed: true، ولا يُخصم شيء مرة أخرى.
  • المفتاح نفسه مع طلب مختلف يعطي الخطأ 409 conflict (قيمة details.reason هي idempotency_key_reused).
  • المفاتيح تخص حسابك. استخدم مفتاحًا جديدًا لكل طلب تريد تنفيذه مرة واحدة.
cURL
curl -X POST "$BASE_URL/generations" \  -H "Idempotency-Key: 0b7f3c52-8f3e-4a52-9a5e-3c1d6f5c9e10" \  …

حدود الطلبات

لكل نقطة نهاية حصة من الطلبات في كل نافذة زمنية. تُحتسب الطلبات المسجَّلة على الحساب، وغير المسجَّلة على عنوان IP. وكل صف أدناه حصة مستقلة، فاستهلاك إحداها لا يمسّ الأخرى.

تخبرك الاستجابات الناجحة بوضعك الحالي:

  • X-RateLimit-Limit: عدد الطلبات المسموح به في النافذة
  • X-RateLimit-Remaining: ما تبقى من الطلبات
  • X-RateLimit-Reset: وقت انتهاء النافذة بثواني Unix

إذا تجاوزت الحصة وصلك الخطأ 429 rate_limited مع Retry-After (بالثواني) والحقل details.retryAfterSec. انتظر هذه المدة ثم أعد المحاولة، ولا تلحّ بالطلبات.

استجابة 429
{  "error": {    "code": "rate_limited",    "message": "Too many requests",    "details": {      "retryAfterSec": 12    }  }}
حصص الطلبات
الحصةنقاط النهاية
30 requests per minute, per account
600 requests per minute, per account
60 requests per minute, per account
240 requests per minute, per account, or per IP address when signed out
20 requests per minute, per account
20 requests per minute, per account
1200 requests per minute, per account, or per IP address when signed out
20 requests per minute, per account
60 requests per minute, per IP address
60 requests per minute, per account
20 requests per minute, per account
5 requests per hour, per account
5 requests per minute, per account
3 requests per day, per account
60 requests per minute, per account
10 requests per minute, per account
5 requests per hour, per IP address
10 requests per minute, per IP address
30 requests per minute, per IP address
10 requests per minute, per account
120 requests per minute, per account
10 requests per hour, per IP address
10 requests per hour, per IP address
6 requests per hour, per account
30 requests per hour, per IP address
60 requests per minute, per IP address

الرصيد والأسعار

تُدفع عمليات التوليد من الرصيد. لكل نموذج سعر، ويعرضه GET /models في الحقل pricing.

كيف يُحسب السعر

  • الصور: سعر الصورة × params.count.
  • الفيديوهات: سعر الثانية بالدقة المختارة × params.durationSec.
  • يُقرَّب الناتج إلى الأعلى ولا يقل عن رصيد واحد.

مثال: الصورة الواحدة بالنموذج fal-nano-banana-pro سعرها ٧٥ رصيدًا.

الخصم والاسترداد

  • يُخصم السعر عند قبول الطلب (الحقل cost في العملية).
  • العملية الفاشلة أو الملغاة يُسترد سعرها كاملًا. وإن عاد عدد أقل من النتائج المطلوبة فيُسترد الجزء الناقص.
  • نقص الرصيد يعني الخطأ 402 insufficient_credits ومعه الحقل details.required والحقل details.balance، ولا يُخصم شيء.
  • اعرف رصيدك بـ GET /account وسجله بـ GET /account/ledger.

مرجع نقاط النهاية

كل نقطة نهاية، مولَّدة من مستند OpenAPI ومجمّعة بحسب الموضوع. تبيّن كل واحدة منها من يستطيع استدعاءها، وحصتها، وما يُرسَل إليها، وما يعود منها، والأخطاء التي قد تردّ بها.

مرجع نقاط النهاية وثيقة تقنية، ويبقى بالإنجليزية في كل اللغات. أما العناوين والتسميات فتتبع لغتك.

Generations

Create images, videos, sound and transcripts from text, a picture or a recording, then follow each one until it is done.

post/generations
مفتاح API أو جلسة30 requests per minute, per account

Create a generation

Starts a generation and returns it at once with status queued. The cost is charged when the request is accepted and refunded in full if the generation fails or is canceled; a result with fewer outputs than params.count refunds the missing share.

The work runs in the background. Poll GET /generations/{id} until status is succeeded, failed or canceled, then download each outputs[].url. There are no webhooks.

Send an Idempotency-Key header to make retries safe: repeating the same request with the same key returns the original generation (200, Idempotent-Replayed: true) and charges nothing more. The same key with a different request is a 409.

By default an account can have 4 generations in progress at once (too_many_active); the limit is details.limit.

For a picture or a clip the prompt and the negative prompt have no length limit. The only bound is the size of the body: 2 MiB by default (the deployment can change it with MAX_GENERATION_BODY_MB), answered with 413 payload_too_large before anything is read. A model's provider may still refuse a very long prompt (limits.providerPromptChars of GET /models says how long it documents); the generation then ends as failed with error.code prompt_too_long, and the cost is refunded in full.

Sound and transcripts use the same endpoint. text-to-speech reads prompt as the script, sound-effects and music as the description of the sound; speech-to-speech and speech-to-text work on a recording you uploaded (inputAssetId, an audio asset) and take no prompt (send none, or an empty one).

A sound model prices by a unit (pricing.type is metered) and the price is known before anything is charged: the characters of the script, the seconds you choose with params.durationSec, or the length of your recording as the server measured it, never as the file claims. limits.maxInputChars and limits.maxInputSec are enforced: a longer text is a 422 out_of_range and a longer recording is refused, in both cases before anything is charged.

params.voiceId must be one of the curated voices of the model’s provider (a 422 not_allowed otherwise); left out, the first voice is used. There is no voice cloning. params.speed, params.tone and params.pitch are accepted only by a model that lists limits.speed, limits.tones and limits.pitch (a 422 unsupported otherwise), within the model’s own range. A tone fills in the speed and stability you leave out; on a model with limits.toneTags it is also written as an audio tag ahead of your script, which is priced and capped like the script. For speech to speech, params.rightsConfirmed: true confirms you may use an uploaded recording. The results of sound, transcripts and montage exports are private: isPublic: true is a 422 for them.

الترويسات
الحقول
الحقلالنوعالوصف
Idempotency-Keystring

Makes a retry safe: 1 to 128 visible ASCII characters, unique per request you intend to make once (a UUID works). The same key with the same request returns the original generation; with a different request it is a 409.

example "0b7f3c52-8f3e-4a52-9a5e-3c1d6f5c9e10"

جسم الطلب application/json

What to create.

الحقول
الحقلالنوعالوصف
toolمطلوبstring

The tool to run. The model must serve it (see tools of each model).

إحدى القيمtext-to-imageimage-to-imagetext-to-videoimage-to-videotext-to-speechspeech-to-speechsound-effectsmusicspeech-to-text

modelIdمطلوبstring

A model whose available is true, from GET /models.

1 to 100 characters

promptstring

What to create: the picture or clip prompt, the script (text to speech) or the description of the sound (sound effects, music). Required, except for speech-to-speech and speech-to-text, which work on their recording alone and take none. For a picture or a clip there is no limit on its length: the only bound is the size of the request body (2 MiB by default, a 413 above it), and a model's provider may still refuse a very long prompt (see limits.providerPromptChars); the generation then fails with prompt_too_long and the credits are refunded. A sound model has a hard cap, limits.maxInputChars: a longer text is a 422 and nothing is charged.

negativePromptstring

What to avoid, with no length limit either. Only models with supportsNegativePrompt take one; for the others it is a 422.

paramsobject

Optional settings. What you leave out takes the model default; a value the model does not allow is a 422, never silently changed.

params.aspectRatiostring

One of the model's aspectRatios. Ignored by models that follow the input image.

إحدى القيم1:116:99:164:33:43:22:321:9

params.countinteger

How many images. At most the model's maxCount; videos are always 1.

1 to 8

params.durationSecinteger

Length in seconds, one of the model's durations: of a video, or of the sound a sound-effects or music model makes (it sets the price of the sound).

1 to 600

params.resolutionstring

One of the model's resolutions: a video resolution (480p, 720p, 1080p, 4K) or an image quality (1K, 2K, 4K). It sets the price. Left out, it is the best the model offers (limits.defaultResolution), which is also the dearest: send a lower one to pay less.

إحدى القيم480p720p1080p1K2K4K

params.seedinteger

Repeats a result. Only models with supportsSeed.

0 to 4294967295

params.strengthnumber

How far image-to-image may stray from the input, 0 to 1. Only models with supportsStrength, and only with an input image.

0 to 1

params.voiceIdstring

A voice of the model's provider, from the curated list of voices.

1 to 100 characters

params.speednumber

Text to speech: how fast the voice reads. 1 is the voice's own pace. Only within the model's limits.speed (ElevenLabs: 0.7 to 1.2), and only on a model that lists it.

0.5 to 2

params.stabilitynumber

Text to speech: 0 lively to 1 even. Left out, the voice uses its own.

0 to 1

params.tonestring

Text to speech: the delivery, one of the model's limits.tones: energetic, announcer (a confident advertising read) or calm. It sets the speed and stability you leave out; on a model with limits.toneTags an audio tag is written ahead of your script and is priced and capped like it.

إحدى القيمenergeticannouncercalm

params.pitchnumber

Text to speech: semitones deeper (negative) or higher than the voice's own, on the grid of the model's limits.pitch. Refused by a model that does not list limits.pitch (no ElevenLabs model has a pitch).

-12 to 12

params.languagestring

A lower-case ISO 639-1 code from the model's limits.languages. Left out, the model detects it.

params.instrumentalboolean

Music without singing. Default true.

params.loopboolean

Sound effects: a sound that repeats without a seam.

params.rightsConfirmedboolean

Speech to speech: you confirm you have the right to use the recording you uploaded. Required true for an uploaded recording.

inputAssetIdstring

Required by image-to-image and image-to-video (an image you uploaded with POST /uploads or that one of your own generations produced) and by speech-to-speech and speech-to-text (an audio asset: a recording you uploaded or a sound one of your own generations produced). Forbidden for the other tools. Assets of the wrong kind and other people’s assets are a 404. For several pictures send inputAssetIds instead.

inputAssetIdsstring[]

Several pictures, in order, for image-to-image or image-to-video with a model whose limits.maxInputImages allows that many: references an image edit combines, or the first and then the last frame of a Kling video. Each is an image you uploaded or that one of your own generations produced; no picture twice. Send this or inputAssetId, never both. More pictures than the model takes is a 422 (out_of_range); a missing or foreign picture is a 404.

1 to 6 items

isPublicboolean

List the results on the public Explore feed. Default false. Always false for sound, transcripts and montage exports, which are private: true is a 422.

مثال على الجسم
{  "tool": "text-to-image",  "modelId": "aivore-demo-image",  "prompt": "A lighthouse at dawn, soft fog, cinematic",  "params": {    "aspectRatio": "16:9"  }}
مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/generations" \  -H "Authorization: Bearer $AIVORA_API_KEY" \  -H "Idempotency-Key: 0b7f3c52-8f3e-4a52-9a5e-3c1d6f5c9e10" \  -H "Content-Type: application/json" \  -d '{    "tool": "text-to-image",    "modelId": "aivore-demo-image",    "prompt": "A lighthouse at dawn, soft fog, cinematic",    "params": {      "aspectRatio": "16:9"    }  }'
الاستجابات

200OKA replay of an earlier request with the same Idempotency-Key: the original generation, nothing charged.

تُرجع Generation

مثال على الاستجابة · 200
{  "data": {    "id": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",    "tool": "text-to-image",    "kind": "image",    "modelId": "aivore-demo-image",    "prompt": "A lighthouse at dawn, soft fog, cinematic",    "params": {      "aspectRatio": "16:9",      "count": 1    },    "status": "queued",    "progress": 0,    "cost": 1,    "outputs": [],    "isPublic": false,    "isFavorite": false,    "createdAt": 1760000000000  }}

201CreatedAccepted and queued. Location is the path of the new generation.

تُرجع Generation

مثال على الاستجابة · 201
{  "data": {    "id": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",    "tool": "text-to-image",    "kind": "image",    "modelId": "aivore-demo-image",    "prompt": "A lighthouse at dawn, soft fog, cinematic",    "params": {      "aspectRatio": "16:9",      "count": 1    },    "status": "queued",    "progress": 0,    "cost": 1,    "outputs": [],    "isPublic": false,    "isFavorite": false,    "createdAt": 1760000000000  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    No valid API key or session.

  • 402insufficient_credits

    The balance does not cover the cost. Nothing was charged.

  • 403email_not_verified

    Where email confirmation is required, the account has not confirmed its address yet. A cookie-authenticated request without a matching Origin is also a 403 (forbidden).

  • 404not_found

    The inputAssetId does not exist, is not yours, or is not of the kind the tool takes: a picture for image-to-image and image-to-video, a recording for speech-to-speech and speech-to-text.

  • 409conflict

    The model is not configured on this deployment (details.reason is model_unavailable), or the Idempotency-Key was used for a different request (idempotency_key_reused).

  • 413payload_too_large

    The body is larger than 2 MiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The request is not valid (validation_failed, every problem listed in details.issues), or the prompt goes against the content policy (moderation_blocked, details.category). Nothing is charged.

  • 429too_many_active

    The rate limit is spent (rate_limited), or too many of your generations are running (too_many_active, details.limit).

  • 503service_busy

    The platform is not accepting new paid generations for a while. details.retryAfterSec and Retry-After say when to retry.

get/generations
مفتاح API أو جلسة600 requests per minute, per account

List your generations

Your generations, newest first, in pages. Filter by kind, status or favourites, search the prompts with q, or fetch up to 50 specific generations with ids. A generation that failed or was canceled is left out unless you ask for that status or its id, and it is deleted by itself ten minutes after it ended.

معاملات الاستعلام
الحقول
الحقلالنوعالوصف
kindstring

Only creations of this kind: pictures, videos, sound or transcripts.

إحدى القيمimagevideoaudiotext

statusstring

Only generations in this status.

إحدى القيمqueuedprocessingsucceededfailedcanceled

favoritestring

Only favourites (true, 1) or only the others (false, 0).

إحدى القيمtruefalse10

qstring

Text to look for in the prompts, 1 to 200 characters. Searches have an extra budget of 60 per minute.

example "lighthouse"

idsstring

Comma-separated generation ids (or repeat the parameter), 1 to 50. Returns exactly those generations, without paging: the cheap way to poll many at once. Other accounts’ and unknown ids are left out.

example "gen_01k8m3x9q2v7c5n4h6j0t1r8we,gen_01k8m3y1b4z7a0d2f5g8k9m3qs"

limitinteger

How many items per page, 1 to 100.

1 to 100 · default 20 · example 20

cursorstring

The nextCursor of the previous page. Opaque: do not build or parse it. Anything else is a 400.

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/generations?status=succeeded&limit=20" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKA page of generations.

تُرجع صفحة من Generation

مثال على الاستجابة · 200
{  "data": [    {      "id": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",      "tool": "text-to-image",      "kind": "image",      "modelId": "aivore-demo-image",      "prompt": "A lighthouse at dawn, soft fog, cinematic",      "params": {        "aspectRatio": "16:9",        "count": 1      },      "status": "succeeded",      "progress": 100,      "cost": 1,      "outputs": [        {          "id": "ast_01k8m3x9q2v7c5n4h6j0t1r8wf",          "kind": "image",          "mimeType": "image/webp",          "width": 1024,          "height": 1024,          "bytes": 184320,          "url": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf",          "thumbUrl": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf?variant=thumb"        }      ],      "isPublic": false,      "isFavorite": false,      "createdAt": 1760000000000,      "startedAt": 1760000000400,      "finishedAt": 1760000003600    },    {      "id": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",      "tool": "text-to-image",      "kind": "image",      "modelId": "aivore-demo-image",      "prompt": "A lighthouse at dawn, soft fog, cinematic",      "params": {        "aspectRatio": "16:9",        "count": 1      },      "status": "processing",      "progress": 55,      "cost": 1,      "outputs": [],      "isPublic": false,      "isFavorite": false,      "createdAt": 1760000000000,      "startedAt": 1760000000400    }  ],  "nextCursor": null}
الأخطاء
  • 400bad_request

    The cursor is not one this API returned. Use a nextCursor as is.

  • 401unauthorized

    No valid API key or session.

  • 422validation_failed

    A parameter is not valid, for example more than 50 ids.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

get/generations/{id}
مفتاح API أو جلسة600 requests per minute, per account

Get a generation

One generation with its current status, progress and, once it has succeeded, the outputs. Poll this while status is queued or processing: every 2 seconds for images and every 5 for videos is plenty.

معاملات المسار
الحقول
الحقلالنوعالوصف
idمطلوبstring

The generation id. Another account’s id is a 404.

example "gen_01k8m3x9q2v7c5n4h6j0t1r8we"

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/generations/gen_01k8m3x9q2v7c5n4h6j0t1r8we" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe generation.

تُرجع Generation

مثال على الاستجابة · 200
{  "data": {    "id": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",    "tool": "text-to-image",    "kind": "image",    "modelId": "aivore-demo-image",    "prompt": "A lighthouse at dawn, soft fog, cinematic",    "params": {      "aspectRatio": "16:9",      "count": 1    },    "status": "succeeded",    "progress": 100,    "cost": 1,    "outputs": [      {        "id": "ast_01k8m3x9q2v7c5n4h6j0t1r8wf",        "kind": "image",        "mimeType": "image/webp",        "width": 1024,        "height": 1024,        "bytes": 184320,        "url": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf",        "thumbUrl": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf?variant=thumb"      }    ],    "isPublic": false,    "isFavorite": false,    "createdAt": 1760000000000,    "startedAt": 1760000000400,    "finishedAt": 1760000003600  }}
الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 404not_found

    No generation of yours has this id.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

patch/generations/{id}
مفتاح API أو جلسة60 requests per minute, per account

Share or favourite a generation

Changes isPublic (show the results on the public Explore feed and a share page) and/or isFavorite. Nothing else can be changed.

معاملات المسار
الحقول
الحقلالنوعالوصف
idمطلوبstring

The generation id. Another account’s id is a 404.

example "gen_01k8m3x9q2v7c5n4h6j0t1r8we"

جسم الطلب application/json

The flags to change.

الحقول
الحقلالنوعالوصف
isPublicboolean

Show the results on the public Explore feed and the share page.

isFavoriteboolean

Mark as a favourite in the web gallery.

مثال على الجسم
{  "isPublic": true}
مثال على الطلب
cURL
curl -X PATCH "https://aivoraai.space/api/v1/generations/gen_01k8m3x9q2v7c5n4h6j0t1r8we" \  -H "Authorization: Bearer $AIVORA_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "isPublic": true  }'
الاستجابات

200OKThe updated generation.

تُرجع Generation

مثال على الاستجابة · 200
{  "data": {    "id": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",    "tool": "text-to-image",    "kind": "image",    "modelId": "aivore-demo-image",    "prompt": "A lighthouse at dawn, soft fog, cinematic",    "params": {      "aspectRatio": "16:9",      "count": 1    },    "status": "succeeded",    "progress": 100,    "cost": 1,    "outputs": [      {        "id": "ast_01k8m3x9q2v7c5n4h6j0t1r8wf",        "kind": "image",        "mimeType": "image/webp",        "width": 1024,        "height": 1024,        "bytes": 184320,        "url": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf",        "thumbUrl": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf?variant=thumb"      }    ],    "isPublic": true,    "isFavorite": false,    "createdAt": 1760000000000,    "startedAt": 1760000000400,    "finishedAt": 1760000003600  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    No valid API key or session.

  • 404not_found

    No generation of yours has this id.

  • 409conflict

    The generation belongs to a service chain (service is set: a character sheet or its video), whose results stay private: isPublic: true is refused (details.reason is service_private).

  • 413payload_too_large

    The body is larger than 4 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    Neither flag was sent, or an unknown field was.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

delete/generations/{id}
مفتاح API أو جلسة60 requests per minute, per account

Delete a generation

Deletes a generation and its stored files. One that is still running is canceled and refunded first. Uploaded input images are kept. The credit history keeps its rows, without the link to the deleted generation. Deleting the sheet of a character sheet service also cancels a video that is still waiting or rendering; a finished video is kept (without service.previousId).

معاملات المسار
الحقول
الحقلالنوعالوصف
idمطلوبstring

The generation id. Another account’s id is a 404.

example "gen_01k8m3x9q2v7c5n4h6j0t1r8we"

مثال على الطلب
cURL
curl -X DELETE "https://aivoraai.space/api/v1/generations/gen_01k8m3x9q2v7c5n4h6j0t1r8we" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

204No ContentDeleted.

الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 404not_found

    No generation of yours has this id.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/generations/{id}/cancel
مفتاح API أو جلسة60 requests per minute, per account

Cancel a generation

Stops a queued or processing generation and refunds its cost in full. Canceling a generation that is already canceled is harmless and returns it again. Canceling the sheet of a character sheet service (service.step 1) also cancels the video that follows it, which is refunded too; canceling the video alone leaves the sheet running.

معاملات المسار
الحقول
الحقلالنوعالوصف
idمطلوبstring

The generation id. Another account’s id is a 404.

example "gen_01k8m3x9q2v7c5n4h6j0t1r8we"

مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/generations/gen_01k8m3x9q2v7c5n4h6j0t1r8we/cancel" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe canceled generation.

تُرجع Generation

مثال على الاستجابة · 200
{  "data": {    "id": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",    "tool": "text-to-image",    "kind": "image",    "modelId": "aivore-demo-image",    "prompt": "A lighthouse at dawn, soft fog, cinematic",    "params": {      "aspectRatio": "16:9",      "count": 1    },    "status": "canceled",    "progress": 0,    "cost": 1,    "outputs": [],    "isPublic": false,    "isFavorite": false,    "createdAt": 1760000000000,    "finishedAt": 1760000002000  }}
الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 404not_found

    No generation of yours has this id.

  • 409conflict

    It has already succeeded or failed; there is nothing to cancel.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

Services

Multi-step services: one request that makes a chain of generations, such as a character sheet and a video of it.

post/services/character-sheet
مفتاح API أو جلسة30 requests per minute, per account

Make a character sheet and a video of it

One request, two generations. The sheet (step 1, image-to-image on Nano Banana Pro Edit) turns your photo into a character reference board titled with name; the video (step 2, image-to-video on Kling 3.0 Pro, 10 seconds) is made from that sheet. Both come back at once, the sheet queued and the video queued with service.waiting true.

The server does the rest, even if you never poll again. A quality check stands between the two. When the sheet is made it is checked (the full-length figures must be sharp, the faces, the name and the layout right: service.check, state checking). A sheet that passes releases the video, which starts by itself (service.waiting disappears). A sheet that does not pass is made again by the server, at once and at no charge to you: at most three sheets in all (service.check.attempt of maxAttempts), and the video, which always points at the newest one (service.previousId), waits for it (service.waitingFor is sheet, check or review). The sheet that was turned down stays in your gallery, rejected, with replacedById naming its successor: read it, it may not be in a list you already hold. If the last sheet still fails, or the check itself could not run, the request waits for you (service.check.state review, waitingFor review): POST /services/character-sheet/{id}/approve uses the sheet and starts the video, /regenerate makes another one, /cancel ends the request. It closes by itself after 12 hours without a decision, and at the latest 20 hours after the request was made (service.check.reviewExpiresAt says when); a decision that comes later is refused with not_in_review. Each one is an ordinary generation you read with GET /generations/{id} or ?ids=. If a sheet fails or is canceled the video is failed (error.code prerequisite_failed) or canceled with it, and everything is refunded, the earlier sheets of the request included. If only the video fails, the sheet stays a success and the video can be retried as a normal image-to-video from the sheet. The video is never retried by itself, so it is never charged twice.

Both prices are charged when the request is accepted (cost of each; the two together are what insufficient_credits asks for); the sheets the server makes again are never charged to you, only a sheet you ask for in a review is. The video is counted as one of your active generations from the start (too_many_active), and a refusal creates nothing. The results are private: they cannot be made public (PATCH /generations/{id} answers 409 service_private).

Send an Idempotency-Key header to make retries safe: the same request with the same key returns the original chain (200, Idempotent-Replayed: true) and charges nothing more. The same key with another name or photo is a 409.

الترويسات
الحقول
الحقلالنوعالوصف
Idempotency-Keystring

Makes a retry safe: 1 to 128 visible ASCII characters, unique per request you intend to make once (a UUID works). The same key with the same request returns the original generation; with a different request it is a 409.

example "0b7f3c52-8f3e-4a52-9a5e-3c1d6f5c9e10"

جسم الطلب application/json

The photo and the name for the heading.

الحقول
الحقلالنوعالوصف
inputAssetIdمطلوبstring

The photo: the id of an image you uploaded (POST /uploads) or that one of your own generations produced. Videos and other people’s assets are a 404.

nameمطلوبstring

The name written as the big heading of the sheet: 2 to 30 characters, at most 4 words, made of letters of any script (Arabic with its marks too), digits, spaces, hyphens, apostrophes and dots, with at least one letter. Line breaks, quotes, emoji, symbols and a pile of more than three marks on one letter are refused (a 422 at name, code invalid_chars). Latin letters are written in capitals on the sheet.

at most 120 characters

مثال على الجسم
{  "inputAssetId": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",  "name": "Layla"}
مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/services/character-sheet" \  -H "Authorization: Bearer $AIVORA_API_KEY" \  -H "Idempotency-Key: 0b7f3c52-8f3e-4a52-9a5e-3c1d6f5c9e10" \  -H "Content-Type: application/json" \  -d '{    "inputAssetId": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",    "name": "Layla"  }'
الاستجابات

200OKA replay of an earlier request with the same Idempotency-Key: the sheet that is live now (the newest, if the first was made again) and the video, nothing charged.

تُرجع CharacterSheetResult

مثال على الاستجابة · 200
{  "data": {    "generations": [      {        "id": "gen_01k8m4b7e2g5j8m1p4r7t0v3wz",        "tool": "image-to-image",        "kind": "image",        "modelId": "fal-nano-banana-pro-edit",        "prompt": "Create a professional, highly photorealistic CHARACTER SHEET using the single uploaded photo as the sole identity reference. ... Use the large heading “LAYLA” ...",        "params": {          "aspectRatio": "2:3",          "count": 1,          "seed": 1204998113        },        "status": "processing",        "progress": 40,        "cost": 38,        "outputs": [],        "input": {          "id": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "kind": "image",          "mimeType": "image/webp",          "width": 1536,          "height": 1024,          "bytes": 232448,          "url": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "thumbUrl": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn?variant=thumb"        },        "isPublic": false,        "isFavorite": false,        "createdAt": 1760000052000,        "startedAt": 1760000052400,        "service": {          "id": "character-sheet",          "step": 1,          "steps": 2,          "label": "Layla",          "nextId": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",          "check": {            "state": "pending",            "attempt": 2,            "maxAttempts": 3,            "retryOfId": "gen_01k8m4a2d5e8f1g4h7j0k3m6np"          }        }      },      {        "id": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",        "tool": "image-to-video",        "kind": "video",        "modelId": "fal-kling-3-pro-i2v",        "prompt": "Use the uploaded image as the exact and unaltered character/outfit reference ...",        "negativePrompt": "cartoon, illustration, distorted face, changing identity, flicker",        "params": {          "aspectRatio": "16:9",          "count": 1,          "durationSec": 10,          "resolution": "1080p"        },        "status": "queued",        "progress": 0,        "cost": 420,        "outputs": [],        "isPublic": false,        "isFavorite": false,        "createdAt": 1759999999999,        "service": {          "id": "character-sheet",          "step": 2,          "steps": 2,          "label": "Layla",          "previousId": "gen_01k8m4b7e2g5j8m1p4r7t0v3wz",          "waiting": true,          "waitingFor": "sheet"        }      }    ]  }}

201CreatedAccepted. Location is the path of the sheet; the video is generations[1].

تُرجع CharacterSheetResult

مثال على الاستجابة · 201
{  "data": {    "generations": [      {        "id": "gen_01k8m4a2d5e8f1g4h7j0k3m6np",        "tool": "image-to-image",        "kind": "image",        "modelId": "fal-nano-banana-pro-edit",        "prompt": "Create a professional, highly photorealistic CHARACTER SHEET using the single uploaded photo as the sole identity reference. ... Use the large heading “LAYLA” ...",        "params": {          "aspectRatio": "2:3",          "count": 1        },        "status": "queued",        "progress": 0,        "cost": 38,        "outputs": [],        "input": {          "id": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "kind": "image",          "mimeType": "image/webp",          "width": 1536,          "height": 1024,          "bytes": 232448,          "url": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "thumbUrl": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn?variant=thumb"        },        "isPublic": false,        "isFavorite": false,        "createdAt": 1760000000000,        "service": {          "id": "character-sheet",          "step": 1,          "steps": 2,          "label": "Layla",          "nextId": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",          "check": {            "state": "pending",            "attempt": 1,            "maxAttempts": 3          }        }      },      {        "id": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",        "tool": "image-to-video",        "kind": "video",        "modelId": "fal-kling-3-pro-i2v",        "prompt": "Use the uploaded image as the exact and unaltered character/outfit reference ...",        "negativePrompt": "cartoon, illustration, distorted face, changing identity, flicker",        "params": {          "aspectRatio": "16:9",          "count": 1,          "durationSec": 10,          "resolution": "1080p"        },        "status": "queued",        "progress": 0,        "cost": 420,        "outputs": [],        "isPublic": false,        "isFavorite": false,        "createdAt": 1759999999999,        "service": {          "id": "character-sheet",          "step": 2,          "steps": 2,          "label": "Layla",          "previousId": "gen_01k8m4a2d5e8f1g4h7j0k3m6np",          "waiting": true,          "waitingFor": "sheet"        }      }    ]  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    No valid API key or session.

  • 402insufficient_credits

    The balance does not cover the sheet and the video together. details.required is the total. Nothing was charged.

  • 403email_not_verified

    Where email confirmation is required, the account has not confirmed its address yet.

  • 404not_found

    The inputAssetId does not exist, is not yours, or is not an image.

  • 409conflict

    Either model is not configured on this deployment (details.reason is model_unavailable: there is no fall back to another tier, and nothing is created), or the Idempotency-Key was used for a different request (idempotency_key_reused).

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The body is not valid (validation_failed: details.issues lists every problem with a code; for name it is required, too_short, too_long, too_many_words or invalid_chars), or the name, alone or inside the finished sheet prompt, goes against the content policy (moderation_blocked, details.path is name; the sheet shows a child, so words about undress, underwear, swimwear and sex are refused in a name). Nothing is charged.

  • 429too_many_active

    The rate limit is spent (rate_limited), your own daily free allowance is used up (rate_limited, details.reason free_allowance), or fewer than two of your active slots are free (too_many_active, details.limit).

  • 503service_busy

    The platform is not accepting new paid generations for a while: the sheet and the video together do not fit its daily budget. details.retryAfterSec and Retry-After say when to retry.

post/services/character-sheet/{id}/approve
مفتاح API أو جلسة60 requests per minute, per account

Use a sheet that is waiting for you

For a sheet in review (service.check.state review, actions has approve): uses it as it is and starts the video from it, which the server then runs whether or not you stay. The sheet becomes approved. Nothing is charged: both prices were taken when the request was made. Approving a sheet that is already approved is harmless and returns where it is. A body is not needed.

معاملات المسار
الحقول
الحقلالنوعالوصف
idمطلوبstring

The id of the sheet (step 1) that waits for your decision. A sheet that was made again is not the one to act on: use the newest (service.nextId of an older one leads to the video, check.replacedById to its successor). Another account’s id is a 404.

example "gen_01k8m4a2d5e8f1g4h7j0k3m6np"

مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/services/character-sheet/gen_01k8m4a2d5e8f1g4h7j0k3m6np/approve" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe sheet (approved) and its video (queued, released).

تُرجع CharacterSheetResult

مثال على الاستجابة · 200
{  "data": {    "generations": [      {        "id": "gen_01k8m4b7e2g5j8m1p4r7t0v3wz",        "tool": "image-to-image",        "kind": "image",        "modelId": "fal-nano-banana-pro-edit",        "prompt": "Create a professional, highly photorealistic CHARACTER SHEET using the single uploaded photo as the sole identity reference. ... Use the large heading “LAYLA” ...",        "params": {          "aspectRatio": "2:3",          "count": 1,          "seed": 1204998113        },        "status": "succeeded",        "progress": 100,        "cost": 38,        "outputs": [          {            "id": "ast_01k8m3x9q2v7c5n4h6j0t1r8wf",            "kind": "image",            "mimeType": "image/webp",            "width": 1024,            "height": 1024,            "bytes": 184320,            "url": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf",            "thumbUrl": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf?variant=thumb"          }        ],        "input": {          "id": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "kind": "image",          "mimeType": "image/webp",          "width": 1536,          "height": 1024,          "bytes": 232448,          "url": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "thumbUrl": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn?variant=thumb"        },        "isPublic": false,        "isFavorite": false,        "createdAt": 1760000052000,        "startedAt": 1760000052400,        "finishedAt": 1760000091000,        "service": {          "id": "character-sheet",          "step": 1,          "steps": 2,          "label": "Layla",          "nextId": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",          "check": {            "state": "approved",            "attempt": 3,            "maxAttempts": 3,            "retryOfId": "gen_01k8m4a2d5e8f1g4h7j0k3m6np"          }        }      },      {        "id": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",        "tool": "image-to-video",        "kind": "video",        "modelId": "fal-kling-3-pro-i2v",        "prompt": "Use the uploaded image as the exact and unaltered character/outfit reference ...",        "negativePrompt": "cartoon, illustration, distorted face, changing identity, flicker",        "params": {          "aspectRatio": "16:9",          "count": 1,          "durationSec": 10,          "resolution": "1080p"        },        "status": "queued",        "progress": 0,        "cost": 420,        "outputs": [],        "isPublic": false,        "isFavorite": false,        "createdAt": 1759999999999,        "service": {          "id": "character-sheet",          "step": 2,          "steps": 2,          "label": "Layla",          "previousId": "gen_01k8m4b7e2g5j8m1p4r7t0v3wz"        }      }    ]  }}
الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 404not_found

    No sheet of the character sheet service of yours has this id.

  • 409conflict

    The sheet is not waiting for a decision (details.reason is not_in_review; details.state says where it is and details.liveId names the newer sheet when it was made again), or the video was canceled or deleted meanwhile (not_waiting). Nothing changed.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/services/character-sheet/{id}/regenerate
مفتاح API أو جلسة30 requests per minute, per account

Make another sheet

For a sheet in review (actions has regenerate): turns it down for a new sheet made from the same photo, and points the waiting video at the new one, which is checked like the first (once: if it fails the request waits for you again). Credits mode charges the price of a sheet (cost of the new one) when this is accepted; free mode applies the same daily allowance and platform budget as any sheet. The video does not take a second active slot. At most two such sheets per request (attempts 4 and 5).

Calling it again for the same sheet charges nothing and answers 200 with the sheet the first call made (Idempotent-Replayed: true).

معاملات المسار
الحقول
الحقلالنوعالوصف
idمطلوبstring

The id of the sheet (step 1) that waits for your decision. A sheet that was made again is not the one to act on: use the newest (service.nextId of an older one leads to the video, check.replacedById to its successor). Another account’s id is a 404.

example "gen_01k8m4a2d5e8f1g4h7j0k3m6np"

مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/services/character-sheet/gen_01k8m4a2d5e8f1g4h7j0k3m6np/regenerate" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKA repeat of an earlier call: the sheet it made and the video, nothing charged.

تُرجع CharacterSheetResult

مثال على الاستجابة · 200
{  "data": {    "generations": [      {        "id": "gen_01k8m4b7e2g5j8m1p4r7t0v3wz",        "tool": "image-to-image",        "kind": "image",        "modelId": "fal-nano-banana-pro-edit",        "prompt": "Create a professional, highly photorealistic CHARACTER SHEET using the single uploaded photo as the sole identity reference. ... Use the large heading “LAYLA” ...",        "params": {          "aspectRatio": "2:3",          "count": 1,          "seed": 3882105517        },        "status": "queued",        "progress": 0,        "cost": 38,        "outputs": [],        "input": {          "id": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "kind": "image",          "mimeType": "image/webp",          "width": 1536,          "height": 1024,          "bytes": 232448,          "url": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "thumbUrl": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn?variant=thumb"        },        "isPublic": false,        "isFavorite": false,        "createdAt": 1760003600000,        "service": {          "id": "character-sheet",          "step": 1,          "steps": 2,          "label": "Layla",          "nextId": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",          "check": {            "state": "pending",            "attempt": 4,            "maxAttempts": 3,            "retryOfId": "gen_01k8m4a2d5e8f1g4h7j0k3m6np"          }        }      },      {        "id": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",        "tool": "image-to-video",        "kind": "video",        "modelId": "fal-kling-3-pro-i2v",        "prompt": "Use the uploaded image as the exact and unaltered character/outfit reference ...",        "negativePrompt": "cartoon, illustration, distorted face, changing identity, flicker",        "params": {          "aspectRatio": "16:9",          "count": 1,          "durationSec": 10,          "resolution": "1080p"        },        "status": "queued",        "progress": 0,        "cost": 420,        "outputs": [],        "isPublic": false,        "isFavorite": false,        "createdAt": 1759999999999,        "service": {          "id": "character-sheet",          "step": 2,          "steps": 2,          "label": "Layla",          "previousId": "gen_01k8m4b7e2g5j8m1p4r7t0v3wz",          "waiting": true,          "waitingFor": "sheet"        }      }    ]  }}

201CreatedThe new sheet (queued) and the video that waits for it. Location is the path of the new sheet.

تُرجع CharacterSheetResult

مثال على الاستجابة · 201
{  "data": {    "generations": [      {        "id": "gen_01k8m4b7e2g5j8m1p4r7t0v3wz",        "tool": "image-to-image",        "kind": "image",        "modelId": "fal-nano-banana-pro-edit",        "prompt": "Create a professional, highly photorealistic CHARACTER SHEET using the single uploaded photo as the sole identity reference. ... Use the large heading “LAYLA” ...",        "params": {          "aspectRatio": "2:3",          "count": 1,          "seed": 3882105517        },        "status": "queued",        "progress": 0,        "cost": 38,        "outputs": [],        "input": {          "id": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "kind": "image",          "mimeType": "image/webp",          "width": 1536,          "height": 1024,          "bytes": 232448,          "url": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "thumbUrl": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn?variant=thumb"        },        "isPublic": false,        "isFavorite": false,        "createdAt": 1760003600000,        "service": {          "id": "character-sheet",          "step": 1,          "steps": 2,          "label": "Layla",          "nextId": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",          "check": {            "state": "pending",            "attempt": 4,            "maxAttempts": 3,            "retryOfId": "gen_01k8m4a2d5e8f1g4h7j0k3m6np"          }        }      },      {        "id": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",        "tool": "image-to-video",        "kind": "video",        "modelId": "fal-kling-3-pro-i2v",        "prompt": "Use the uploaded image as the exact and unaltered character/outfit reference ...",        "negativePrompt": "cartoon, illustration, distorted face, changing identity, flicker",        "params": {          "aspectRatio": "16:9",          "count": 1,          "durationSec": 10,          "resolution": "1080p"        },        "status": "queued",        "progress": 0,        "cost": 420,        "outputs": [],        "isPublic": false,        "isFavorite": false,        "createdAt": 1759999999999,        "service": {          "id": "character-sheet",          "step": 2,          "steps": 2,          "label": "Layla",          "previousId": "gen_01k8m4b7e2g5j8m1p4r7t0v3wz",          "waiting": true,          "waitingFor": "sheet"        }      }    ]  }}
الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 402insufficient_credits

    The balance does not cover a sheet (details.required). Nothing was charged.

  • 403email_not_verified

    Where email confirmation is required, the account has not confirmed its address yet.

  • 404not_found

    No sheet of the character sheet service of yours has this id, or its photo is gone.

  • 409conflict

    The sheet is not waiting for a decision (details.reason not_in_review, with details.state and, when a newer sheet took over, details.liveId), the video is no longer waiting (not_waiting), or no more sheets can be made for this request (attempt_limit). Nothing changed.

  • 429too_many_active

    The rate limit is spent (rate_limited), your own daily free allowance is used up (rate_limited, details.reason free_allowance), or no active slot is free for the new sheet (too_many_active, details.limit).

  • 503service_busy

    The platform is not accepting new paid generations for a while. details.retryAfterSec and Retry-After say when to retry. The sheet stays in review.

post/services/character-sheet/{id}/cancel
مفتاح API أو جلسة60 requests per minute, per account

Cancel a request that is waiting for you

For a sheet in review (actions has cancel): ends the request. The video is canceled and refunded, so is every sheet that was charged to you for it, and the sheets stay in your gallery. The sheet becomes closed (reason canceled). Canceling a request that is already closed is harmless. The ordinary POST /generations/{id}/cancel cannot do this, because the sheet has already succeeded.

معاملات المسار
الحقول
الحقلالنوعالوصف
idمطلوبstring

The id of the sheet (step 1) that waits for your decision. A sheet that was made again is not the one to act on: use the newest (service.nextId of an older one leads to the video, check.replacedById to its successor). Another account’s id is a 404.

example "gen_01k8m4a2d5e8f1g4h7j0k3m6np"

مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/services/character-sheet/gen_01k8m4a2d5e8f1g4h7j0k3m6np/cancel" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe sheet (closed) and its video (canceled).

تُرجع CharacterSheetResult

مثال على الاستجابة · 200
{  "data": {    "generations": [      {        "id": "gen_01k8m4a2d5e8f1g4h7j0k3m6np",        "tool": "image-to-image",        "kind": "image",        "modelId": "fal-nano-banana-pro-edit",        "prompt": "Create a professional, highly photorealistic CHARACTER SHEET using the single uploaded photo as the sole identity reference. ... Use the large heading “LAYLA” ...",        "params": {          "aspectRatio": "2:3",          "count": 1        },        "status": "succeeded",        "progress": 100,        "cost": 38,        "outputs": [          {            "id": "ast_01k8m3x9q2v7c5n4h6j0t1r8wf",            "kind": "image",            "mimeType": "image/webp",            "width": 1024,            "height": 1024,            "bytes": 184320,            "url": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf",            "thumbUrl": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf?variant=thumb"          }        ],        "input": {          "id": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "kind": "image",          "mimeType": "image/webp",          "width": 1536,          "height": 1024,          "bytes": 232448,          "url": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn",          "thumbUrl": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn?variant=thumb"        },        "isPublic": false,        "isFavorite": false,        "createdAt": 1760000000000,        "startedAt": 1760000000400,        "finishedAt": 1760000038000,        "service": {          "id": "character-sheet",          "step": 1,          "steps": 2,          "label": "Layla",          "nextId": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",          "check": {            "state": "closed",            "attempt": 1,            "maxAttempts": 3,            "issues": [              "blurred_figures"            ],            "reason": "canceled"          }        }      },      {        "id": "gen_01k8m4a2c3d6e9f2g5h8j1k4mq",        "tool": "image-to-video",        "kind": "video",        "modelId": "fal-kling-3-pro-i2v",        "prompt": "Use the uploaded image as the exact and unaltered character/outfit reference ...",        "negativePrompt": "cartoon, illustration, distorted face, changing identity, flicker",        "params": {          "aspectRatio": "16:9",          "count": 1,          "durationSec": 10,          "resolution": "1080p"        },        "status": "canceled",        "progress": 0,        "cost": 420,        "outputs": [],        "isPublic": false,        "isFavorite": false,        "createdAt": 1759999999999,        "finishedAt": 1760003000000,        "service": {          "id": "character-sheet",          "step": 2,          "steps": 2,          "label": "Layla",          "previousId": "gen_01k8m4a2d5e8f1g4h7j0k3m6np"        }      }    ]  }}
الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 404not_found

    No sheet of the character sheet service of yours has this id.

  • 409conflict

    The sheet is not waiting for a decision (details.reason is not_in_review; details.state says where it is and details.liveId names the newer sheet when it was made again), or the video was canceled or deleted meanwhile (not_waiting). Nothing changed.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

Models and tools

Which models and tools exist, what they accept and what they cost.

get/models
بيانات الاعتماد اختيارية240 requests per minute, per account, or per IP address when signed out

List the models

Every model of the catalog with its limits, its price in credits and whether it can be used on this deployment. Models whose provider is not configured are listed with available: false and cannot be used.

The limits tell you what a request may contain: aspect ratios, image count, video durations and resolutions, and whether a negative prompt, a seed or a strength are supported. providerPromptChars is the longest prompt the provider documents; prompts are not limited here, it is information. Available models come first, then images before videos, and within each kind the best model first (qualityRank 1 is the best of its tool: it is the model the studio opens on). Every default is the best: a request that names no resolution runs at limits.defaultResolution, the best tier the model offers, and pricing says what that costs. Credentials are optional; the answer is the same for everybody.

Sound and transcripts are priced by a unit: pricing is { type: "metered", unit, credits }, the credits of one thousandChars of the script, one outputSecond of sound made (the durationSec you choose) or one inputSecond of the recording you send, which may be a fraction. A call costs this times its units, rounded up, and never less than 1 credit. The sound limits are maxInputChars and maxInputSec (enforced, unlike providerPromptChars), voices (the model speaks with a curated voice), languages with supportsLanguage, supportsLoop and supportsInstrumental. A voice model also lists the options it really has, and no others: speed (the range of params.speed), pitch (the range and step of params.pitch, absent on every ElevenLabs model), tones (the values of params.tone), toneTags (the tone is an audio tag priced like the script), outputFormats (the format of the stored file) and timestamps (where exact word times can come from). aspectRatios and maxCount are a fixed 1:1 and 1 on these models and mean nothing.

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/models"
الاستجابات

200OKThe catalog.

تُرجع قائمة من Model

مثال على الاستجابة · 200
{  "data": [    {      "id": "aivore-demo-image",      "provider": "mock",      "kind": "image",      "tools": [        "text-to-image",        "image-to-image"      ],      "label": "AIVORA Demo Image",      "description": {        "en": "Instant demo artwork with no API key: colourful procedural images shaped by your prompt and seed. Great for trying the studio before connecting a real model.",        "ar": "صور تجريبية فورية دون أي مفتاح API: لوحات فنية إجرائية تتشكل بحسب وصفك وبذرتك. مناسبة لتجربة الاستوديو قبل ربط نموذج حقيقي."      },      "badges": [        "demo"      ],      "qualityRank": 100,      "limits": {        "aspectRatios": [          "1:1",          "16:9",          "9:16",          "4:3",          "3:4"        ],        "defaultAspectRatio": "1:1",        "maxCount": 4,        "defaultCount": 1,        "supportsNegativePrompt": true,        "supportsSeed": true,        "supportsStrength": true,        "maxInputImages": 6      },      "pricing": {        "type": "image",        "perImage": 1      },      "available": true    },    {      "id": "aivore-demo-video",      "provider": "mock",      "kind": "video",      "tools": [        "text-to-video",        "image-to-video"      ],      "label": "AIVORA Demo Video",      "description": {        "en": "Instant demo motion preview with no API key: a short looping animation (GIF) generated from your prompt, or a gentle camera move over your image.",        "ar": "معاينة حركية تجريبية فورية دون أي مفتاح API: رسم متحرك قصير ومتكرر (GIF) يُولَّد من وصفك، أو حركة كاميرا هادئة فوق صورتك."      },      "badges": [        "demo"      ],      "qualityRank": 100,      "limits": {        "aspectRatios": [          "1:1",          "16:9",          "9:16",          "4:3",          "3:4"        ],        "defaultAspectRatio": "16:9",        "maxCount": 1,        "defaultCount": 1,        "durations": [          3,          5        ],        "defaultDuration": 3,        "resolutions": [          "480p",          "720p"        ],        "defaultResolution": "480p",        "supportsNegativePrompt": false,        "supportsSeed": true,        "supportsStrength": false,        "maxInputImages": 2      },      "pricing": {        "type": "video",        "perSecond": {          "480p": 2,          "720p": 3        }      },      "available": true    },    {      "id": "aivora-demo-voice",      "provider": "mock",      "kind": "audio",      "tools": [        "text-to-speech"      ],      "label": "AIVORA Demo Voice",      "description": {        "en": "Instant demo narration with no API key: a synthetic tone pattern shaped by your script, to try a voice-over from start to finish. It is not speech.",        "ar": "تعليق صوتي تجريبي فوري دون أي مفتاح API: نمط نغمات اصطناعي يتشكل بحسب نصك لتجربة التعليق الصوتي من البداية إلى النهاية. ليس كلامًا حقيقيًا."      },      "badges": [        "demo"      ],      "qualityRank": 100,      "limits": {        "aspectRatios": [          "1:1"        ],        "defaultAspectRatio": "1:1",        "maxCount": 1,        "defaultCount": 1,        "supportsNegativePrompt": false,        "supportsSeed": false,        "supportsStrength": false,        "maxInputChars": 5000,        "voices": true,        "languages": [          "ar",          "en"        ],        "supportsLanguage": true,        "speed": {          "min": 0.7,          "max": 1.2        },        "tones": [          "energetic",          "announcer",          "calm"        ],        "outputFormats": [          "wav"        ],        "pitch": {          "min": -12,          "max": 12,          "step": 1        },        "timestamps": "stt"      },      "pricing": {        "type": "metered",        "unit": "thousandChars",        "credits": 4      },      "available": true    }  ]}
الأخطاء
  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

get/tools
بيانات الاعتماد اختيارية240 requests per minute, per account, or per IP address when signed out

List the tools

The tools you can start: text to image, image to image, text to video and image to video, and the sound tools text to speech, speech to speech, sound effects, music and speech to text. input says what a tool takes as inputAssetId (image, audio, or none; needsInputImage is true exactly for image), and needsPrompt whether prompt is required (speech to speech and speech to text work on their input alone and take none).

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/tools"
الاستجابات

200OKThe tools.

تُرجع قائمة من Tool

مثال على الاستجابة · 200
{  "data": [    {      "id": "text-to-image",      "kind": "image",      "needsInputImage": false,      "input": "none",      "needsPrompt": true,      "creatable": true,      "icon": "image",      "i18nKey": "common.tools.textToImage"    },    {      "id": "image-to-image",      "kind": "image",      "needsInputImage": true,      "input": "image",      "needsPrompt": true,      "creatable": true,      "icon": "image-plus",      "i18nKey": "common.tools.imageToImage"    },    {      "id": "text-to-video",      "kind": "video",      "needsInputImage": false,      "input": "none",      "needsPrompt": true,      "creatable": true,      "icon": "clapperboard",      "i18nKey": "common.tools.textToVideo"    },    {      "id": "image-to-video",      "kind": "video",      "needsInputImage": true,      "input": "image",      "needsPrompt": true,      "creatable": true,      "icon": "image-play",      "i18nKey": "common.tools.imageToVideo"    },    {      "id": "text-to-speech",      "kind": "audio",      "needsInputImage": false,      "input": "none",      "needsPrompt": true,      "creatable": true,      "icon": "speech",      "i18nKey": "common.tools.textToSpeech"    },    {      "id": "speech-to-speech",      "kind": "audio",      "needsInputImage": false,      "input": "audio",      "needsPrompt": false,      "creatable": true,      "icon": "audio-waveform",      "i18nKey": "common.tools.speechToSpeech"    },    {      "id": "sound-effects",      "kind": "audio",      "needsInputImage": false,      "input": "none",      "needsPrompt": true,      "creatable": true,      "icon": "volume-2",      "i18nKey": "common.tools.soundEffects"    },    {      "id": "music",      "kind": "audio",      "needsInputImage": false,      "input": "none",      "needsPrompt": true,      "creatable": true,      "icon": "music",      "i18nKey": "common.tools.music"    },    {      "id": "speech-to-text",      "kind": "text",      "needsInputImage": false,      "input": "audio",      "needsPrompt": false,      "creatable": true,      "icon": "captions",      "i18nKey": "common.tools.speechToText"    }  ]}
الأخطاء
  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

Uploads and media

Upload input pictures and recordings and download results.

post/uploads
مفتاح API أو جلسة20 requests per minute, per account

Upload an image

Uploads the input image of an image-to-image or image-to-video generation. Send multipart/form-data with exactly one file field: PNG, JPEG or WebP, at most 10 MB by default. The image is checked, rotated by its EXIF orientation, stripped of metadata and scaled down to 4096 px. Use the returned id as inputAssetId.

جسم الطلب multipart/form-data

One image file.

الحقول
الحقلالنوعالوصف
fileمطلوبfile

The image: PNG, JPEG or WebP, at most MAX_UPLOAD_MB (10 MB by default). Send exactly one file field. Metadata is stripped and the image is scaled down to 4096 px.

مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/uploads" \  -H "Authorization: Bearer $AIVORA_API_KEY" \  -F "[email protected]"
الاستجابات

201CreatedThe stored image.

تُرجع Asset

مثال على الاستجابة · 201
{  "data": {    "id": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",    "kind": "image",    "mimeType": "image/webp",    "width": 1536,    "height": 1024,    "bytes": 232448,    "url": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn",    "thumbUrl": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn?variant=thumb"  }}
الأخطاء
  • 400bad_request

    The multipart body is malformed, or the file is not a usable image.

  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    A cookie-authenticated request without a matching Origin header.

  • 413payload_too_large

    The file is larger than the limit.

  • 415unsupported_media_type

    Not multipart/form-data, or not a PNG, JPEG or WebP.

  • 422validation_failed

    There is not exactly one file field.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/uploads/audio
مفتاح API أو جلسة20 requests per minute, per account

Upload a recording

Uploads the input recording of a speech-to-speech or speech-to-text generation. Send multipart/form-data with exactly one file field: an MP3 or a WAV, at most 32 MB by default and 10 minutes long. Any other format (an iPhone voice memo, OGG, FLAC) must be converted to WAV first. The format and the length are worked out from the bytes themselves, never from the content type, the file name or a header: a WAV whose header promises more sound than the file holds is refused. Tags (ID3, APE) and every WAV chunk that is not sound are removed. The answer carries durationMs, which is what the generation is priced by. Use the returned id as inputAssetId. Recordings are private and are not scanned; upload only recordings you have the right to use.

جسم الطلب multipart/form-data

One MP3 or WAV file.

الحقول
الحقلالنوعالوصف
fileمطلوبfile

The recording: MP3 or WAV (PCM or 32-bit float), at most MAX_UPLOAD_AUDIO_MB (32 MB by default) and 10 minutes long. Send exactly one file field. The format and the length are read from the bytes; tags and every WAV chunk that is not sound are removed.

مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/uploads/audio" \  -H "Authorization: Bearer $AIVORA_API_KEY" \  -F "[email protected]"
الاستجابات

201CreatedThe stored recording, with its length.

تُرجع Asset

مثال على الاستجابة · 201
{  "data": {    "id": "ast_01k8m3w5a2b8c1d4e7f0h3j6kn",    "kind": "audio",    "mimeType": "audio/mpeg",    "durationMs": 12480,    "bytes": 199680,    "url": "/api/v1/media/ast_01k8m3w5a2b8c1d4e7f0h3j6kn"  }}
الأخطاء
  • 400bad_request

    The multipart body is malformed, or the file is empty.

  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    A cookie-authenticated request without a matching Origin header.

  • 413payload_too_large

    The file is larger than the limit (details.reason is audio_too_large, details.maxBytes the limit).

  • 415unsupported_media_type

    Not multipart/form-data, or the bytes are not an MP3 or a WAV (details.reason is unsupported_audio).

  • 422validation_failed

    There is not exactly one file field (details.issues), or the file is not a complete MP3 or WAV (details.reason is audio_unreadable), or it is longer than 10 minutes (audio_too_long, with details.maxSec).

  • 429rate_limited

    The budget of this endpoint is spent, or a guest account has used its allowance of recordings (details.reason is upload_quota and details.kind is audio). Wait and retry.

get/media/{assetId}
بيانات الاعتماد اختيارية1200 requests per minute, per account, or per IP address when signed out

Download a file

The image, video, recording or transcript itself. You see your own assets; anyone sees the pictures and videos of generations their owner made public (sound, transcripts and montage exports are always private). Send the same credentials you use for the API. Videos and sound support Range requests, so a player can seek. A transcript is a JSON file (application/json) and is always sent as an attachment. Demo videos are animated GIFs.

معاملات المسار
الحقول
الحقلالنوعالوصف
assetIdمطلوبstring

The asset id, from outputs[].id, input.id or an upload.

example "ast_01k8m3x9q2v7c5n4h6j0t1r8wf"

معاملات الاستعلام
الحقول
الحقلالنوعالوصف
variantstring

thumb returns the 512 px WebP thumbnail instead of the original (a video's poster). preview returns what is shown in place of the original: the WebP preview of a big picture (at most 2048 px), or the light copy of a generated video as video/mp4 (H.264, 720 px on its short side, served in byte ranges like the file); an asset without one answers with the file itself, so the link never breaks. Both combine with download. Sound and transcripts have neither (404).

إحدى القيمthumbpreview

downloadstring

1 or true makes the browser save the file instead of showing it.

إحدى القيم1true0false

الترويسات
الحقول
الحقلالنوعالوصف
Rangestring

A single byte range such as bytes=0-1023, for seeking in videos and sound. Other forms are ignored and the whole file is sent.

example "bytes=0-1023"

مثال على الطلب
cURL
curl -OJ "https://aivoraai.space/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf?download=1" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe file. ETag and Cache-Control are set: private for the owner, public for shared results.

تُرجع الملف بنوع image/*video/*audio/*

206Partial ContentThe requested byte range (Content-Range says which).

تُرجع الملف بنوع image/*video/*audio/*

304Not ModifiedNot modified: the If-None-Match ETag still matches.

الأخطاء
  • 404not_found

    No such asset, or it is not visible to you. Other accounts’ assets and unknown ids look the same.

  • 416bad_request

    The range cannot be satisfied (Content-Range: bytes */size).

  • 422validation_failed

    variant is neither thumb nor preview.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

head/media/{assetId}
بيانات الاعتماد اختيارية1200 requests per minute, per account, or per IP address when signed out

Inspect a file

The headers of GET /media/{assetId} without the body: size, type and ETag.

معاملات المسار
الحقول
الحقلالنوعالوصف
assetIdمطلوبstring

The asset id, from outputs[].id, input.id or an upload.

example "ast_01k8m3x9q2v7c5n4h6j0t1r8wf"

معاملات الاستعلام
الحقول
الحقلالنوعالوصف
variantstring

thumb returns the 512 px WebP thumbnail instead of the original (a video's poster). preview returns what is shown in place of the original: the WebP preview of a big picture (at most 2048 px), or the light copy of a generated video as video/mp4 (H.264, 720 px on its short side, served in byte ranges like the file); an asset without one answers with the file itself, so the link never breaks. Both combine with download. Sound and transcripts have neither (404).

إحدى القيمthumbpreview

downloadstring

1 or true makes the browser save the file instead of showing it.

إحدى القيم1true0false

الترويسات
الحقول
الحقلالنوعالوصف
Rangestring

A single byte range such as bytes=0-1023, for seeking in videos and sound. Other forms are ignored and the whole file is sent.

example "bytes=0-1023"

مثال على الطلب
cURL
curl -I "https://aivoraai.space/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe file. ETag and Cache-Control are set: private for the owner, public for shared results.

206Partial ContentThe requested byte range (Content-Range says which).

304Not ModifiedNot modified: the If-None-Match ETag still matches.

الأخطاء
  • 404not_found

    No such asset, or it is not visible to you. Other accounts’ assets and unknown ids look the same.

  • 416bad_request

    The range cannot be satisfied (Content-Range: bytes */size).

  • 422validation_failed

    variant is neither thumb nor preview.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

Prompt

Improve a prompt before you spend credits on it.

post/prompt/enhance
مفتاح API أو جلسة20 requests per minute, per account

Improve a prompt

Rewrites a short draft into a richer prompt (subject, style, lighting, composition). Uses a language model when the deployment has a key for one and a built-in heuristic otherwise; engine says which. Arabic drafts may come back in English because most models understand English best (translated). A draft of more than 2000 characters is already a finished prompt: it is returned unchanged (engine: heuristic) and is still generated exactly as written, and moderated in full when you generate it. A shorter draft is moderated first, so this cannot be used to get around the content policy. It costs no credits.

جسم الطلب application/json

The draft.

الحقول
الحقلالنوعالوصف
promptمطلوبstring

The draft, of any length up to the size of the request body. A draft over 2000 characters is already finished, so it comes back unchanged.

at least 1 character

kindمطلوبstring

What the prompt is for. It decides which vocabulary is added.

إحدى القيمimagevideo

localestring

Language to assume when the script of the draft does not make it clear.

إحدى القيمaren

مثال على الجسم
{  "prompt": "a lighthouse at dawn",  "kind": "image"}
مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/prompt/enhance" \  -H "Authorization: Bearer $AIVORA_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "prompt": "a lighthouse at dawn",    "kind": "image"  }'
الاستجابات

200OKThe improved prompt.

تُرجع EnhancedPrompt

مثال على الاستجابة · 200
{  "data": {    "prompt": "A lighthouse on a rocky coast at dawn, soft volumetric fog, warm rim light, cinematic wide composition, highly detailed",    "engine": "heuristic",    "translated": false  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    No valid API key or session.

  • 413payload_too_large

    The body is larger than 2 MiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The draft is empty (validation_failed), or it goes against the content policy (moderation_blocked).

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

Explore

The public feed of results their owners chose to share.

get/explore
لا تحتاج إلى بيانات اعتماد60 requests per minute, per IP address

Browse the public feed

Succeeded generations their owners chose to share, newest first, with the owner’s first name. No account is needed and credentials are not read. The answer may be cached for a few seconds.

معاملات الاستعلام
الحقول
الحقلالنوعالوصف
kindstring

Only images or only videos.

إحدى القيمimagevideo

limitinteger

How many items per page, 1 to 100.

1 to 100 · default 24 · example 24

cursorstring

The nextCursor of the previous page. Opaque: do not build or parse it. Anything else is a 400.

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/explore"
الاستجابات

200OKA page of shared generations.

تُرجع صفحة من Generation

مثال على الاستجابة · 200
{  "data": [    {      "id": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",      "tool": "text-to-image",      "kind": "image",      "modelId": "aivore-demo-image",      "prompt": "A lighthouse at dawn, soft fog, cinematic",      "params": {        "aspectRatio": "16:9",        "count": 1      },      "status": "succeeded",      "progress": 100,      "cost": 1,      "outputs": [        {          "id": "ast_01k8m3x9q2v7c5n4h6j0t1r8wf",          "kind": "image",          "mimeType": "image/webp",          "width": 1024,          "height": 1024,          "bytes": 184320,          "url": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf",          "thumbUrl": "/api/v1/media/ast_01k8m3x9q2v7c5n4h6j0t1r8wf?variant=thumb"        }      ],      "isPublic": true,      "isFavorite": false,      "createdAt": 1760000000000,      "startedAt": 1760000000400,      "finishedAt": 1760000003600,      "owner": {        "name": "Layla"      }    }  ],  "nextCursor": null}
الأخطاء
  • 400bad_request

    The cursor is not one this API returned. Use a nextCursor as is.

  • 422validation_failed

    A parameter is not valid.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

Account

Your profile, credits, password and data.

get/account
مفتاح API أو جلسة60 requests per minute, per account

Get your account

Your profile and the credit balance right now.

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/account" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe account.

تُرجع User

مثال على الاستجابة · 200
{  "data": {    "id": "usr_01k8m3x9q2v7c5n4h6j0t1r8wd",    "email": "[email protected]",    "name": "Layla",    "role": "user",    "locale": "ar",    "creditBalance": 49,    "createdAt": 1759913600000,    "emailVerified": true,    "emailVerificationRequired": true,    "pendingBonusCredits": 0,    "hasPassword": true  }}
الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

patch/account
مفتاح API أو جلسة20 requests per minute, per account

Update your profile

Changes the display name and/or the preferred language. A language change also sets the aivore_locale cookie, so the next page of the web app is already in that language.

جسم الطلب application/json

The fields to change.

الحقول
الحقلالنوعالوصف
namestring

Display name, 1 to 80 printable characters.

1 to 80 characters

localestring

Preferred language of the web app. Also sets the aivore_locale cookie.

إحدى القيمaren

مثال على الجسم
{  "name": "Layla",  "locale": "ar"}
مثال على الطلب
cURL
curl -X PATCH "https://aivoraai.space/api/v1/account" \  -H "Authorization: Bearer $AIVORA_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "name": "Layla",    "locale": "ar"  }'
الاستجابات

200OKThe updated account.

تُرجع User

مثال على الاستجابة · 200
{  "data": {    "id": "usr_01k8m3x9q2v7c5n4h6j0t1r8wd",    "email": "[email protected]",    "name": "Layla",    "role": "user",    "locale": "ar",    "creditBalance": 49,    "createdAt": 1759913600000,    "emailVerified": true,    "emailVerificationRequired": true,    "pendingBonusCredits": 0,    "hasPassword": true  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    No valid API key or session.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The name is empty, too long or has unprintable characters; or nothing was sent.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

delete/account
جلسة المتصفح فقط5 requests per hour, per account

Delete your account

Permanently erases the account: sessions and API keys end at once, every generation, every board, every montage, every Site Builder project and every stored file is removed, and the profile is anonymised. The credit and payment records stay for accounting, without anything that names you. A confirmation email is sent.

An Android project’s Google Play upload key and its public privacy policy page are deleted with it: download a backup of the key first, since without it an update of the app on Google Play needs an upload key reset from Google. The address of a policy for which an App Bundle was started stays reserved for the deleted account, so that no other account can publish at the address a live app links to.

The current password must be sent to confirm. There is no undo.

جسم الطلب application/json

The current password.

الحقول
الحقلالنوعالوصف
passwordمطلوبstring

The current password, to confirm.

1 to 1024 characters

مثال على الجسم
{  "password": "correct horse battery staple"}
مثال على الطلب
cURL
curl -X DELETE -b cookies.txt "https://aivoraai.space/api/v1/account" \  -H "Origin: https://aivoraai.space" \  -H "Content-Type: application/json" \  -d '{    "password": "correct horse battery staple"  }'
الاستجابات

204No ContentDeleted. The session cookie is cleared.

الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    Deleting the account needs a browser session: an API key is refused. A cookie-authenticated request without a matching Origin header is also a 403.

  • 409password_not_set

    The account has no password (it signs in with Google), so there is nothing to confirm with. Set one through the password reset email first.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The password is wrong.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

  • 502provider_error

    A subscription could not be canceled with the payment provider, so nothing was deleted. Try again.

post/account/password
جلسة المتصفح فقط5 requests per minute, per account

Change your password

Sets a new password. Every other browser session of the account is signed out; this one stays. API keys are not affected.

جسم الطلب application/json

The current and the new password.

الحقول
الحقلالنوعالوصف
currentPasswordمطلوبstring

The password in use now. A wrong one is a 422 at currentPassword.

1 to 1024 characters

newPasswordمطلوبstring

8 to 128 characters, different from the current one.

at most 128 characters

مثال على الجسم
{  "currentPassword": "correct horse battery staple",  "newPassword": "a-much-longer-passphrase-2026"}
مثال على الطلب
cURL
curl -X POST -b cookies.txt "https://aivoraai.space/api/v1/account/password" \  -H "Origin: https://aivoraai.space" \  -H "Content-Type: application/json" \  -d '{    "currentPassword": "correct horse battery staple",    "newPassword": "a-much-longer-passphrase-2026"  }'
الاستجابات

204No ContentChanged.

الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    Changing the password needs a browser session: an API key is refused. A cookie-authenticated request without a matching Origin header is also a 403.

  • 409password_not_set

    The account has no password (it signs in with Google), so there is no current password to change. Set one through the password reset email.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The current password is wrong (currentPassword), the new one breaks the policy (password) or equals the current one (newPassword).

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

get/account/ledger
مفتاح API أو جلسة60 requests per minute, per account

Credit history

Every change of your credit balance, newest first: the signup bonus, what each generation cost, refunds and purchases. balanceAfter chains the entries together.

معاملات الاستعلام
الحقول
الحقلالنوعالوصف
limitinteger

How many items per page, 1 to 100.

1 to 100 · default 20 · example 20

cursorstring

The nextCursor of the previous page. Opaque: do not build or parse it. Anything else is a 400.

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/account/ledger?limit=20" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKA page of ledger entries.

تُرجع صفحة من LedgerEntry

مثال على الاستجابة · 200
{  "data": [    {      "id": "led_01k8m3x9q2v7c5n4h6j0t1r8wg",      "delta": -1,      "balanceAfter": 49,      "reason": "generation",      "generationId": "gen_01k8m3x9q2v7c5n4h6j0t1r8we",      "createdAt": 1760000000000    },    {      "id": "led_01k8m3t7e0f3g6h9j2k5m8n1pq",      "delta": 50,      "balanceAfter": 50,      "reason": "signup_bonus",      "createdAt": 1759913600000    }  ],  "nextCursor": null}
الأخطاء
  • 400bad_request

    The cursor is not one this API returned. Use a nextCursor as is.

  • 401unauthorized

    No valid API key or session.

  • 422validation_failed

    A parameter is not valid.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

get/account/export
جلسة المتصفح فقط3 requests per day, per account

Download your data

Everything the platform holds about you as one JSON file: profile, sessions, API key metadata (never secrets), credit history, purchases (orders and plans, without payment pages or gateway ids), generations, boards (the whole workflow document of each), montages (the whole timeline document of each), Site Builder projects (the chat and every kept version, the APK and App Bundle builds of Android apps, the Google Play release of each app with its upload certificate but never its upload key, the privacy policies published for them, and the policy addresses reserved for your account by an App Bundle, which stay listed after their project is deleted) and the URLs of the files. Streams as an attachment. Three downloads a day.

مثال على الطلب
cURL
curl -b cookies.txt "https://aivoraai.space/api/v1/account/export"
الاستجابات

200OKThe export, with Content-Disposition: attachment.

الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    Exporting your data needs a browser session: an API key is refused. A cookie-authenticated request without a matching Origin header is also a 403.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

API keys

Create and revoke the API keys that authenticate your code. Key management itself needs a browser session.

get/keys
جلسة المتصفح فقط60 requests per minute, per account

List your API keys

Every active key plus the most recently revoked ones, newest first. Only the prefix is shown, never the secret. nextCursor is always null.

مثال على الطلب
cURL
curl -b cookies.txt "https://aivoraai.space/api/v1/keys"
الاستجابات

200OKThe keys.

تُرجع صفحة من ApiKey

مثال على الاستجابة · 200
{  "data": [    {      "id": "key_01k8m3v2h5j8k1m4n7p0q3r6st",      "name": "Production server",      "prefix": "avk_ab12cd34",      "createdAt": 1759740800000,      "lastUsedAt": 1759999880000    }  ],  "nextCursor": null}
الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    Managing API keys needs a browser session: an API key is refused. A cookie-authenticated request without a matching Origin header is also a 403.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/keys
جلسة المتصفح فقط10 requests per minute, per account

Create an API key

Creates a key. The response carries the full secret in key, and this is the only time it is ever shown: store it now. You can have 20 active keys at most.

جسم الطلب application/json

A label for the key.

الحقول
الحقلالنوعالوصف
nameمطلوبstring

A label to recognise the key by, 1 to 60 printable characters.

1 to 60 characters

مثال على الجسم
{  "name": "Production server"}
مثال على الطلب
cURL
curl -X POST -b cookies.txt "https://aivoraai.space/api/v1/keys" \  -H "Origin: https://aivoraai.space" \  -H "Content-Type: application/json" \  -d '{    "name": "Production server"  }'
الاستجابات

201CreatedThe new key.

تُرجع CreatedApiKey

مثال على الاستجابة · 201
{  "data": {    "key": "avk_ab12cd34_Qm9sZDNyQ3VydGlzV2h5SXRSb2FyZWRfX1hZWg",    "record": {      "id": "key_01k8m3v2h5j8k1m4n7p0q3r6st",      "name": "Production server",      "prefix": "avk_ab12cd34",      "createdAt": 1760000000000    }  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    Creating API keys needs a browser session: an API key is refused (forbidden), and so is a cookie-authenticated request without a matching Origin header. Where email confirmation is required, an account that has not confirmed its address yet is refused too (email_not_verified): confirm it first.

  • 409conflict

    You already have 20 active keys. Revoke one first.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The name is empty or too long.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

delete/keys/{id}
جلسة المتصفح فقط10 requests per minute, per account

Revoke an API key

Stops the key working at once. Revoking a key twice is harmless. The key stays in the list as revoked.

معاملات المسار
الحقول
الحقلالنوعالوصف
idمطلوبstring

The key id (ApiKey.id), not the key itself.

example "key_01k8m3v2h5j8k1m4n7p0q3r6st"

مثال على الطلب
cURL
curl -X DELETE -b cookies.txt "https://aivoraai.space/api/v1/keys/key_01k8m3v2h5j8k1m4n7p0q3r6st" \  -H "Origin: https://aivoraai.space"
الاستجابات

204No ContentRevoked.

الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    Revoking API keys needs a browser session: an API key is refused. A cookie-authenticated request without a matching Origin header is also a 403.

  • 404not_found

    No key of yours has this id.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

Sessions and sign-in

The sign-in flows of the web app. A server using an API key never needs them; they are listed for completeness and for custom clients.

post/auth/register
لا تحتاج إلى بيانات اعتماد5 requests per hour, per IP address

Create an account

Creates an account and signs the browser in (aivore_session cookie). The account starts with no credits: the free signup credits are for accounts created with Google sign-in. Where email confirmation is required the account cannot generate until the address is confirmed.

Browsers send the Origin header on their own; any other client must send Origin equal to the site origin, or the request is a 403.

جسم الطلب application/json

The new account.

الحقول
الحقلالنوعالوصف
emailمطلوبstring

ASCII address, at most 254 characters. Stored in lower case.

at most 320 characters

passwordمطلوبstring

8 to 128 characters. Very common passwords and the address itself are refused.

at most 256 characters

nameمطلوبstring

Display name, 1 to 80 printable characters.

1 to 80 characters

localestring

Language of the web app for this account. Falls back to Accept-Language, then ar.

إحدى القيمaren

مثال على الجسم
{  "email": "[email protected]",  "password": "correct horse battery staple",  "name": "Layla",  "locale": "ar"}
مثال على الطلب
cURL
curl -X POST -c cookies.txt "https://aivoraai.space/api/v1/auth/register" \  -H "Origin: https://aivoraai.space" \  -H "Content-Type: application/json" \  -d '{    "email": "[email protected]",    "password": "correct horse battery staple",    "name": "Layla",    "locale": "ar"  }'
الاستجابات

201CreatedThe account, signed in.

تُرجع User

مثال على الاستجابة · 201
{  "data": {    "id": "usr_01k8m3x9q2v7c5n4h6j0t1r8wd",    "email": "[email protected]",    "name": "Layla",    "role": "user",    "locale": "ar",    "creditBalance": 49,    "createdAt": 1759913600000,    "emailVerified": true,    "emailVerificationRequired": true,    "pendingBonusCredits": 0,    "hasPassword": true  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 403signup_disabled

    Registration is closed (signup_disabled), or the request has no matching Origin (forbidden).

  • 409conflict

    This account could not be created with these details. The text is the same whatever the reason, so addresses cannot be probed.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    A field is not valid (validation_failed, for example a password on the deny list), or the address is a throwaway domain (email_not_allowed).

  • 429rate_limited

    Too many sign-ups (rate_limited) or too many accounts from this network today (signup_limit).

post/auth/login
لا تحتاج إلى بيانات اعتماد10 requests per minute, per IP address

Sign in

Signs the browser in with a new session cookie. Whatever is wrong with the credentials is the same 401 with the same text: the address is unknown, the password is wrong or the address is malformed. Only a body without the two fields is a 422.

Browsers send the Origin header on their own; any other client must send Origin equal to the site origin, or the request is a 403.

جسم الطلب application/json

The credentials.

الحقول
الحقلالنوعالوصف
emailمطلوبstring

The address the account was registered with.

at most 320 characters

passwordمطلوبstring

The account password.

1 to 1024 characters

مثال على الجسم
{  "email": "[email protected]",  "password": "correct horse battery staple"}
مثال على الطلب
cURL
curl -X POST -c cookies.txt "https://aivoraai.space/api/v1/auth/login" \  -H "Origin: https://aivoraai.space" \  -H "Content-Type: application/json" \  -d '{    "email": "[email protected]",    "password": "correct horse battery staple"  }'
الاستجابات

200OKThe account, signed in.

تُرجع User

مثال على الاستجابة · 200
{  "data": {    "id": "usr_01k8m3x9q2v7c5n4h6j0t1r8wd",    "email": "[email protected]",    "name": "Layla",    "role": "user",    "locale": "ar",    "creditBalance": 49,    "createdAt": 1759913600000,    "emailVerified": true,    "emailVerificationRequired": true,    "pendingBonusCredits": 0,    "hasPassword": true  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 401unauthorized

    Invalid email or password.

  • 403forbidden

    The account is disabled (only after the right password), or the request has no matching Origin.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    A field is missing or is not a string.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/auth/logout
لا تحتاج إلى بيانات اعتماد30 requests per minute, per IP address

Sign out

Ends this browser session and clears the cookie. Harmless without a session.

Browsers send the Origin header on their own; any other client must send Origin equal to the site origin, or the request is a 403.

مثال على الطلب
cURL
curl -X POST -b cookies.txt "https://aivoraai.space/api/v1/auth/logout" \  -H "Origin: https://aivoraai.space"
الاستجابات

204No ContentSigned out. The cookie is cleared.

الأخطاء
  • 403forbidden

    The request has no matching Origin.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/auth/logout-all
جلسة المتصفح فقط10 requests per minute, per account

Sign out everywhere

Ends every browser session of the account, this one included. API keys keep working.

مثال على الطلب
cURL
curl -X POST -b cookies.txt "https://aivoraai.space/api/v1/auth/logout-all" \  -H "Origin: https://aivoraai.space"
الاستجابات

204No ContentSigned out everywhere. The cookie is cleared.

الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 403forbidden

    An API key was used, or the request has no matching Origin.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

get/auth/me
بيانات الاعتماد اختيارية120 requests per minute, per account

Who am I

The signed-in account, or null for a visitor. Never a 401, so a page can ask on every load.

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/auth/me" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe account, or null when no valid credentials were sent.

تُرجع User أو null

مثال على الاستجابة · 200
{  "data": {    "id": "usr_01k8m3x9q2v7c5n4h6j0t1r8wd",    "email": "[email protected]",    "name": "Layla",    "role": "user",    "locale": "ar",    "creditBalance": 49,    "createdAt": 1759913600000,    "emailVerified": true,    "emailVerificationRequired": true,    "pendingBonusCredits": 0,    "hasPassword": true  }}
الأخطاء
  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/auth/password/forgot
لا تحتاج إلى بيانات اعتماد10 requests per hour, per IP address

Email a password reset link

Asks for a reset link. The answer is the same whether or not the address has an account, and the work happens after the response, so neither the text nor the timing reveals anything. The link works once, for one hour.

Browsers send the Origin header on their own; any other client must send Origin equal to the site origin, or the request is a 403.

جسم الطلب application/json

The address of the account.

الحقول
الحقلالنوعالوصف
emailمطلوبstring

The address of the account to recover.

at most 320 characters

مثال على الجسم
{  "email": "[email protected]"}
مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/auth/password/forgot" \  -H "Origin: https://aivoraai.space" \  -H "Content-Type: application/json" \  -d '{    "email": "[email protected]"  }'
الاستجابات

202AcceptedAccepted.

تُرجع Accepted

مثال على الاستجابة · 202
{  "data": {    "accepted": true  }}
الأخطاء
  • 400bad_request

    The body is not valid JSON.

  • 403forbidden

    The request has no matching Origin.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The address is not valid.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/auth/password/reset
لا تحتاج إلى بيانات اعتماد10 requests per hour, per IP address

Set a new password from an emailed link

Sets the password with the secret from the emailed link. Every session of the account is signed out (this call opens none: sign in with the new password), other reset links stop working and a notice is mailed. A password the policy refuses is a 422 and does not use up the link.

Browsers send the Origin header on their own; any other client must send Origin equal to the site origin, or the request is a 403.

جسم الطلب application/json

The link secret and the new password.

الحقول
الحقلالنوعالوصف
tokenمطلوبstring

The secret from the emailed link (?token=).

at most 256 characters

passwordمطلوبstring

The new password, 8 to 128 characters.

at most 256 characters

مثال على الجسم
{  "token": "k3JH9sQ0v5e1fLw8XnT2mZpR7uYbCaD4gIoE6hNqVxM",  "password": "a-much-longer-passphrase-2026"}
مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/auth/password/reset" \  -H "Origin: https://aivoraai.space" \  -H "Content-Type: application/json" \  -d '{    "token": "k3JH9sQ0v5e1fLw8XnT2mZpR7uYbCaD4gIoE6hNqVxM",    "password": "a-much-longer-passphrase-2026"  }'
الاستجابات

204No ContentThe password was changed.

الأخطاء
  • 400bad_request

    The link cannot be used. details.reason is invalid, expired or used. A body that is not valid JSON is a 400 too, without a reason.

  • 403forbidden

    The request has no matching Origin.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    The password breaks the policy.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/auth/verify-email/request
مفتاح API أو جلسة6 requests per hour, per account

Send a new confirmation link

Emails a fresh confirmation link to the signed-in account. A second request within 60 seconds is a 429 whose details.retryAfterSec says how long to wait.

مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/auth/verify-email/request" \  -H "Authorization: Bearer $AIVORA_API_KEY"
الاستجابات

200OKThe address is already confirmed; nothing was sent.

تُرجع VerifyEmailRequestResult

مثال على الاستجابة · 200
{  "data": {    "sent": false,    "verified": true,    "resendAfterSec": 0  }}

202AcceptedA link is on its way.

تُرجع VerifyEmailRequestResult

مثال على الاستجابة · 202
{  "data": {    "sent": true,    "verified": false,    "resendAfterSec": 60  }}
الأخطاء
  • 401unauthorized

    No valid API key or session.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

post/auth/verify-email/confirm
لا تحتاج إلى بيانات اعتماد30 requests per hour, per IP address

Confirm an email address

Confirms the address with the secret from the emailed link. This pays no credits on a server that gives the free signup credits to Google sign-in only (the default). Opening the link in a browser changes nothing by itself; the page it opens calls this endpoint, so mail scanners cannot use the link up. No session is needed: the link may be opened on another device.

جسم الطلب application/json

The link secret.

الحقول
الحقلالنوعالوصف
tokenمطلوبstring

The secret from the emailed link (?token=).

at most 256 characters

مثال على الجسم
{  "token": "k3JH9sQ0v5e1fLw8XnT2mZpR7uYbCaD4gIoE6hNqVxM"}
مثال على الطلب
cURL
curl -X POST "https://aivoraai.space/api/v1/auth/verify-email/confirm" \  -H "Content-Type: application/json" \  -d '{    "token": "k3JH9sQ0v5e1fLw8XnT2mZpR7uYbCaD4gIoE6hNqVxM"  }'
الاستجابات

200OKConfirmed.

تُرجع VerifyEmailConfirmResult

مثال على الاستجابة · 200
{  "data": {    "verified": true,    "alreadyVerified": false,    "bonusCredits": 0  }}
الأخطاء
  • 400bad_request

    The link cannot be used. details.reason is invalid, expired or used. A body that is not valid JSON is a 400 too, without a reason.

  • 413payload_too_large

    The body is larger than 8 KiB.

  • 415unsupported_media_type

    The request has no Content-Type: application/json header.

  • 422validation_failed

    token is missing or is not a string.

  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

OpenAPI

This API as a machine-readable document.

get/openapi.json
لا تحتاج إلى بيانات اعتماد60 requests per minute, per IP address

This API as OpenAPI 3.1

The machine-readable description of every endpoint on this page, as an OpenAPI 3.1 document. Feed it to a client generator, Postman or an API explorer. No credentials are needed; the answer is cached for a few minutes and supports ETag revalidation.

مثال على الطلب
cURL
curl "https://aivoraai.space/api/v1/openapi.json"
الاستجابات

200OKThe OpenAPI document.

304Not ModifiedNot modified: the If-None-Match ETag still matches.

الأخطاء
  • 429rate_limited

    The budget of this endpoint is spent. Wait and retry.

الكائنات

أشكال البيانات التي تعيدها نقاط النهاية. الحقل المعلَّم بأنه مطلوب موجود دائمًا، أما غيره فيُحذف حين لا ينطبق.

ErrorBody

Every failed request answers with this body, whatever the status.

الحقول
الحقلالنوعالوصف
errorمطلوبobject
error.codeمطلوبErrorCode
error.messageمطلوبstring

English text for developers and logs. Do not show it to users.

error.detailsany

Extra data for some codes: issues for validation_failed (see ValidationDetails), retryAfterSec for rate_limited and service_busy, required and balance for insufficient_credits, reason for some conflict and bad_request errors.

ValidationDetails

الحقول
الحقلالنوعالوصف
issuesمطلوبobject[]

Every problem found, so one request is enough to fix them all.

issues[].pathمطلوبstring

Dotted path of the field in the request, such as params.count. Empty for the whole body.

issues[].messageمطلوبstring

What is wrong, in English.

User

الحقول
الحقلالنوعالوصف
idمطلوبstring

User id, usr_ followed by 26 characters.

emailمطلوبstring

Sign-in address, lower case.

nameمطلوبstring

Display name.

roleمطلوبstring

إحدى القيمuseradmin

localeمطلوبstring

Preferred language of the web app.

إحدى القيمaren

creditBalanceمطلوبinteger

Credits the account can spend right now.

createdAtمطلوبinteger

When the account was created, in milliseconds since the Unix epoch.

emailVerifiedمطلوبboolean

Whether the sign-in address was confirmed.

emailVerificationRequiredمطلوبboolean

Whether this server asks for a confirmed address before the account may generate or buy credits. While it is true and emailVerified is false, creating a generation answers email_not_verified (403).

pendingBonusCreditsمطلوبinteger

Free credits that confirming the address would add right now. Always 0 on a server that gives the free sign-up credits to Google sign-in only (the default): confirming a password account pays nothing.

hasPasswordمطلوبboolean

Whether the account has a password. It is false for an account that signs in with Google and never chose one: changing the password or deleting the account with it answers password_not_set (409) until one is set through the reset email.

Asset

الحقول
الحقلالنوعالوصف
idمطلوبstring

Asset id, ast_ followed by 26 characters.

kindمطلوبstring

إحدى القيمimagevideoaudiotext

mimeTypeمطلوبstring

Content type of the file. Demo videos are animated GIFs (image/gif); real providers return video/mp4.

widthinteger

Pixels. For a video, the size it is shown at (rotation applied), read from the file when it is stored. Absent on videos stored before sizes were read, and on a file whose container does not say.

heightinteger

Pixels. See width.

durationMsinteger

Length of a video or a sound, in milliseconds. A sound is measured by the server from the file itself, never taken from what an upload claims; a video reports the length its file does.

bytesمطلوبinteger

Size of the file.

urlمطلوبstring

Path of the file, /api/v1/media/{id}. Send the same credentials to fetch it.

thumbUrlstring

Path of the 512 px WebP thumbnail, when there is one (?variant=thumb). For a generated video, its poster: a frame about half a second in.

previewUrlstring

Path of a WebP of at most 2048 px (?variant=preview), on a picture of a model that is bigger than 1600 px (a 2K or 4K result). Show this one; url is the file itself (a 4K PNG is 20 to 30 MB), for zooming and downloading. A picture made before previews existed answers with the file itself. On a generated video: its light copy to watch, an MP4 (H.264, 720 px on the short side, about 2 Mbit/s, ready to stream) served with byte ranges like the file; url stays the original, for downloading and processing. Absent on a video without one (made before light copies, or light already). Add &download=1 to save it (aivora-video-<id>-720p.mp4).

previewBytesinteger

A video's light copy (previewUrl): its size in bytes.

previewWidthinteger

A video's light copy: its width in pixels.

previewHeightinteger

A video's light copy: its height in pixels.

hasAudioboolean | null

A video: whether it has a sound track, read from the file when it was stored. Absent or null when that is not known (a video stored before this was recorded, a picture, a sound).

Generation

الحقول
الحقلالنوعالوصف
idمطلوبstring

Generation id, gen_ followed by 26 characters.

toolمطلوبstring

The tool that was run.

إحدى القيمtext-to-imageimage-to-imagetext-to-videoimage-to-videotext-to-speechspeech-to-speechsound-effectsmusicspeech-to-textmontage-export

kindمطلوبstring

What the result is, following the tool: image, video, audio or text.

إحدى القيمimagevideoaudiotext

modelIdمطلوبstring

The model that was used.

promptمطلوبstring

The prompt, trimmed.

promptTruncatedboolean

Only on the public Explore feed, and only true: prompt is the first 1000 characters of a longer prompt. The whole text is on the share page.

negativePromptstring

What the request asked to avoid.

paramsمطلوبobject

The parameters actually used, with defaults filled in.

params.aspectRatioمطلوبstring

Width to height of the result.

إحدى القيم1:116:99:164:33:43:22:321:9

params.countمطلوبinteger

How many images were requested. Videos, sounds and transcripts are always 1.

params.durationSecinteger

Video, sound-effect or music length in seconds.

params.resolutionstring

Video resolution (480p, 720p, 1080p, 4K) or image quality (1K, 2K, 4K); it sets the price. Always present on a generation made today, as the best tier the model offers unless the request named another.

إحدى القيم480p720p1080p1K2K4K

params.seedinteger

The seed, when one was given.

params.strengthnumber

How far image-to-image strays from the input.

params.voiceIdstring

Text to speech and speech to speech: the voice used, from the curated list. Filled with the default voice when the request named none.

params.speednumber

Text to speech: the speed, when one was given.

params.stabilitynumber

Text to speech: the stability, when one was given.

params.tonestring

Text to speech: the tone (energetic, announcer, calm), when one was given.

إحدى القيمenergeticannouncercalm

params.pitchnumber

Text to speech: the pitch in semitones from the voice’s own, when one was given.

params.languagestring

Text to speech and speech to text: the language code, when one was given.

params.instrumentalboolean

Music: whether it is without singing. Always present on music.

params.loopboolean

Sound effects: whether the sound repeats without a seam. Always present there.

params.rightsConfirmedboolean

Speech to speech: that the right to use the recording was confirmed.

statusمطلوبstring

queued and processing are in progress; succeeded, failed and canceled are final.

إحدى القيمqueuedprocessingsucceededfailedcanceled

progressمطلوبinteger

0 to 100. Only moves forward.

costمطلوبinteger

Credits charged. Refunded in full if the generation fails.

errorobject

Present when status is failed.

error.codeمطلوبstring

Why it failed: invalid_input, prompt_too_long (the provider refused the text as too long), content_policy, rate_limited, unavailable, timeout, internal, interrupted or prerequisite_failed (the video of a service chain was not started because its first step did not succeed).

error.messageمطلوبstring

English, user-safe.

outputsمطلوبAsset[]

The results, in order. Empty until the generation succeeds.

inputAsset

The input image of an image-to-image or image-to-video generation.

inputsAsset[]

Only when the request sent several pictures (inputAssetIds): every one still stored, in order. input is the first.

isPublicمطلوبboolean

Whether the results appear on the public Explore feed.

isFavoriteمطلوبboolean
createdAtمطلوبinteger

When the request was accepted, in milliseconds since the Unix epoch.

startedAtinteger

When a worker picked it up, in milliseconds since the Unix epoch.

finishedAtinteger

When it reached a final status, in milliseconds since the Unix epoch.

ownerobject

Only on the public Explore feed. The name is the first word of the account name.

owner.nameمطلوبstring
serviceobject

Only on the two generations of a service chain, and only for their owner.

service.idمطلوب"character-sheet"

The service this generation is a step of.

service.stepمطلوب1 | 2

1 is the character sheet (an image), 2 the video made from it.

service.stepsمطلوب2

How many generations the service makes.

service.labelstring

The name or title written on the sheet, as you sent it.

service.previousIdstring

On step 2, the id of the sheet the video will be made from: the newest one, if the first was made again. Absent once the sheet was deleted.

service.nextIdstring

On step 1, the id of the video that follows it. Only on the newest sheet of the request.

service.waitingboolean

Only true: step 2 is queued and has not started, and its sheet exists. It starts by itself, without any request from you, as soon as the sheet has passed the quality check. It stays true while the sheet is made, while it is checked and while it waits in a review for your decision.

service.waitingForstring

With waiting: sheet while the sheet is being made, check while it is being checked, review while it waits for your decision.

إحدى القيمsheetcheckreview

service.closedReasonstring

On a canceled step 2 that never started, when you did not cancel the video yourself: sheet_canceled (the sheet was canceled and took the video along), request_canceled (you ended the request in the review) or expired (nobody decided on the sheet in time). Absent when you canceled the video itself.

إحدى القيمsheet_canceledrequest_canceledexpired

service.checkobject

On step 1: where the sheet is in the quality check that stands between it and the video. Absent on sheets made before the check existed and when the check is switched off.

service.check.stateمطلوبstring

pending: being made. checking: made, being looked at. passed: good, the video was released. approved: you accepted it in a review, the video was released. review: it did not pass and waits for your decision (see actions). rejected: it did not pass and replacedById made it again. closed: the request ended without a video from it (reason).

إحدى القيمpendingcheckingpassedapprovedreviewrejectedclosed

service.check.attemptمطلوبinteger

1 for the first sheet, 2 for the next, and so on.

service.check.maxAttemptsمطلوبinteger

How many sheets the server makes by itself before it asks you (3). Attempts above it are sheets you asked for in a review.

service.check.issuesstring[]

Why the check turned this sheet down, from a closed list: blurred_figures, figures, faces, heading, overall, low_quality, or check_unavailable when the check itself could not run. Only on rejected, review and closed sheets, and never empty.

إحدى القيمblurred_figuresfiguresfacesheadingoveralllow_qualitycheck_unavailable

service.check.reasonstring

On review: attempts (it still failed after the last automatic sheet), budget (the platform could not afford another sheet right now) or unavailable (the check could not run). On closed: canceled, expired (nobody decided in time) or video_gone (the video was canceled or deleted).

إحدى القيمattemptsbudgetunavailableexpiredcanceledvideo_gone

service.check.retryOfIdstring

The sheet this one was made to replace.

service.check.replacedByIdstring

On a rejected sheet, the sheet that replaced it. Read it: it may not be in a list you already hold.

service.check.reviewExpiresAtinteger

When a review closes by itself: 12 hours after the sheet, or 20 hours after the request, whichever comes first, in milliseconds since the Unix epoch.

service.check.actionsstring[]

On review, what you may do: approve (use this sheet), regenerate (make another one; missing once the last allowed sheet was made) and cancel (cancel the video and get everything back).

إحدى القيمapproveregeneratecancel

montageobject

Only on a saved montage export, and only for its owner: the montage it came from.

montage.idمطلوبstring

Montage id, mtg_ followed by 26 characters.

montage.nameمطلوبstring

The montage name at the time the response is built.

Model

الحقول
الحقلالنوعالوصف
idمطلوبstring

Pass this as modelId when you create a generation.

providerمطلوبstring

إحدى القيمmockopenaifalreplicateelevenlabslocalanthropic

kindمطلوبstring

إحدى القيمimagevideoaudiotext

toolsمطلوبstring[]

The tools this model serves.

إحدى القيمtext-to-imageimage-to-imagetext-to-videoimage-to-videotext-to-speechspeech-to-speechsound-effectsmusicspeech-to-textmontage-export

labelمطلوبstring
descriptionمطلوبobject
description.enمطلوبstring
description.arمطلوبstring
badgesstring[]

إحدى القيمfastqualitynewdemoaudio

qualityRankمطلوبinteger

How good the model is among those that serve the same tool: 1 is the best. The studio opens on the best model that is available, and the list comes best first within each kind.

limitsمطلوبobject
limits.providerPromptCharsinteger

The longest prompt the model's provider documents, in characters. Absent when it documents none. Information only: a longer prompt is accepted and sent as written, and the provider may refuse it (the generation then fails with prompt_too_long and is refunded).

limits.aspectRatiosمطلوبstring[]

إحدى القيم1:116:99:164:33:43:22:321:9

limits.defaultAspectRatioمطلوبstring

إحدى القيم1:116:99:164:33:43:22:321:9

limits.maxCountمطلوبinteger

Most outputs per generation. Videos, sounds and transcripts allow 1.

limits.defaultCountمطلوبinteger
limits.durationsinteger[]

Allowed lengths in seconds: of a video, or of the sound a model makes.

limits.defaultDurationinteger
limits.resolutionsstring[]

The resolutions of a video model (480p, 720p, 1080p, 4K) or the qualities of an image model (1K, 2K, 4K), worst first. Absent when the model has a single size.

إحدى القيم480p720p1080p1K2K4K

limits.defaultResolutionstring

What a request that names no resolution runs with: the best tier the model offers, which is also the dearest. Choose a lower one to pay less.

إحدى القيم480p720p1080p1K2K4K

limits.supportsNegativePromptمطلوبboolean
limits.supportsSeedمطلوبboolean
limits.supportsStrengthمطلوبboolean
limits.followsInputAspectboolean

The result keeps the proportions of the input image. aspectRatio is accepted and ignored.

limits.maxInputImagesinteger

How many pictures a request may send in inputAssetIds (absent: one). An image edit combines them as references; Kling image to video takes a first and a last frame, in that order.

limits.maxInputCharsinteger

Sound models: the longest prompt or script the model takes, in characters. Unlike providerPromptChars this is enforced: a longer text is a 422 (out_of_range) and nothing is charged.

limits.maxInputSecinteger

Speech to speech and speech to text: the longest input recording the model takes, in seconds. A longer one is refused before anything is charged.

limits.voicestrue

The model speaks with a voice. voiceId is one of the curated voices of its provider; no other voice exists and there is no voice cloning.

limits.languagesstring[]

ISO 639-1 codes of the languages the model speaks or reads. The allowed values of params.language when supportsLanguage is true.

limits.supportsLanguageboolean

params.language is accepted. Left out, the model detects the language itself.

limits.supportsLoopboolean

params.loop is accepted.

limits.supportsInstrumentalboolean

params.instrumental is accepted.

limits.speedobject

Text to speech: the range of params.speed (1 is the voice's own pace). Absent: the model takes no speed.

limits.speed.minمطلوبnumber
limits.speed.maxمطلوبnumber
limits.pitchobject

Text to speech: the range of params.pitch in semitones from the voice's own, on a grid of step from min. Absent: the model cannot change the pitch and refuses params.pitch (no ElevenLabs model has one).

limits.pitch.minمطلوبnumber
limits.pitch.maxمطلوبnumber
limits.pitch.stepمطلوبnumber
limits.tonesstring[]

Text to speech: the values params.tone may take. energetic is lively, announcer a confident advertising read, calm a calm, warm read.

إحدى القيمenergeticannouncercalm

limits.toneTagstrue

Text to speech: the model is told the tone as an audio tag written ahead of the script (such as [excited]). The provider bills the tag like the script, so it counts toward the price and toward maxInputChars.

limits.outputFormatsstring[]

Sound: the format of the file the model makes, as it is stored (mp3 or wav). Information only: a request does not choose it.

إحدى القيمmp3wav

limits.timestampsstring

Text to speech: where exact word times for subtitles can come from. native: the provider can return them with the sound (not requested yet). stt: a speech-to-text pass over the result. none: only an estimate from the script.

إحدى القيمnativesttnone

pricingمطلوبobject
pricing.type"image"
pricing.perImageinteger

Credits per image at the model's default resolution (the best it offers). A model with several qualities lists each in perImageByResolution.

pricing.perImageByResolutionobject

Credits per image at each quality the model offers, when they differ.

pricing.perImageByResolution.1Kinteger
pricing.perImageByResolution.2Kinteger
pricing.perImageByResolution.4Kinteger
pricing.type"video"
pricing.perSecondobject

Credits per second of video, by resolution.

pricing.perSecond.480pinteger
pricing.perSecond.720pinteger
pricing.perSecond.1080pinteger
pricing.perSecond.4Kinteger
pricing.type"metered"
pricing.unitstring

thousandChars: per 1,000 characters of the script. outputSecond: per second of sound made (the durationSec you choose). inputSecond: per second of the recording you send.

إحدى القيمthousandCharsoutputSecondinputSecond

pricing.creditsnumber

Credits per unit, which may be a fraction. A call costs this times its units, rounded up, and never less than 1 credit; the cost is known before anything is charged.

availableمطلوبboolean

False when the provider is not configured on this deployment. Such models cannot be used.

unavailableReason"not_configured"

Tool

الحقول
الحقلالنوعالوصف
idمطلوبstring

إحدى القيمtext-to-imageimage-to-imagetext-to-videoimage-to-videotext-to-speechspeech-to-speechsound-effectsmusicspeech-to-textmontage-export

kindمطلوبstring

إحدى القيمimagevideoaudiotext

needsInputImageمطلوبboolean

When true, the request must carry inputAssetId (see POST /uploads).

inputمطلوبstring

What the request must carry as inputAssetId: nothing, a picture (see POST /uploads) or an audio asset.

إحدى القيمnoneimageaudio

needsPromptمطلوبboolean

When false, the tool works on its input alone and prompt may be empty (it is stored empty).

creatableمطلوبboolean

Whether POST /generations accepts the tool. This listing holds creatable tools only.

iconمطلوبstring

lucide icon name, for UIs.

i18nKeyمطلوبstring

Message key prefix used by the web app.

LedgerEntry

الحقول
الحقلالنوعالوصف
idمطلوبstring

Ledger entry id, led_ followed by 26 characters.

deltaمطلوبinteger

Credits added (positive) or spent (negative).

balanceAfterمطلوبinteger

The balance right after this entry.

reasonمطلوبstring

إحدى القيمsignup_bonusgenerationrefundadmin_grantpurchaseadjustment

generationIdstring

The generation this entry is about (gen_), which GET /generations/{id} reads. For a Site Builder request it is the turn id (trn_) instead, and for the fixed price of a native Android app (its APK and Android Studio project) the APK build id (apk_); neither is a generation. Absent for grants and purchases.

notestring
createdAtمطلوبinteger

When it was recorded, in milliseconds since the Unix epoch.

ApiKey

الحقول
الحقلالنوعالوصف
idمطلوبstring

Key id, key_ followed by 26 characters. Use it to revoke the key.

nameمطلوبstring
prefixمطلوبstring

The first characters of the key, such as avk_ab12cd34. Enough to recognise it.

createdAtمطلوبinteger

When the key was created, in milliseconds since the Unix epoch.

lastUsedAtinteger

The last request made with it (updated at most every 5 minutes), in milliseconds since the Unix epoch.

revokedAtinteger

When it was revoked, in milliseconds since the Unix epoch.

CreatedApiKey

الحقول
الحقلالنوعالوصف
keyمطلوبstring

The full secret, avk_<prefix>_<secret>. This response is the only time it is ever shown: store it now.

recordمطلوبApiKey

CharacterSheetResult

الحقول
الحقلالنوعالوصف
generationsمطلوبGeneration[]

The sheet first (service.step 1), then the video that follows it (service.step 2). Pick them by service.step, not by position: a replay after the video was deleted holds the sheet alone.

EnhancedPrompt

الحقول
الحقلالنوعالوصف
promptمطلوبstring

The improved prompt.

engineمطلوبstring

What produced it.

إحدى القيمopenaianthropicheuristic

translatedمطلوبboolean

True when an Arabic draft came back in English.

Accepted

الحقول
الحقلالنوعالوصف
acceptedمطلوبtrue

The request was taken. Nothing else is revealed.

VerifyEmailRequestResult

الحقول
الحقلالنوعالوصف
sentمطلوبboolean

A new confirmation link was sent.

verifiedمطلوبboolean

The address was already confirmed, so nothing was sent.

resendAfterSecمطلوبinteger

Seconds to wait before asking for another link; 0 when nothing was sent.

VerifyEmailConfirmResult

الحقول
الحقلالنوعالوصف
verifiedمطلوبtrue
alreadyVerifiedمطلوبboolean
bonusCreditsمطلوبinteger

Signup credits released by the confirmation. 0 on a server that gives them to Google sign-in only (the default).

مستند OpenAPI

الواجهة كاملة في مستند OpenAPI 3.1. استورده في Postman أو Insomnia، أو ولّد منه عميلًا مضبوط الأنواع للغتك.

cURL
curl -O https://aivoraai.space/api/v1/openapi.json
افتح المستند/api/v1/openapi.json