NONDA / API

One key for every model you make with.

Images, video, voice, 3D and chat from your own code, on the same models as the Nonda studio, paid with API credits.

Connect once

One request shape. Five kinds of output.

Send JSON with a Bearer key. Results land in your Nonda library too, so you can open them in the studio.

Image · curl
curl https://nonda.ai/api/v1/generate/image \
  -H "Authorization: Bearer $NONDA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"gpt-image","prompt":"A ceramic mug on a sunlit oak desk, soft shadows","ratio":"4:5","count":1}'

Every model, one key

Live on the API right now

Prices are what your API credits are charged per unit; 70 API credits cost $1.

Image55

  • GPT ImageOpenAI
    Live
    per image
    20 credits ≈ $0.29
  • GPT Image 2OpenAI
    Live
    per image
    15 credits ≈ $0.21
  • GPT Image 2.6 SunburstOpenAI
    Live
    per image
    15 credits ≈ $0.21
  • GPT Image 2.6 FlareOpenAI
    Live
    per image
    15 credits ≈ $0.21
  • GPT Image 2.5 SunburstOpenAI
    Live
    per image
    15 credits ≈ $0.21
  • GPT Image 2.5 FlareOpenAI
    Live
    per image
    15 credits ≈ $0.21
  • GPT-5.4 Image 2OpenAI
    Live
    per image
    15 credits ≈ $0.21
  • GPT-5 ImageOpenAI
    Live
    per image
    20 credits ≈ $0.29
  • GPT-5 Image MiniOpenAI
    Live
    per image
    4 credits ≈ $0.0571
  • GPT Image 1 MiniOpenAI
    Live
    per image
    4 credits ≈ $0.0571
  • FLUX 3Black Forest Labs
    Live
    per image
    15 credits ≈ $0.21
  • FLUX 3 KleinBlack Forest Labs
    Live
    per image
    3 credits ≈ $0.0429
  • Nano Banana 2Google
    Live
    per image
    23 credits ≈ $0.33
  • Nano Banana 2.1Google
    Live
    per image
    11 credits ≈ $0.16
  • Nano Banana 2 LiteGoogle
    Live
    per image
    11 credits ≈ $0.16
  • Grok ImaginexAI
    Live
    per image
    18 credits ≈ $0.26
  • Qwen Image 3Alibaba
    Live
    per image
    11 credits ≈ $0.16
  • Qwen Image 3 ProAlibaba
    Live
    per image
    26 credits ≈ $0.37
  • Qwen Image 2.1 ProAlibaba
    Live
    per image
    14 credits ≈ $0.20
  • Qwen Image 2.1 TurboAlibaba
    Live
    per image
    6 credits ≈ $0.0857
  • FLUX.2 ProBlack Forest Labs
    Live
    per image
    9 credits ≈ $0.13
  • FLUX.2 MaxBlack Forest Labs
    Live
    per image
    21 credits ≈ $0.30
  • FLUX.2 FlexBlack Forest Labs
    Live
    per image
    38 credits ≈ $0.54
  • FLUX.2 Klein 4BBlack Forest Labs
    Live
    per image
    5 credits ≈ $0.0714
  • Nano BananaGoogle
    Live
    per image
    12 credits ≈ $0.17
  • Nano Banana ProGoogle
    Live
    per image
    41 credits ≈ $0.59
  • Seedream 4.5ByteDance
    Live
    per image
    12 credits ≈ $0.17
  • Seedream 5.0 ProByteDance
    Live
    per image
    17 credits ≈ $0.24
  • Seedream 5.5ByteDance
    Live
    per image
    16 credits ≈ $0.23
  • Seedream 5.0 LiteByteDance
    Live
    per image
    11 credits ≈ $0.16
  • Seedream 5.0 FlashByteDance
    Live
    per image
    6 credits ≈ $0.0857
  • Recraft V3Recraft
    Live
    per image
    12 credits ≈ $0.17
  • Recraft V4.1Recraft
    Live
    per image
    11 credits ≈ $0.16
  • Recraft V4.1 ProRecraft
    Live
    per image
    63 credits ≈ $0.90
  • Recraft V4.1 UtilityRecraft
    Live
    per image
    11 credits ≈ $0.16
  • Recraft V4.1 Utility ProRecraft
    Live
    per image
    63 credits ≈ $0.90
  • Recraft V4.1 FlashRecraft
    Live
    per image
    3 credits ≈ $0.0429
  • Recraft V4Recraft
    Live
    per image
    12 credits ≈ $0.17
  • Recraft V4 ProRecraft
    Live
    per image
    75 credits ≈ $1.07
  • Krea 2Krea
    Live
    per image
    9 credits ≈ $0.13
  • Krea 2 LargeKrea
    Live
    per image
    18 credits ≈ $0.26
  • Krea 2 TurboKrea
    Live
    per image
    5 credits ≈ $0.0714
  • MAI Image 2.7Microsoft
    Live
    per image
    22 credits ≈ $0.31
  • MAI Image 2.7 FlashMicrosoft
    Live
    per image
    7 credits ≈ $0.10
  • MAI Image 2.6Microsoft
    Live
    per image
    24 credits ≈ $0.34
  • MAI Image 2.6 FlashMicrosoft
    Live
    per image
    12 credits ≈ $0.17
  • Muse ImageMeta
    Live
    per image
    3 credits ≈ $0.0429
  • MiniMax H3 ImageMiniMax
    Live
    per image
    5 credits ≈ $0.0714
  • MiniMax H3 Image HighspeedMiniMax
    Live
    per image
    10 credits ≈ $0.14
  • Hunyuan Image 3.5Tencent
    Live
    per image
    3 credits ≈ $0.0429
  • Riverflow 2.6 ProSourceful
    Live
    per image
    45 credits ≈ $0.64
  • Riverflow 2.5 ProSourceful
    Live
    per image
    45 credits ≈ $0.64
  • Riverflow 2.5 FastSourceful
    Live
    per image
    7 credits ≈ $0.10
  • Riverflow 2 ProSourceful
    Live
    per image
    45 credits ≈ $0.64
  • Riverflow 2 FastSourceful
    Live
    per image
    12 credits ≈ $0.17

