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.
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 ImageOpenAILive
- per image
- 20 credits ≈ $0.29
- GPT Image 2OpenAILive
- per image
- 15 credits ≈ $0.21
- GPT Image 2.6 SunburstOpenAILive
- per image
- 15 credits ≈ $0.21
- GPT Image 2.6 FlareOpenAILive
- per image
- 15 credits ≈ $0.21
- GPT Image 2.5 SunburstOpenAILive
- per image
- 15 credits ≈ $0.21
- GPT Image 2.5 FlareOpenAILive
- per image
- 15 credits ≈ $0.21
- GPT-5.4 Image 2OpenAILive
- per image
- 15 credits ≈ $0.21
- GPT-5 ImageOpenAILive
- per image
- 20 credits ≈ $0.29
- GPT-5 Image MiniOpenAILive
- per image
- 4 credits ≈ $0.0571
- GPT Image 1 MiniOpenAILive
- per image
- 4 credits ≈ $0.0571
- FLUX 3Black Forest LabsLive
- per image
- 15 credits ≈ $0.21
- FLUX 3 KleinBlack Forest LabsLive
- per image
- 3 credits ≈ $0.0429
- Nano Banana 2GoogleLive
- per image
- 23 credits ≈ $0.33
- Nano Banana 2.1GoogleLive
- per image
- 11 credits ≈ $0.16
- Nano Banana 2 LiteGoogleLive
- per image
- 11 credits ≈ $0.16
- Grok ImaginexAILive
- per image
- 18 credits ≈ $0.26
- Qwen Image 3AlibabaLive
- per image
- 11 credits ≈ $0.16
- Qwen Image 3 ProAlibabaLive
- per image
- 26 credits ≈ $0.37
- Qwen Image 2.1 ProAlibabaLive
- per image
- 14 credits ≈ $0.20
- Qwen Image 2.1 TurboAlibabaLive
- per image
- 6 credits ≈ $0.0857
- FLUX.2 ProBlack Forest LabsLive
- per image
- 9 credits ≈ $0.13
- FLUX.2 MaxBlack Forest LabsLive
- per image
- 21 credits ≈ $0.30
- FLUX.2 FlexBlack Forest LabsLive
- per image
- 38 credits ≈ $0.54
- FLUX.2 Klein 4BBlack Forest LabsLive
- per image
- 5 credits ≈ $0.0714
- Nano BananaGoogleLive
- per image
- 12 credits ≈ $0.17
- Nano Banana ProGoogleLive
- per image
- 41 credits ≈ $0.59
- Seedream 4.5ByteDanceLive
- per image
- 12 credits ≈ $0.17
- Seedream 5.0 ProByteDanceLive
- per image
- 17 credits ≈ $0.24
- Seedream 5.5ByteDanceLive
- per image
- 16 credits ≈ $0.23
- Seedream 5.0 LiteByteDanceLive
- per image
- 11 credits ≈ $0.16
- Seedream 5.0 FlashByteDanceLive
- per image
- 6 credits ≈ $0.0857
- Recraft V3RecraftLive
- per image
- 12 credits ≈ $0.17
- Recraft V4.1RecraftLive
- per image
- 11 credits ≈ $0.16
- Recraft V4.1 ProRecraftLive
- per image
- 63 credits ≈ $0.90
- Recraft V4.1 UtilityRecraftLive
- per image
- 11 credits ≈ $0.16
- Recraft V4.1 Utility ProRecraftLive
- per image
- 63 credits ≈ $0.90
- Recraft V4.1 FlashRecraftLive
- per image
- 3 credits ≈ $0.0429
- Recraft V4RecraftLive
- per image
- 12 credits ≈ $0.17
- Recraft V4 ProRecraftLive
- per image
- 75 credits ≈ $1.07
- Krea 2KreaLive
- per image
- 9 credits ≈ $0.13
- Krea 2 LargeKreaLive
- per image
- 18 credits ≈ $0.26
- Krea 2 TurboKreaLive
- per image
- 5 credits ≈ $0.0714
- MAI Image 2.7MicrosoftLive
- per image
- 22 credits ≈ $0.31
- MAI Image 2.7 FlashMicrosoftLive
- per image
- 7 credits ≈ $0.10
- MAI Image 2.6MicrosoftLive
- per image
- 24 credits ≈ $0.34
- MAI Image 2.6 FlashMicrosoftLive
- per image
- 12 credits ≈ $0.17
- Muse ImageMetaLive
- per image
- 3 credits ≈ $0.0429
- MiniMax H3 ImageMiniMaxLive
- per image
- 5 credits ≈ $0.0714
- MiniMax H3 Image HighspeedMiniMaxLive
- per image
- 10 credits ≈ $0.14
- Hunyuan Image 3.5TencentLive
- per image
- 3 credits ≈ $0.0429
- Riverflow 2.6 ProSourcefulLive
- per image
- 45 credits ≈ $0.64
- Riverflow 2.5 ProSourcefulLive
- per image
- 45 credits ≈ $0.64
- Riverflow 2.5 FastSourcefulLive
- per image
- 7 credits ≈ $0.10
- Riverflow 2 ProSourcefulLive
- per image
- 45 credits ≈ $0.64
- Riverflow 2 FastSourcefulLive
- per image
- 12 credits ≈ $0.17
Video22
- Seedance 2.5ByteDanceLive
- per second · 720p
- 70 credits ≈ $1.00
- Seedance 2.5 FlashByteDanceLive
- per second · 720p
- 46 credits ≈ $0.66
- Seedance 2.0ByteDanceLive
- per second · 720p
- 46 credits ≈ $0.66
- Seedance 2.0 FastByteDanceLive
- per second · 720p
- 37 credits ≈ $0.53
- Seedance 2.0 MiniByteDanceLive
- per second · 720p
- 23 credits ≈ $0.33
- Veo 3.1Google DeepMindLive
- per second · 720p
- 60 credits ≈ $0.86
- Veo 3.1 FastGoogle DeepMindLive
- per second · 720p
- 24 credits ≈ $0.34
- Veo 3.1 LiteGoogle DeepMindLive
- per second · 720p
- 9 credits ≈ $0.13
- Grok Imagine VideoxAILive
- per second · 720p
- 42 credits ≈ $0.60
- Grok Imagine Video LitexAILive
- per second · 720p
- 9 credits ≈ $0.13
- Grok Imagine Video 1.0xAILive
- per second · 720p
- 21 credits ≈ $0.30
- FLUX 3 VideoBlack Forest LabsLive
- per second · 720p
- 51 credits ≈ $0.73
- Gemini Omni FlashGoogle DeepMindLive
- per second · 720p
- 21 credits ≈ $0.30
- Gemini Omni 1.1 FlashGoogle DeepMindLive
- per second · 720p
- 31 credits ≈ $0.44
- Runway Gen-4.5RunwayLive
- per second · 720p
- 36 credits ≈ $0.51
- Hailuo 2.3MiniMaxLive
- per second · 720p
- 25 credits ≈ $0.36
- Hailuo 3MiniMaxLive
- per second · 720p
- 18 credits ≈ $0.26
- Hailuo 3 MaxMiniMaxLive
- per second · 720p
- 24 credits ≈ $0.34
- Wan 3.0AlibabaLive
- per second · 720p
- 30 credits ≈ $0.43
- Wan 3.0 PrimeAlibabaLive
- per second · 720p
- 42 credits ≈ $0.60
- HappyHorse 1.1AlibabaLive
- per second · 720p
- 30 credits ≈ $0.43
- HappyHorse 1.0AlibabaLive
- per second · 720p
- 30 credits ≈ $0.43
Audio15
- Lyria 3Google DeepMindLive
- per second · music & effects
- 1.1 credits ≈ $0.0157
- ElevenLabs v4ElevenLabsLive
- per 1,000 characters · speech
- 30.5 credits ≈ $0.44
- ElevenLabs v4 TurboElevenLabsLive
- per 1,000 characters · speech
- 15.3 credits ≈ $0.22
- ElevenLabs v3ElevenLabsLive
- per 1,000 characters · speech
- 30.5 credits ≈ $0.44
- ElevenLabs Multilingual v2ElevenLabsLive
- per 1,000 characters · speech
- 30.5 credits ≈ $0.44
- ElevenLabs Flash v2.5ElevenLabsLive
- per 1,000 characters · speech
- 15.3 credits ≈ $0.22
- Gemini 3.8 Flash TTSGoogleLive
- per 1,000 characters · speech
- 15.3 credits ≈ $0.22
- MiniMax Speech 2.8 HDMiniMaxLive
- per 1,000 characters · speech
- 38.1 credits ≈ $0.54
- MiniMax Speech 2.8 TurboMiniMaxLive
- per 1,000 characters · speech
- 22.9 credits ≈ $0.33
- MAI-Voice 2.1MicrosoftLive
- per 1,000 characters · speech
- 8.4 credits ≈ $0.12
- Grok Voice TTS 1.0xAILive
- per 1,000 characters · speech
- 5.8 credits ≈ $0.0829
- Voxtral TTS 3Mistral AILive
- per 1,000 characters · speech
- 5 credits ≈ $0.0714
- Qwen3 TTSAlibabaLive
- per 1,000 characters · speech
- 7.7 credits ≈ $0.11
- Deepgram Aura-2DeepgramLive
- per 1,000 characters · speech
- 11.5 credits ≈ $0.16
- Kokoro 82MhexgradLive
- per 1,000 characters · speech
- 0.4 credits ≈ $0.0057
3D0
No model of this kind is connected on this deployment yet.
Chat14
- GPTOpenAILive
- per 1M input tokens · from
- 34.6 credits ≈ $0.49
- per 1M output tokens · from
- 173 credits ≈ $2.47
- ClaudeAnthropicLive
- per 1M input tokens · from
- 34.6 credits ≈ $0.49
- per 1M output tokens · from
- 173 credits ≈ $2.47
- GeminiGoogleLive
- per 1M input tokens · from
- 86.5 credits ≈ $1.24
- per 1M output tokens · from
- 519 credits ≈ $7.41
- DeepSeekDeepSeekLive
- per 1M input tokens · from
- 15.78 credits ≈ $0.23
- per 1M output tokens · from
- 93.42 credits ≈ $1.33
- GrokxAILive
- per 1M input tokens · from
- 432.5 credits ≈ $6.18
- per 1M output tokens · from
- 865 credits ≈ $12.36
- MistralMistral AILive
- per 1M input tokens · from
- 51.9 credits ≈ $0.74
- per 1M output tokens · from
- 207.6 credits ≈ $2.97
- QwenAlibabaLive
- per 1M input tokens · from
- 51.9 credits ≈ $0.74
- per 1M output tokens · from
- 162.62 credits ≈ $2.32
- LlamaMetaLive
- per 1M input tokens · from
- 34.6 credits ≈ $0.49
- per 1M output tokens · from
- 103.8 credits ≈ $1.48
- PerplexityPerplexityLive
- per 1M input tokens · from
- 346 credits ≈ $4.94
- per 1M output tokens · from
- 346 credits ≈ $4.94
- KimiMoonshotLive
- per 1M input tokens · from
- 66.43 credits ≈ $0.95
- per 1M output tokens · from
- 1,038 credits ≈ $14.83
- GLMZ.aiLive
- per 1M input tokens · from
- 12.32 credits ≈ $0.18
- per 1M output tokens · from
- 28.2 credits ≈ $0.40
- CommandCohereLive
- per 1M input tokens · from
- 12.98 credits ≈ $0.19
- per 1M output tokens · from
- 51.9 credits ≈ $0.74
- NemotronNVIDIALive
- per 1M input tokens · from
- 24.22 credits ≈ $0.35
- per 1M output tokens · from
- 69.2 credits ≈ $0.99
- GemmaGoogleLive
- 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.
| Model | Kind | Unit | Credits | USD |
|---|---|---|---|---|
| GPT | Chat | per 1M input tokens · from | 34.6 | $0.49 |
| GPT | Chat | per 1M output tokens · from | 173 | $2.47 |
| Claude | Chat | per 1M input tokens · from | 34.6 | $0.49 |
| Claude | Chat | per 1M output tokens · from | 173 | $2.47 |
| Gemini | Chat | per 1M input tokens · from | 86.5 | $1.24 |
| Gemini | Chat | per 1M output tokens · from | 519 | $7.41 |
| DeepSeek | Chat | per 1M input tokens · from | 15.78 | $0.23 |
| DeepSeek | Chat | per 1M output tokens · from | 93.42 | $1.33 |
| Grok | Chat | per 1M input tokens · from | 432.5 | $6.18 |
| Grok | Chat | per 1M output tokens · from | 865 | $12.36 |
| Mistral | Chat | per 1M input tokens · from | 51.9 | $0.74 |
| Mistral | Chat | per 1M output tokens · from | 207.6 | $2.97 |
| Qwen | Chat | per 1M input tokens · from | 51.9 | $0.74 |
| Qwen | Chat | per 1M output tokens · from | 162.62 | $2.32 |
| Llama | Chat | per 1M input tokens · from | 34.6 | $0.49 |
| Llama | Chat | per 1M output tokens · from | 103.8 | $1.48 |
| Perplexity | Chat | per 1M input tokens · from | 346 | $4.94 |
| Perplexity | Chat | per 1M output tokens · from | 346 | $4.94 |
| Kimi | Chat | per 1M input tokens · from | 66.43 | $0.95 |
| Kimi | Chat | per 1M output tokens · from | 1,038 | $14.83 |
| GLM | Chat | per 1M input tokens · from | 12.32 | $0.18 |
| GLM | Chat | per 1M output tokens · from | 28.2 | $0.40 |
| Command | Chat | per 1M input tokens · from | 12.98 | $0.19 |
| Command | Chat | per 1M output tokens · from | 51.9 | $0.74 |
| Nemotron | Chat | per 1M input tokens · from | 24.22 | $0.35 |
| Nemotron | Chat | per 1M output tokens · from | 69.2 | $0.99 |
| GPT Image | Image | per image | 20 | $0.29 |
| GPT Image 2 | Image | per image | 15 | $0.21 |
| GPT Image 2.6 Sunburst | Image | per image | 15 | $0.21 |
| GPT Image 2.6 Flare | Image | per image | 15 | $0.21 |
| GPT Image 2.5 Sunburst | Image | per image | 15 | $0.21 |
| GPT Image 2.5 Flare | Image | per image | 15 | $0.21 |
| GPT-5.4 Image 2 | Image | per image | 15 | $0.21 |
| GPT-5 Image | Image | per image | 20 | $0.29 |
| GPT-5 Image Mini | Image | per image | 4 | $0.0571 |
| GPT Image 1 Mini | Image | per image | 4 | $0.0571 |
| FLUX 3 | Image | per image | 15 | $0.21 |
| FLUX 3 Klein | Image | per image | 3 | $0.0429 |
| Nano Banana 2 | Image | per image | 23 | $0.33 |
| Nano Banana 2.1 | Image | per image | 11 | $0.16 |
| Nano Banana 2 Lite | Image | per image | 11 | $0.16 |
| Grok Imagine | Image | per image | 18 | $0.26 |
| Qwen Image 3 | Image | per image | 11 | $0.16 |
| Qwen Image 3 Pro | Image | per image | 26 | $0.37 |
| Qwen Image 2.1 Pro | Image | per image | 14 | $0.20 |
| Qwen Image 2.1 Turbo | Image | per image | 6 | $0.0857 |
| FLUX.2 Pro | Image | per image | 9 | $0.13 |
| FLUX.2 Max | Image | per image | 21 | $0.30 |
| FLUX.2 Flex | Image | per image | 38 | $0.54 |
| FLUX.2 Klein 4B | Image | per image | 5 | $0.0714 |
| Nano Banana | Image | per image | 12 | $0.17 |
| Nano Banana Pro | Image | per image | 41 | $0.59 |
| Gemma | Chat | per 1M input tokens · from | 27.68 | $0.40 |
| Gemma | Chat | per 1M output tokens · from | 55.36 | $0.79 |
| Lyria 3 | Audio | per second · music & effects | 1.1 | $0.0157 |
| Seedream 4.5 | Image | per image | 12 | $0.17 |
| Seedream 5.0 Pro | Image | per image | 17 | $0.24 |
| Seedream 5.5 | Image | per image | 16 | $0.23 |
| Seedream 5.0 Lite | Image | per image | 11 | $0.16 |
| Seedream 5.0 Flash | Image | per image | 6 | $0.0857 |
| Recraft V3 | Image | per image | 12 | $0.17 |
| Recraft V4.1 | Image | per image | 11 | $0.16 |
| Recraft V4.1 Pro | Image | per image | 63 | $0.90 |
| Recraft V4.1 Utility | Image | per image | 11 | $0.16 |
| Recraft V4.1 Utility Pro | Image | per image | 63 | $0.90 |
| Recraft V4.1 Flash | Image | per image | 3 | $0.0429 |
| Recraft V4 | Image | per image | 12 | $0.17 |
| Recraft V4 Pro | Image | per image | 75 | $1.07 |
| Krea 2 | Image | per image | 9 | $0.13 |
| Krea 2 Large | Image | per image | 18 | $0.26 |
| Krea 2 Turbo | Image | per image | 5 | $0.0714 |
| MAI Image 2.7 | Image | per image | 22 | $0.31 |
| MAI Image 2.7 Flash | Image | per image | 7 | $0.10 |
| MAI Image 2.6 | Image | per image | 24 | $0.34 |
| MAI Image 2.6 Flash | Image | per image | 12 | $0.17 |
| Muse Image | Image | per image | 3 | $0.0429 |
| MiniMax H3 Image | Image | per image | 5 | $0.0714 |
| MiniMax H3 Image Highspeed | Image | per image | 10 | $0.14 |
| Hunyuan Image 3.5 | Image | per image | 3 | $0.0429 |
| Riverflow 2.6 Pro | Image | per image | 45 | $0.64 |
| Riverflow 2.5 Pro | Image | per image | 45 | $0.64 |
| Riverflow 2.5 Fast | Image | per image | 7 | $0.10 |
| Riverflow 2 Pro | Image | per image | 45 | $0.64 |
| Riverflow 2 Fast | Image | per image | 12 | $0.17 |
| Seedance 2.5 | Video | per second · 720p | 70 | $1.00 |
| Seedance 2.5 Flash | Video | per second · 720p | 46 | $0.66 |
| Seedance 2.0 | Video | per second · 720p | 46 | $0.66 |
| Seedance 2.0 Fast | Video | per second · 720p | 37 | $0.53 |
| Seedance 2.0 Mini | Video | per second · 720p | 23 | $0.33 |
| Veo 3.1 | Video | per second · 720p | 60 | $0.86 |
| Veo 3.1 Fast | Video | per second · 720p | 24 | $0.34 |
| Veo 3.1 Lite | Video | per second · 720p | 9 | $0.13 |
| Grok Imagine Video | Video | per second · 720p | 42 | $0.60 |
| Grok Imagine Video Lite | Video | per second · 720p | 9 | $0.13 |
| Grok Imagine Video 1.0 | Video | per second · 720p | 21 | $0.30 |
| FLUX 3 Video | Video | per second · 720p | 51 | $0.73 |
| Gemini Omni Flash | Video | per second · 720p | 21 | $0.30 |
| Gemini Omni 1.1 Flash | Video | per second · 720p | 31 | $0.44 |
| Runway Gen-4.5 | Video | per second · 720p | 36 | $0.51 |
| Hailuo 2.3 | Video | per second · 720p | 25 | $0.36 |
| Hailuo 3 | Video | per second · 720p | 18 | $0.26 |
| Hailuo 3 Max | Video | per second · 720p | 24 | $0.34 |
| Wan 3.0 | Video | per second · 720p | 30 | $0.43 |
| Wan 3.0 Prime | Video | per second · 720p | 42 | $0.60 |
| HappyHorse 1.1 | Video | per second · 720p | 30 | $0.43 |
| HappyHorse 1.0 | Video | per second · 720p | 30 | $0.43 |
| ElevenLabs v4 | Audio | per 1,000 characters · speech | 30.5 | $0.44 |
| ElevenLabs v4 Turbo | Audio | per 1,000 characters · speech | 15.3 | $0.22 |
| ElevenLabs v3 | Audio | per 1,000 characters · speech | 30.5 | $0.44 |
| ElevenLabs Multilingual v2 | Audio | per 1,000 characters · speech | 30.5 | $0.44 |
| ElevenLabs Flash v2.5 | Audio | per 1,000 characters · speech | 15.3 | $0.22 |
| Gemini 3.8 Flash TTS | Audio | per 1,000 characters · speech | 15.3 | $0.22 |
| MiniMax Speech 2.8 HD | Audio | per 1,000 characters · speech | 38.1 | $0.54 |
| MiniMax Speech 2.8 Turbo | Audio | per 1,000 characters · speech | 22.9 | $0.33 |
| MAI-Voice 2.1 | Audio | per 1,000 characters · speech | 8.4 | $0.12 |
| Grok Voice TTS 1.0 | Audio | per 1,000 characters · speech | 5.8 | $0.0829 |
| Voxtral TTS 3 | Audio | per 1,000 characters · speech | 5 | $0.0714 |
| Qwen3 TTS | Audio | per 1,000 characters · speech | 7.7 | $0.11 |
| Deepgram Aura-2 | Audio | per 1,000 characters · speech | 11.5 | $0.16 |
| Kokoro 82M | Audio | per 1,000 characters · speech | 0.4 | $0.0057 |
API credit packs
- $10700API credits
- $251,750API credits
- $503,500API credits
- $1007,000API credits
- $50035,000API credits
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 consoleYour 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
- Create a key. Open the API console → API keys, name the key and copy it. It is shown only once. Open the console
- 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
- Store it as a secret. Keep it in an environment variable on your server. Never ship it in a browser or mobile app.
- Make a request. Every endpoint below lives under the base URL.
https://nonda.ai/api/v1export 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.
{"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.
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.
{"error": {"code": "invalid_api_key", "message": "The API key is invalid or has been revoked", "requestId": "0b6c…"}}| HTTP | Code | Meaning |
|---|---|---|
| 400 | invalid_input | The body or a parameter is invalid. |
| 400 | not_configured | The model is not connected on this deployment. |
| 401 | invalid_api_key | The key is malformed, unknown or revoked. |
| 400 | team_not_supported_for_api | X-Brayer-Team was sent: API requests always spend your own API credits. |
| 402 | insufficient_api_credits | Your API credit balance does not cover the request. Buy API credits in the console. |
| 403 | forbidden | Not allowed, e.g. a team viewer spending team credits. |
| 409 | duplicate_request | This Idempotency-Key was already used. |
| 429 | rate_limited | Too many requests in the last minute. |
| 502 · 503 | provider_error · unavailable | The 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.
| Field | Type | Description |
|---|---|---|
modelIdrequired | string | Model id, e.g. gpt-image. See GET /capabilities for connected models. |
promptrequired | string | 1–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. |
count | 1–4 | Number 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. |
negative | string | What to avoid (≤2,000 characters). |
references | string[] | Up to 4 reference images as data:image/png|jpeg|webp;base64 URLs. |
seed | string | Up to 10 digits, for repeatable results. |
transparent · guidance · strength | boolean · 1–20 · 0.05–1 | Optional model-specific controls. |
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}'{
"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.
| Field | Type | Description |
|---|---|---|
modelIdrequired | string | Video model id, e.g. seedance-2-5. |
promptrequired | string | 1–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 · endImage | data URL | Optional start and end frames (image-to-video). |
sound | boolean | Generate audio, on models that can. |
negative · seed · loop · cfg | string · string · boolean · 0–1 | Optional model-specific controls. |
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"{"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.
| Field | Type | Description |
|---|---|---|
modelIdrequired | string | e.g. minimax-audio, elevenlabs. |
moderequired | 'speech' | 'music' | 'effects' | What to make. |
promptrequired | string | Text to speak, or a description (≤5,000 characters). |
voice · language · speed | string · string · 0.5–2 | Speech options. |
duration | string | Length in seconds (1–3 digits), for music and effects. |
instrumental · genre · bpm · lyrics | boolean · string · 40–220 · string | Music options. |
format | 'mp3' | 'wav' | Output format. |
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."}'{"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.
| Field | Type | Description |
|---|---|---|
modelIdrequired | string | e.g. gpt, claude, gemini. |
variant | string | A 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. |
system | string | System instructions (≤20,000 characters). |
maxTokens | 256–64000 | Default 2,000. Credits for the maximum are held until the reply ends. |
temperature · effort · webSearch | 0–1.5 · 'low'…'max' · boolean | Optional, where the model supports them. |
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"}]}'{"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.
| Field | Type | Description |
|---|---|---|
operationrequired | 'text' | 'image' | 'multi-image' | 'refine' | 'retexture' | 'remesh' | refine, retexture and remesh need parentId (a completed job). |
expectedCreditsrequired | number | ceil(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. |
prompt | string | ≤800 characters; required for text and retexture. |
images | string[] | 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. |
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"{"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.
| Field | Type | Description |
|---|---|---|
kind | 'image' | 'video' | 'audio' | 'edit' | '3d' | Query parameter: filter by kind. |
before | ISO date | Query parameter: pass the previous page’s next value. |
team | uuid | Query parameter: only one team’s generations. |
curl "https://nonda.ai/api/v1/generations?kind=image" -H "Authorization: Bearer $NONDA_API_KEY"{"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).
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"{"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.
curl https://nonda.ai/api/v1/credits -H "Authorization: Bearer $NONDA_API_KEY"{"apiBalance": 3480, "balance": 1250, "enforced": true, "plans": […], "transactions": […]}