|
| 1 | +# nemotron-3-nano-30b-a3b |
| 2 | + |
| 3 | +{% columns %} |
| 4 | +{% column width="66.66666666666666%" %} |
| 5 | +{% hint style="info" %} |
| 6 | +This documentation is valid for the following list of our models: |
| 7 | + |
| 8 | +* `nvidia/nemotron-3-nano-30b-a3b` |
| 9 | +{% endhint %} |
| 10 | +{% endcolumn %} |
| 11 | + |
| 12 | +{% column width="33.33333333333334%" %} |
| 13 | +<a href="https://aimlapi.com/app/nemotron-3-nano-30b-a3b" class="button primary">Try in Playground</a> |
| 14 | +{% endcolumn %} |
| 15 | +{% endcolumns %} |
| 16 | + |
| 17 | +## Model Overview |
| 18 | + |
| 19 | +A lightweight MoE language model optimized for computational efficiency, text generation, and agentic workflows. Designed for chatbots, AI agents, and long-context tasks with lower resource requirements. |
| 20 | + |
| 21 | +{% hint style="success" %} |
| 22 | +[Create AI/ML API Key](https://aimlapi.com/app/keys) |
| 23 | +{% endhint %} |
| 24 | + |
| 25 | +<details> |
| 26 | + |
| 27 | +<summary>How to make the first API call</summary> |
| 28 | + |
| 29 | +**1️⃣ Required setup (don’t skip this)**\ |
| 30 | +▪ **Create an account:** Sign up on the AI/ML API website (if you don’t have one yet).\ |
| 31 | +▪ **Generate an API key:** In your account dashboard, create an API key and make sure it’s **enabled** in the UI. |
| 32 | + |
| 33 | +**2️ Copy the code example**\ |
| 34 | +At the bottom of this page, pick the snippet for your preferred programming language (Python / Node.js) and copy it into your project. |
| 35 | + |
| 36 | +**3️ Update the snippet for your use case**\ |
| 37 | +▪ **Insert your API key:** replace `<YOUR_AIMLAPI_KEY>` with your real AI/ML API key.\ |
| 38 | +▪ **Select a model:** set the `model` field to the model you want to call.\ |
| 39 | +▪ **Provide input:** fill in the request input field(s) shown in the example (for example, `messages` for chat/LLM models, or other inputs for image/video/audio models). |
| 40 | + |
| 41 | +**4️ (Optional) Tune the request**\ |
| 42 | +Depending on the model type, you can add optional parameters to control the output (e.g., generation settings, quality, length, etc.). See the API schema below for the full list. |
| 43 | + |
| 44 | +**5️ Run your code**\ |
| 45 | +Run the updated code in your development environment. Response time depends on the model and request size, but simple requests typically return quickly. |
| 46 | + |
| 47 | +{% hint style="success" %} |
| 48 | +If you need a more detailed walkthrough for setting up your development environment and making a request step by step — feel free to use our [Quickstart guide](/broken/pages/ngeSCZKxiGVWqYZTHDjY). |
| 49 | +{% endhint %} |
| 50 | + |
| 51 | +</details> |
| 52 | + |
| 53 | +## API Schema |
| 54 | + |
| 55 | +{% openapi-operation spec="nemotron-3-nano-30b-a3b" path="/v1/chat/completions" method="post" %} |
| 56 | +[OpenAPI nemotron-3-nano-30b-a3b](https://raw.githubusercontent.com/aimlapi/api-docs/refs/heads/main/docs/api-references/text-models-llm/NVIDIA/nemotron-3-nano-30b-a3b.json) |
| 57 | +{% endopenapi-operation %} |
| 58 | + |
| 59 | +## Code Example |
| 60 | + |
| 61 | +{% tabs %} |
| 62 | +{% tab title="Python" %} |
| 63 | +{% code overflow="wrap" %} |
| 64 | +```python |
| 65 | +import requests |
| 66 | +import json # for getting a structured output with indentation |
| 67 | + |
| 68 | +response = requests.post( |
| 69 | + "https://api.aimlapi.com/v1/chat/completions", |
| 70 | + headers={ |
| 71 | + # Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>: |
| 72 | + "Authorization":"Bearer <YOUR_AIMLAPI_KEY>", |
| 73 | + "Content-Type":"application/json" |
| 74 | + }, |
| 75 | + json={ |
| 76 | + "model":"nvidia/nemotron-3-nano-30b-a3b", |
| 77 | + "messages":[ |
| 78 | + { |
| 79 | + "role":"user", |
| 80 | + "content":"Hi! What do you think about mankind?" # insert your prompt |
| 81 | + } |
| 82 | + ] |
| 83 | + } |
| 84 | +) |
| 85 | + |
| 86 | +data = response.json() |
| 87 | +print(json.dumps(data, indent=2, ensure_ascii=False)) |
| 88 | +``` |
| 89 | +{% endcode %} |
| 90 | +{% endtab %} |
| 91 | + |
| 92 | +{% tab title="JavaScript" %} |
| 93 | +{% code overflow="wrap" %} |
| 94 | +```javascript |
| 95 | +async function main() { |
| 96 | + const response = await fetch('https://api.aimlapi.com/v1/chat/completions', { |
| 97 | + method: 'POST', |
| 98 | + headers: { |
| 99 | + // insert your AIML API Key instead of <YOUR_AIMLAPI_KEY> |
| 100 | + 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>', |
| 101 | + 'Content-Type': 'application/json', |
| 102 | + }, |
| 103 | + body: JSON.stringify({ |
| 104 | + model: 'nvidia/nemotron-3-nano-30b-a3b', |
| 105 | + messages:[ |
| 106 | + { |
| 107 | + role:'user', |
| 108 | + content: 'Hi! What do you think about mankind?' // insert your prompt here |
| 109 | + } |
| 110 | + ], |
| 111 | + }), |
| 112 | + }); |
| 113 | + |
| 114 | + const data = await response.json(); |
| 115 | + console.log(JSON.stringify(data, null, 2)); |
| 116 | +} |
| 117 | + |
| 118 | +main(); |
| 119 | +``` |
| 120 | +{% endcode %} |
| 121 | +{% endtab %} |
| 122 | +{% endtabs %} |
| 123 | + |
| 124 | +<details> |
| 125 | + |
| 126 | +<summary>Response</summary> |
| 127 | + |
| 128 | +{% code overflow="wrap" %} |
| 129 | +```json5 |
| 130 | +{ |
| 131 | + "id": "gen-1778117281-ppABz4UAkgEvlBXvPZuS", |
| 132 | + "object": "chat.completion", |
| 133 | + "created": 1778117281, |
| 134 | + "model": "nvidia/nemotron-3-nano-30b-a3b", |
| 135 | + "system_fingerprint": null, |
| 136 | + "choices": [ |
| 137 | + { |
| 138 | + "index": 0, |
| 139 | + "logprobs": null, |
| 140 | + "finish_reason": "stop", |
| 141 | + "native_finish_reason": "stop", |
| 142 | + "message": { |
| 143 | + "role": "assistant", |
| 144 | + "content": "I’ll answer with a take that leans on a mix of observation, history, and a bit of philosophical reflection—nothing “right” or “wrong,” just one way of looking at it.\n\n---\n\n## 1. **What makes humanity remarkable**\n\n| Aspect | Why it’s striking |\n|--------|-------------------|\n| **Creativity & Tool‑making** | From stone tools to quantum computers, we continuously devise new ways to reshape our environment. Art, music, storytelling, and humor are uniquely human ways of processing experience and sharing meaning. |\n| **Self‑reflection** | We can ask “Why am I here?” and “What does it all mean?” That meta‑awareness drives philosophy, science, and religion, and it gives us the capacity for both humility and aspiration. |\n| **Co‑operation on a massive scale** | We build societies that can coordinate millions of people—languages, laws, economies, and international treaties—allowing projects like eradicating smallpox or building the International Space Station. |\n| **Adaptability** | Humans thrive in deserts, tundras, underwater habitats, and even micro‑gravity. Our biological flexibility (including cultural adaptation) lets us survive where most other species would perish. |\n\n---\n\n## 2. **The darker / problematic side**\n\n| Issue | What it reveals |\n|-------|-----------------|\n| **Capacity for harm** | Our intellect is matched by the ability to design weapons of mass destruction, cause ecological collapse, or exploit one another on a systemic level. This paradox—powerful cognition paired with moral blind spots—is a central tension in human history. |\n| **Pattern of domination** | From empires to colonial enterprises, there’s a recurrent theme of using knowledge and technology to subjugate or exploit others, often justifying it with ideology or “civilizing” narratives. |\n| **Short‑term thinking** | Many of our collective crises (climate change, biodiversity loss, unsustainable debt) stem from prioritizing immediate gains—profit, political power—over long‑term stewardship. |\n| **Tribalism** | Our ability to form tight‑knit groups can also lead to “in‑group” bias, prejudice, and conflict with “out‑groups.” This is both an evolutionary adaptation for survival and a source of many modern social problems. |\n\n---\n\n## 3. **A dialectical view**\n\n* **Thesis:** Humanity creates tools, cultures, and systems that expand our possibilities. \n* **Antithesis:** The same tools can become weapons or sources of inequality, leading to self‑inflicted crises. \n* **Synthesis:** The next stage of human development is likely to involve **meta‑cognition and ethical coordination**—using our reflective capacities to align our technological power with a more equitable, sustainable vision of the future.\n\nIn other words, the binary of “good vs. bad” is too simplistic; humanity is a **dynamic process** where progress and regression are intertwined. When we collectively recognize the pitfalls (e.g., climate inaction, widening wealth gaps) and channel our ingenuity toward solutions, we can tip the balance toward a more constructive trajectory.\n\n---\n\n## 4. **What might help shift the balance?**\n\n1. **Collective storytelling that emphasizes shared vulnerability** \n Narrative empathy can reduce tribalism and encourage policies that benefit the planet as a whole.\n\n2. **Institutional reforms that embed long‑term thinking** \n Examples include independent climate courts, intergenerational budgets, and AI governance frameworks that prioritize safety and fairness.\n\n3. **Education that blends STEM with ethics and the humanities** \n Teaching critical thinking alongside moral philosophy nurtures the habit of asking “not just ‘can we?’ but ‘should we?’”\n\n4. **Technology that is co‑designed with communities** \n When tools are built *with* the people they serve—rather than *for* them—the outcomes tend to be more equitable and less coercive.\n\n---\n\n## 5. **A personal takeaway**\n\nIf I had to sum it up in one sentence: **Humanity is a paradox‑rich species capable of extraordinary creation and equally profound self‑sabotage; our future will be shaped by whether we can marshal our ingenuity toward inclusive, long‑term stewardship of ourselves and the planet.**\n\n---\n\n**Bottom line:** \nHumanity is a work in progress—a tapestry woven from moments of brilliance and blunders. By acknowledging both the luminous achievements and the shadows we cast, we can better navigate the path ahead. What we *think* about humanity matters less than what we *do* with that understanding. If we choose to act wisely, the best chapters of the human story are still unwritten.", |
| 145 | + "refusal": null, |
| 146 | + "reasoning": "The user asks a philosophical question. There's no disallowed content. It's a safe open-ended question. We can respond with a thoughtful reflection on humanity, acknowledging complexity, achievements, challenges. Need to be respectful, no political persuasion issues. Provide nuanced answer.\n", |
| 147 | + "reasoning_details": [ |
| 148 | + { |
| 149 | + "type": "reasoning.text", |
| 150 | + "text": "The user asks a philosophical question. There's no disallowed content. It's a safe open-ended question. We can respond with a thoughtful reflection on humanity, acknowledging complexity, achievements, challenges. Need to be respectful, no political persuasion issues. Provide nuanced answer.\n", |
| 151 | + "format": "unknown", |
| 152 | + "index": 0 |
| 153 | + } |
| 154 | + ] |
| 155 | + } |
| 156 | + } |
| 157 | + ], |
| 158 | + "usage": { |
| 159 | + "completion_tokens": 1062, |
| 160 | + "prompt_tokens": 25, |
| 161 | + "total_tokens": 1087, |
| 162 | + "completion_tokens_details": { |
| 163 | + "reasoning_tokens": 74, |
| 164 | + "image_tokens": 0, |
| 165 | + "audio_tokens": 0 |
| 166 | + }, |
| 167 | + "prompt_tokens_details": { |
| 168 | + "cached_tokens": 0, |
| 169 | + "cache_write_tokens": 0, |
| 170 | + "audio_tokens": 0, |
| 171 | + "video_tokens": 0 |
| 172 | + } |
| 173 | + }, |
| 174 | + "meta": { |
| 175 | + "usage": { |
| 176 | + "credits_used": 518, |
| 177 | + "usd_spent": 0.000259 |
| 178 | + } |
| 179 | + } |
| 180 | +} |
| 181 | +``` |
| 182 | +{% endcode %} |
| 183 | + |
| 184 | +</details> |
0 commit comments