Video22

  • Seedance 2.5ByteDance
    Live
    per second · 720p
    70 credits ≈ $1.00
  • Seedance 2.5 FlashByteDance
    Live
    per second · 720p
    46 credits ≈ $0.66
  • Seedance 2.0ByteDance
    Live
    per second · 720p
    46 credits ≈ $0.66
  • Seedance 2.0 FastByteDance
    Live
    per second · 720p
    37 credits ≈ $0.53
  • Seedance 2.0 MiniByteDance
    Live
    per second · 720p
    23 credits ≈ $0.33
  • Veo 3.1Google DeepMind
    Live
    per second · 720p
    60 credits ≈ $0.86
  • Veo 3.1 FastGoogle DeepMind
    Live
    per second · 720p
    24 credits ≈ $0.34
  • Veo 3.1 LiteGoogle DeepMind
    Live
    per second · 720p
    9 credits ≈ $0.13
  • Grok Imagine VideoxAI
    Live
    per second · 720p
    42 credits ≈ $0.60
  • Grok Imagine Video LitexAI
    Live
    per second · 720p
    9 credits ≈ $0.13
  • Grok Imagine Video 1.0xAI
    Live
    per second · 720p
    21 credits ≈ $0.30
  • FLUX 3 VideoBlack Forest Labs
    Live
    per second · 720p
    51 credits ≈ $0.73
  • Gemini Omni FlashGoogle DeepMind
    Live
    per second · 720p
    21 credits ≈ $0.30
  • Gemini Omni 1.1 FlashGoogle DeepMind
    Live
    per second · 720p
    31 credits ≈ $0.44
  • Runway Gen-4.5Runway
    Live
    per second · 720p
    36 credits ≈ $0.51
  • Hailuo 2.3MiniMax
    Live
    per second · 720p
    25 credits ≈ $0.36
  • Hailuo 3MiniMax
    Live
    per second · 720p
    18 credits ≈ $0.26
  • Hailuo 3 MaxMiniMax
    Live
    per second · 720p
    24 credits ≈ $0.34
  • Wan 3.0Alibaba
    Live
    per second · 720p
    30 credits ≈ $0.43
  • Wan 3.0 PrimeAlibaba
    Live
    per second · 720p
    42 credits ≈ $0.60
  • HappyHorse 1.1Alibaba
    Live
    per second · 720p
    30 credits ≈ $0.43
  • HappyHorse 1.0Alibaba
    Live
    per second · 720p
    30 credits ≈ $0.43

