Nube AI is Nube Cloud’s open-source large-model API service. It provides a unified API for calling multiple mainstream open-source models at relatively low prices. This article covers all information and steps required for integration.
| Item | Description |
|---|---|
| Product form | MaaS / TaaS (Model as a Service / Token as a Service) |
| Service model | Usage-based billing, with no contract lock-in |
| Deployment | Platform-owned GPU clusters deploy open weights (not a resale of an official API) |
| Protocols | OpenAI-compatible (recommended) and Anthropic-compatible; the same API Key can be used with both |
| Base URLs | OpenAI-compatible: https://ai.nube-api.com/v1; Anthropic-compatible: https://ai.nube-api.com |
| Console | https://console.nube.sh → AI Model / API |
The same API Key works with both OpenAI- and Anthropic-compatible APIs. Select the corresponding API format in the client before entering its Base URL.
| API format | Base URL | Common client options |
|---|---|---|
| OpenAI-compatible API | https://ai.nube-api.com/v1 | OpenAI Compatible, Custom OpenAI |
| Anthropic-compatible API | https://ai.nube-api.com | Anthropic Compatible, Custom Claude |
/v1; do not append /v1 again to the Anthropic Base URL.https://ai.nube-api.com/v1/messages.① Register and add funds (adding about 5 USDT is recommended for a small test)
② Create an API Key in the Console (a budget limit and reset period can be set)
③ Add a custom provider in the client, select the OpenAI- or Anthropic-compatible protocol, and enter the corresponding Base URL, API Key, and Model ID
④ Send a simple chat request to verify the connection
| Purpose | Address |
|---|---|
| Playground (online testing) | https://console.nube.sh/ai-model/api/playground |
| Key management | Console → AI Model / API → Key management |
| Usage and logs | Console → AI Model / API → Usage |
| Pricing catalog (API) | https://ai.nube-api.com/v1/models/pricing |
The same API Key can be used with the OpenAI-compatible protocol, the Anthropic-compatible protocol, and mainstream AI tools. The Console API management page provides both Base URLs.
Playground-only API Key restrictions: it cannot be copied, deleted, or renamed.
The pricing catalog currently returns model names, input / output / cache-read prices, currency, capability tags (
public_tags), and maximum context (public_context_window). It can be queried publicly without an API Key.
Specify the Model ID, rather than the display name:
| Model ID | Description |
|---|---|
Agent | Smart-routing preferred model. It automatically selects the currently best-performing model and may change as the platform adjusts; recommended for everyday office work |
deepseek-v4.1-flash | DeepSeek V4.1 Flash, with native vision, reasoning, and tool calling, and 1,000,000-token context |
glm-5.3 / glm-5.3-flash | Zhipu GLM series |
kimi-k2.6 / kimi-k3 | Moonshot Kimi series |
Where to find Model IDs: copy them from the Console API page, or use the
GET /v1/modelsendpoint. Same name, different minor version: within a major version, the platform automatically applies the latest minor version, and the Model ID generally stays the same. Major-version changes are announced in advance.
curl https://ai.nube-api.com/v1/chat/completions \
-H "Authorization: Bearer $NUBE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "Agent",
"messages": [{"role": "user", "content": "Hello. Introduce yourself in one sentence."}]
}'
from openai import OpenAI
client = OpenAI(
api_key="sk-...",
base_url="https://ai.nube-api.com/v1",
)
resp = client.chat.completions.create(
model="Agent",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
Use https://ai.nube-api.com as the Anthropic-compatible Base URL. The messages endpoint is:
https://ai.nube-api.com/v1/messages
Some clients (including Claude Code and Grok Build) depend heavily on the Anthropic thinking format and may still report errors such as Content block is not a thinking block or missing field 'summary'.
Any client that supports a custom OpenAI Base URL can connect, including OpenCode, Cline, Kilo Code, Cherry Studio, VS Code Copilot (custom models), and custom agents.
Agent (recommended routing).deepseek-v4.1-flash, kimi-k3, kimi-k2.6, and glm-5.3-flash; not all models support images (for example, glm-5.3 is text-only).deepseek-v4.1-flash, backups glm-5.3 / kimi-k3).Rate Limits, Concurrency, and Quota Rules.| Feature | Description |
|---|---|
| Key-level budget | Set max_budget for each Key; the platform blocks calls automatically after the limit is reached |
| Account-level budget | An overall account budget limit |
| Key alias | Useful for reconciliation, such as naming by project |
| Disable / enable | Disable a Key in the Console |
Security recommendations:
- Do not paste a Key into a ticket, chat record, or code repository. If it is exposed, rebuild it immediately in the Console.
- Set a reasonable budget limit for the Key to reduce abuse or unexpected consumption from a client loop.
- Configure the Auto Top-Up master switch carefully to avoid unexpected charges; see
Add-Funds Amounts and Minimum Limits.
The platform is OpenAI-compatible. The following fields and protocols have known differences:
| Item | Current behavior |
|---|---|
reasoning_effort | Supports none / low / medium / high / xhigh / max / adaptive; minimal returns 400 |
thinking: {"type":"enabled"} | Returns 400 (the backend maps this to reasoning_effort, which must be valid) |
thinking: {"type":"disabled"} | Returns 200, but may still send reasoning_content |
| Preserve thinking | Use thinking: {"clear_thinking": false} without type |
tool_stream | Unsupported, returns 400 (Extra inputs are not permitted) |
| Multi-turn tool calling | A tool-call assistant message must be immediately followed by a role=tool message for each corresponding tool_call_id; otherwise 400 |
| Thinking-mode replay | Send the previous reasoning_content unchanged in the next request, or the request may return 400 |
| Anthropic protocol | Use Base URL https://ai.nube-api.com and /v1/messages; clients with strict thinking-format requirements may still report compatibility errors |
| Responses API | Limited compatibility; it may report missing field 'summary' |
logprobs / top_logprobs | Currently unsupported |
| Embeddings | Not yet available; calls return 403 |
| Image input | Supported by some models; unsupported models report Current model does not support image input |
| Word upload on the Web | Web parsing of .docx is limited; convert it to PDF or paste the text (the API can process .docx content) |
For error handling, see
Error-Code Troubleshooting: 400, 403, 429, 503, and Thinking Blocks.
⚠️ Pricing notice: current model prices can be queried through the API. Future price changes will no longer be announced by email; use the API or the model pricing page instead (see the important notice on the Console AI Model overview page).
The platform operates under a zero-data-retention policy:
For the strictest data-sovereignty requirements, consider an official enterprise edition or self-hosted deployment.
| Question | Answer |
|---|---|
| What is the OpenAI Base URL? | https://ai.nube-api.com/v1 |
| What is the Anthropic Base URL? | https://ai.nube-api.com; the messages endpoint is /v1/messages |
| Can one Key use both protocols? | Yes. The same API Key supports the OpenAI-compatible and Anthropic-compatible protocols |
| Will price changes be emailed? | No. Use the API or pricing page |
| Can one Key call different models? | Yes. Change only the model field |
| What if a Model ID changes? | Minor versions update automatically within a major version; the ID generally stays the same. Major-version changes are announced |
| Can a region be selected? | Region-specific node selection is not currently supported |
| Is there a public API for batch Key creation or management? | No |
| Can I test it? | There is no free quota; adding around 5 USD for a practical test is recommended |
| Is streaming supported? | Yes; note the compatibility issues around thinking fields |
| How do I reconcile usage? | Contact official support and provide the Key alias or a specific Request ID |
Model List, Capabilities, and AvailabilityError-Code Troubleshooting: 400, 403, 429, 503, and Thinking BlocksRate Limits, Concurrency, and Quota RulesBilling and Usage: Token Definitions, Caching, and Billing AppealsTechnical Notes: Quantization, Precision, Context Length, and Multimodality