Audio15

  • Lyria 3Google DeepMind
    Live
    per second · music & effects
    1.1 credits ≈ $0.0157
  • ElevenLabs v4ElevenLabs
    Live
    per 1,000 characters · speech
    30.5 credits ≈ $0.44
  • ElevenLabs v4 TurboElevenLabs
    Live
    per 1,000 characters · speech
    15.3 credits ≈ $0.22
  • ElevenLabs v3ElevenLabs
    Live
    per 1,000 characters · speech
    30.5 credits ≈ $0.44
  • ElevenLabs Multilingual v2ElevenLabs
    Live
    per 1,000 characters · speech
    30.5 credits ≈ $0.44
  • ElevenLabs Flash v2.5ElevenLabs
    Live
    per 1,000 characters · speech
    15.3 credits ≈ $0.22
  • Gemini 3.8 Flash TTSGoogle
    Live
    per 1,000 characters · speech
    15.3 credits ≈ $0.22
  • MiniMax Speech 2.8 HDMiniMax
    Live
    per 1,000 characters · speech
    38.1 credits ≈ $0.54
  • MiniMax Speech 2.8 TurboMiniMax
    Live
    per 1,000 characters · speech
    22.9 credits ≈ $0.33
  • MAI-Voice 2.1Microsoft
    Live
    per 1,000 characters · speech
    8.4 credits ≈ $0.12
  • Grok Voice TTS 1.0xAI
    Live
    per 1,000 characters · speech
    5.8 credits ≈ $0.0829
  • Voxtral TTS 3Mistral AI
    Live
    per 1,000 characters · speech
    5 credits ≈ $0.0714
  • Qwen3 TTSAlibaba
    Live
    per 1,000 characters · speech
    7.7 credits ≈ $0.11
  • Deepgram Aura-2Deepgram
    Live
    per 1,000 characters · speech
    11.5 credits ≈ $0.16
  • Kokoro 82Mhexgrad
    Live
    per 1,000 characters · speech
    0.4 credits ≈ $0.0057

3D0

No model of this kind is connected on this deployment yet.

Chat14

  • GPTOpenAI
    Live
    per 1M input tokens · from
    34.6 credits ≈ $0.49
    per 1M output tokens · from
    173 credits ≈ $2.47
  • ClaudeAnthropic
    Live
    per 1M input tokens · from
    34.6 credits ≈ $0.49
    per 1M output tokens · from
    173 credits ≈ $2.47
  • GeminiGoogle
    Live
    per 1M input tokens · from
    86.5 credits ≈ $1.24
    per 1M output tokens · from
    519 credits ≈ $7.41
  • DeepSeekDeepSeek
    Live
    per 1M input tokens · from
    15.78 credits ≈ $0.23
    per 1M output tokens · from
    93.42 credits ≈ $1.33
  • GrokxAI
    Live
    per 1M input tokens · from
    432.5 credits ≈ $6.18
    per 1M output tokens · from
    865 credits ≈ $12.36
  • MistralMistral AI
    Live
    per 1M input tokens · from
    51.9 credits ≈ $0.74
    per 1M output tokens · from
    207.6 credits ≈ $2.97
  • QwenAlibaba
    Live
    per 1M input tokens · from
    51.9 credits ≈ $0.74
    per 1M output tokens · from
    162.62 credits ≈ $2.32
  • LlamaMeta
    Live
    per 1M input tokens · from
    34.6 credits ≈ $0.49
    per 1M output tokens · from
    103.8 credits ≈ $1.48
  • PerplexityPerplexity
    Live
    per 1M input tokens · from
    346 credits ≈ $4.94
    per 1M output tokens · from
    346 credits ≈ $4.94
  • KimiMoonshot
    Live
    per 1M input tokens · from
    66.43 credits ≈ $0.95
    per 1M output tokens · from
    1,038 credits ≈ $14.83
  • GLMZ.ai
    Live
    per 1M input tokens · from
    12.32 credits ≈ $0.18
    per 1M output tokens · from
    28.2 credits ≈ $0.40
  • CommandCohere
    Live
    per 1M input tokens · from
    12.98 credits ≈ $0.19
    per 1M output tokens · from
    51.9 credits ≈ $0.74
  • NemotronNVIDIA
    Live
    per 1M input tokens · from
    24.22 credits ≈ $0.35
    per 1M output tokens · from
    69.2 credits ≈ $0.99
  • GemmaGoogle
    Live
    per 1M input tokens · from
    27.68 credits ≈ $0.40
    per 1M output tokens · from
    55.36 credits ≈ $0.79

2 more supported models switch on here as soon as they are connected.

Pricing

Pay per request. Nothing monthly.

API credits are separate from studio credits and never expire. A request reserves its quote and settles at the real usage; failed requests are refunded.

ModelKindUnitCreditsUSD
GPTChatper 1M input tokens · from34.6$0.49
GPTChatper 1M output tokens · from173$2.47
ClaudeChatper 1M input tokens · from34.6$0.49
ClaudeChatper 1M output tokens · from173$2.47
GeminiChatper 1M input tokens · from86.5$1.24
GeminiChatper 1M output tokens · from519$7.41
DeepSeekChatper 1M input tokens · from15.78$0.23
DeepSeekChatper 1M output tokens · from93.42$1.33
GrokChatper 1M input tokens · from432.5$6.18
GrokChatper 1M output tokens · from865$12.36
MistralChatper 1M input tokens · from51.9$0.74
MistralChatper 1M output tokens · from207.6$2.97
QwenChatper 1M input tokens · from51.9$0.74
QwenChatper 1M output tokens · from162.62$2.32
LlamaChatper 1M input tokens · from34.6$0.49
LlamaChatper 1M output tokens · from103.8$1.48
PerplexityChatper 1M input tokens · from346$4.94
PerplexityChatper 1M output tokens · from346$4.94
KimiChatper 1M input tokens · from66.43$0.95
KimiChatper 1M output tokens · from1,038$14.83
GLMChatper 1M input tokens · from12.32$0.18
GLMChatper 1M output tokens · from28.2$0.40
CommandChatper 1M input tokens · from12.98$0.19
CommandChatper 1M output tokens · from51.9$0.74
NemotronChatper 1M input tokens · from24.22$0.35
NemotronChatper 1M output tokens · from69.2$0.99
GPT ImageImageper image20$0.29
GPT Image 2Imageper image15$0.21
GPT Image 2.6 SunburstImageper image15$0.21
GPT Image 2.6 FlareImageper image15$0.21
GPT Image 2.5 SunburstImageper image15$0.21
GPT Image 2.5 FlareImageper image15$0.21
GPT-5.4 Image 2Imageper image15$0.21
GPT-5 ImageImageper image20$0.29
GPT-5 Image MiniImageper image4$0.0571
GPT Image 1 MiniImageper image4$0.0571
FLUX 3Imageper image15$0.21
FLUX 3 KleinImageper image3$0.0429
Nano Banana 2Imageper image23$0.33
Nano Banana 2.1Imageper image11$0.16
Nano Banana 2 LiteImageper image11$0.16
Grok ImagineImageper image18$0.26
Qwen Image 3Imageper image11$0.16
Qwen Image 3 ProImageper image26$0.37
Qwen Image 2.1 ProImageper image14$0.20
Qwen Image 2.1 TurboImageper image6$0.0857
FLUX.2 ProImageper image9$0.13
FLUX.2 MaxImageper image21$0.30
FLUX.2 FlexImageper image38$0.54
FLUX.2 Klein 4BImageper image5$0.0714
Nano BananaImageper image12$0.17
Nano Banana ProImageper image41$0.59
GemmaChatper 1M input tokens · from27.68$0.40
GemmaChatper 1M output tokens · from55.36$0.79
Lyria 3Audioper second · music & effects1.1$0.0157
Seedream 4.5Imageper image12$0.17
Seedream 5.0 ProImageper image17$0.24
Seedream 5.5Imageper image16$0.23
Seedream 5.0 LiteImageper image11$0.16
Seedream 5.0 FlashImageper image6$0.0857
Recraft V3Imageper image12$0.17
Recraft V4.1Imageper image11$0.16
Recraft V4.1 ProImageper image63$0.90
Recraft V4.1 UtilityImageper image11$0.16
Recraft V4.1 Utility ProImageper image63$0.90
Recraft V4.1 FlashImageper image3$0.0429
Recraft V4Imageper image12$0.17
Recraft V4 ProImageper image75$1.07
Krea 2Imageper image9$0.13
Krea 2 LargeImageper image18$0.26
Krea 2 TurboImageper image5$0.0714
MAI Image 2.7Imageper image22$0.31
MAI Image 2.7 FlashImageper image7$0.10
MAI Image 2.6Imageper image24$0.34
MAI Image 2.6 FlashImageper image12$0.17
Muse ImageImageper image3$0.0429
MiniMax H3 ImageImageper image5$0.0714
MiniMax H3 Image HighspeedImageper image10$0.14
Hunyuan Image 3.5Imageper image3$0.0429
Riverflow 2.6 ProImageper image45$0.64
Riverflow 2.5 ProImageper image45$0.64
Riverflow 2.5 FastImageper image7$0.10
Riverflow 2 ProImageper image45$0.64
Riverflow 2 FastImageper image12$0.17
Seedance 2.5Videoper second · 720p70$1.00
Seedance 2.5 FlashVideoper second · 720p46$0.66
Seedance 2.0Videoper second · 720p46$0.66
Seedance 2.0 FastVideoper second · 720p37$0.53
Seedance 2.0 MiniVideoper second · 720p23$0.33
Veo 3.1Videoper second · 720p60$0.86
Veo 3.1 FastVideoper second · 720p24$0.34
Veo 3.1 LiteVideoper second · 720p9$0.13
Grok Imagine VideoVideoper second · 720p42$0.60
Grok Imagine Video LiteVideoper second · 720p9$0.13
Grok Imagine Video 1.0Videoper second · 720p21$0.30
FLUX 3 VideoVideoper second · 720p51$0.73
Gemini Omni FlashVideoper second · 720p21$0.30
Gemini Omni 1.1 FlashVideoper second · 720p31$0.44
Runway Gen-4.5Videoper second · 720p36$0.51
Hailuo 2.3Videoper second · 720p25$0.36
Hailuo 3Videoper second · 720p18$0.26
Hailuo 3 MaxVideoper second · 720p24$0.34
Wan 3.0Videoper second · 720p30$0.43
Wan 3.0 PrimeVideoper second · 720p42$0.60
HappyHorse 1.1Videoper second · 720p30$0.43
HappyHorse 1.0Videoper second · 720p30$0.43
ElevenLabs v4Audioper 1,000 characters · speech30.5$0.44
ElevenLabs v4 TurboAudioper 1,000 characters · speech15.3$0.22
ElevenLabs v3Audioper 1,000 characters · speech30.5$0.44
ElevenLabs Multilingual v2Audioper 1,000 characters · speech30.5$0.44
ElevenLabs Flash v2.5Audioper 1,000 characters · speech15.3$0.22
Gemini 3.8 Flash TTSAudioper 1,000 characters · speech15.3$0.22
MiniMax Speech 2.8 HDAudioper 1,000 characters · speech38.1$0.54
MiniMax Speech 2.8 TurboAudioper 1,000 characters · speech22.9$0.33
MAI-Voice 2.1Audioper 1,000 characters · speech8.4$0.12
Grok Voice TTS 1.0Audioper 1,000 characters · speech5.8$0.0829
Voxtral TTS 3Audioper 1,000 characters · speech5$0.0714
Qwen3 TTSAudioper 1,000 characters · speech7.7$0.11
Deepgram Aura-2Audioper 1,000 characters · speech11.5$0.16
Kokoro 82MAudioper 1,000 characters · speech0.4$0.0057

API credit packs

  • $10700API credits
  • $251,750API credits
  • $503,500API credits
  • $1007,000API credits
  • $50035,000API credits
Buy API creditsVAT is added at checkout where it applies. One payment, no renewal.

Start from a recipe

Workflows you can paste today

API console

See where every credit goes

Requests and credits per day, a breakdown by model, every ledger entry and your keys, in one panel.

Open the console
Example data
API credits3,480
Requests · 30 days1,204
Credits · 30 days8,910
Illustration of the console’s daily credits chart with sample numbers.

Your first request is a minute away.

Create a key, add API credits and call any model from your own stack.

NONDA / API REFERENCE

API reference

Everything the API accepts and returns, checked against the code that serves it.

Quick start

  1. Create a key. Open the API console → API keys, name the key and copy it. It is shown only once. Open the console
  2. Add API credits. Buy an API credit pack in the console’s Billing section. API credits are separate from your studio plan. Buy API credits
  3. Store it as a secret. Keep it in an environment variable on your server. Never ship it in a browser or mobile app.
  4. Make a request. Every endpoint below lives under the base URL.
Base URL
https://nonda.ai/api/v1
curl
export NONDA_API_KEY="nd_live_…"
curl https://nonda.ai/api/v1/credits -H "Authorization: Bearer $NONDA_API_KEY"

API credits

Requests made with an API key spend API credits, a balance of their own: your studio credits and plan are never used, and API credits are never used in the studio. Each request costs the same number of credits as the same generation in the studio.

Buying

Packs from $10 (700 credits) to $500 (35,000 credits) in the console’s Billing section. One payment, no plan needed, no renewal, and API credits never expire.

Charging

Credits are reserved when a request starts and settled with the actual usage; failed requests return them. An API request never runs on credits you do not have: an empty balance returns 402 insufficient_api_credits.

402
{"error": {"code": "insufficient_api_credits", "message": "This needs 24 API credits; your API balance is 3. Buy API credits in the Nonda API console (/developers/console).", "requestId": "0b6c…"}}

Authentication

Send your key in the Authorization header of every request. A key acts as you: it can generate, read your generations and 3D jobs, and see your credit balance. It cannot change your account, billing or other keys.

HTTP
Authorization: Bearer nd_live_…

Anyone with your key can spend your API credits. If a key leaks, revoke it in the API console; requests with it fail immediately.

Limits and headers

Rate limits

Per account, per minute: 15 generation requests (image, video, audio, 3D), 40 chat requests and 120 video status checks. Above that you get 429 rate_limited; wait a minute and retry.

Idempotency-Key

Optional on POST requests: 8–128 letters, digits or _ . : -. A key is accepted once per 24 hours, so a retried request is not charged twice (409 duplicate_request). A request that failed without a charge frees its key for a retry.

X-Brayer-Team

Team pools are not available to API keys: a generation request with X-Brayer-Team returns 400 team_not_supported_for_api. Reading still works: GET /3d with the header lists a team’s jobs, and GET /generations takes ?team=.

Errors

Errors use one envelope with a stable code. Quote the requestId when you contact support.

JSON
{"error": {"code": "invalid_api_key", "message": "The API key is invalid or has been revoked", "requestId": "0b6c…"}}
HTTPCodeMeaning
400invalid_inputThe body or a parameter is invalid.
400not_configuredThe model is not connected on this deployment.
401invalid_api_keyThe key is malformed, unknown or revoked.
400team_not_supported_for_apiX-Brayer-Team was sent: API requests always spend your own API credits.
402insufficient_api_creditsYour API credit balance does not cover the request. Buy API credits in the console.
403forbiddenNot allowed, e.g. a team viewer spending team credits.
409duplicate_requestThis Idempotency-Key was already used.
429rate_limitedToo many requests in the last minute.
502 · 503provider_error · unavailableThe provider or the service failed. Reserved credits are returned.

Endpoints

Request bodies are JSON (send Content-Type: application/json). Unknown fields are rejected. Model availability is listed, without a key, at GET /capabilities.

POST/generate/image

Generate images

Creates 1–4 images and stores them in your library. Charged in API credits per image, at the same rate as the Image studio.

FieldTypeDescription
modelIdrequiredstringModel id, e.g. gpt-image. See GET /capabilities for connected models.
promptrequiredstring1–12,000 characters.
ratio'16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '3:2' | '2:3' | '4:5' | '21:9'Aspect ratio. Default 1:1.
count1–4Number of images. Default 1.
quality'draft' | 'standard' | 'high'Quality tier, on models that have one.
format'png' | 'jpeg' | 'webp'Output format, on models that support it.
negativestringWhat to avoid (≤2,000 characters).
referencesstring[]Up to 4 reference images as data:image/png|jpeg|webp;base64 URLs.
seedstringUp to 10 digits, for repeatable results.
transparent · guidance · strengthboolean · 1–20 · 0.05–1Optional model-specific controls.
Request
curl https://nonda.ai/api/v1/generate/image \
  -H "Authorization: Bearer $NONDA_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: img-2026-11-27-001" \
  -d '{"modelId":"gpt-image","prompt":"A ceramic mug on a sunlit desk","ratio":"4:5","count":2}'
Response
{
  "images": [{"url": "/api/v1/media?t=…", "mime": "image/png", "width": 1024, "height": 1280}],
  "modelId": "gpt-image",
  "generationId": "6f1c…"
}

The url is relative to the site and expires after 6 hours. The stored copy stays available through GET /generations/{id}.

POST/generate/video

Generate a video

Starts a video job and returns 202 with a jobId. Credits for the requested length are held now and settled when the video completes; a failed job returns them.

FieldTypeDescription
modelIdrequiredstringVideo model id, e.g. seedance-2-5.
promptrequiredstring1–12,000 characters.
ratio'16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '3:2' | '2:3' | '4:5' | '21:9'Default 16:9.
duration'4' | '5' | '6' | '8' | '10' | '15' | '20' | '30'Seconds, as a string. Each model accepts its own subset.
resolution'480p' | '720p' | '1080p'On models with a resolution setting.
image · endImagedata URLOptional start and end frames (image-to-video).
soundbooleanGenerate audio, on models that can.
negative · seed · loop · cfgstring · string · boolean · 0–1Optional model-specific controls.
Request
curl https://nonda.ai/api/v1/generate/video \
  -H "Authorization: Bearer $NONDA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"seedance-2-5","prompt":"Slow dolly shot through a misty pine forest","duration":"5"}'

# → 202 {"jobId":"eyJ…"}  Poll until the status is completed or failed:
curl -G https://nonda.ai/api/v1/generate/video \
  -H "Authorization: Bearer $NONDA_API_KEY" \
  --data-urlencode "job=$JOB_ID"
Response
{"status": "running"}
{"status": "completed", "video": {"url": "/api/v1/media?t=…", "mime": "video/mp4"}}
{"status": "failed", "message": "The provider could not render this video"}

Poll every 5–10 seconds; status is queued, running, completed or failed. Polling is limited to 120 requests a minute. If you stop polling, the job still finishes and appears in GET /generations.

POST/generate/audio

Generate audio

Speech, music or sound effects in one request. Charged like the Audio studio.

FieldTypeDescription
modelIdrequiredstringe.g. minimax-audio, elevenlabs.
moderequired'speech' | 'music' | 'effects'What to make.
promptrequiredstringText to speak, or a description (≤5,000 characters).
voice · language · speedstring · string · 0.5–2Speech options.
durationstringLength in seconds (1–3 digits), for music and effects.
instrumental · genre · bpm · lyricsboolean · string · 40–220 · stringMusic options.
format'mp3' | 'wav'Output format.
Request
curl https://nonda.ai/api/v1/generate/audio \
  -H "Authorization: Bearer $NONDA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"elevenlabs","mode":"speech","prompt":"Welcome to Nonda."}'
Response
{"audio": {"url": "/api/v1/media?t=…", "mime": "audio/mpeg"}, "generationId": "a92e…"}

POST/chat

Chat

Streams a reply as newline-delimited JSON (application/x-ndjson). Charged per token after the reply ends.

FieldTypeDescription
modelIdrequiredstringe.g. gpt, claude, gemini.
variantstringA specific model version of that family.
messagesrequired{role,content,images?}[]1–100 turns; role is user or assistant and the last one must be user. Up to 4 images per turn.
systemstringSystem instructions (≤20,000 characters).
maxTokens256–64000Default 2,000. Credits for the maximum are held until the reply ends.
temperature · effort · webSearch0–1.5 · 'low'…'max' · booleanOptional, where the model supports them.
Request
curl -N https://nonda.ai/api/v1/chat \
  -H "Authorization: Bearer $NONDA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"modelId":"gpt","messages":[{"role":"user","content":"Write a tagline for a coffee shop"}]}'
Response
{"type":"text","text":"Brewed "}
{"type":"text","text":"for the bold."}
{"type":"usage","inputTokens":14,"outputTokens":6}

A failure mid-stream arrives as {"type":"error","code":…,"message":…}. Text already received is charged.

POST/3d

Create a 3D model

Starts a Meshy job and returns 202 with its id. Send the price you expect in expectedCredits; a different server price returns 409 price_changed.

FieldTypeDescription
operationrequired'text' | 'image' | 'multi-image' | 'refine' | 'retexture' | 'remesh'refine, retexture and remesh need parentId (a completed job).
expectedCreditsrequirednumberceil(units × rate). rate comes from GET /3d/config; units: text/image 5 (meshy-6-lite, meshy-t2) or 20, +5 for 2k/4k geometry, +10 for a 2k/4k texture (+15 at 8k); refine/retexture 10 (15 at 8k); remesh 5.
model'meshy-6-lite' | 'meshy-6' | 'meshy-7.1' | 'meshy-t2'Default meshy-6-lite.
promptstring≤800 characters; required for text and retexture.
imagesstring[]Data URLs: 1 for image, 2–4 for multi-image.
texture · geometry · formats'none'…'8k' · 'standard'|'2k'|'4k' · ('glb'|'obj'|'fbx'|'stl'|'usdz'|'3mf')[]Text jobs make the shape only (texture none); add textures with refine.
Request
curl https://nonda.ai/api/v1/3d \
  -H "Authorization: Bearer $NONDA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"operation":"text","prompt":"A low-poly fox","expectedCredits":25}'

# → 202 {"id":"…"}  Follow progress in the job list:
curl https://nonda.ai/api/v1/3d -H "Authorization: Bearer $NONDA_API_KEY"
Response
{"jobs": [{"id": "…", "generationId": "…", "status": "completed", "progress": 100, "credits": 25,
  "generation": {"prompt": "A low-poly fox", "assets": [{"id": "…", "mime": "model/gltf-binary", "status": "stored"}]}}]}

Download finished files with GET /generations/{generationId}/assets/{assetId}.

GET/generations

List generations

Your stored generations and those of your teams, newest first, 50 per page.

FieldTypeDescription
kind'image' | 'video' | 'audio' | 'edit' | '3d'Query parameter: filter by kind.
beforeISO dateQuery parameter: pass the previous page’s next value.
teamuuidQuery parameter: only one team’s generations.
Request
curl "https://nonda.ai/api/v1/generations?kind=image" -H "Authorization: Bearer $NONDA_API_KEY"
Response
{"generations": [{"id": "…", "kind": "image", "modelId": "gpt-image", "prompt": "…", "createdAt": "…",
  "assets": [{"id": "…", "status": "stored", "mime": "image/png", "width": 1024, "height": 1280}]}],
  "next": "2026-11-27T10:12:00.000Z", "usage": {"used": 1048576, "quota": 5368709120}}

GET/generations/{id}

Get a generation

One generation and its files. Download a file with GET /generations/{id}/assets/{assetId} (supports Range requests).

Request
curl https://nonda.ai/api/v1/generations/$GENERATION_ID -H "Authorization: Bearer $NONDA_API_KEY"

curl -o result.png https://nonda.ai/api/v1/generations/$GENERATION_ID/assets/$ASSET_ID \
  -H "Authorization: Bearer $NONDA_API_KEY"
Response
{"id": "…", "kind": "image", "prompt": "…", "assets": [{"id": "…", "status": "stored", "mime": "image/png", "size": 482113}]}

GET/credits

Credit balance

apiBalance is your API credit balance, the one API requests spend. balance, plans and transactions describe your studio credits.

Request
curl https://nonda.ai/api/v1/credits -H "Authorization: Bearer $NONDA_API_KEY"
Response
{"apiBalance": 3480, "balance": 1250, "enforced": true, "plans": […], "transactions": […]}