Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion English/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@
* [GLM-5.2](ai-stack/model-as-a-service/models/z-ai/glm-5.2-thirdparty.md)
* [GLM-5.3](ai-stack/model-as-a-service/models/z-ai/glm-5.3.md)
* [GLM-5.3 Flash](ai-stack/model-as-a-service/models/z-ai/glm-5.3-flash.md)
* [GLM-5.3 Flash Thirdparty](ai-stack/model-as-a-service/models/z-ai/glm-5.3-flash-thirdparty.md)
* [GLM-5.3 Flash Third-party](ai-stack/model-as-a-service/models/z-ai/glm-5.3-flash-thirdparty.md)
* [BGE-M3](ai-stack/model-as-a-service/models/baai/bge-m3.md)
* [Qwen 3 Embedding 8B](ai-stack/model-as-a-service/models/qwen/qwen3-embedding-8b.md)
* [BGE Reranker v2 m3](ai-stack/model-as-a-service/models/baai/bge-reranker-v2-m3.md)
Expand All @@ -782,6 +782,7 @@
* [Quickstart](ai-stack/model-as-a-service/get-started/quickstart.md)
* [FAQ](ai-stack/model-as-a-service/get-started/faq.md)
* [Portal](ai-stack/model-as-a-service/portal/README.md)
* [Models and Model detail pages](ai-stack/model-as-a-service/portal/models.md)
* [API keys](ai-stack/model-as-a-service/portal/api-keys.md)
* [Enable / disable models](ai-stack/model-as-a-service/portal/enable-models.md)
* [Rate limits](ai-stack/model-as-a-service/portal/rate-limits.md)
Expand All @@ -792,6 +793,7 @@
* [Responses](ai-stack/model-as-a-service/api-reference/responses.md)
* [Embeddings](ai-stack/model-as-a-service/api-reference/embeddings.md)
* [Rerank](ai-stack/model-as-a-service/api-reference/rerank.md)
* [Models](ai-stack/model-as-a-service/api-reference/models.md)
* [OCR API](ai-stack/model-as-a-service/api-reference/ocr.md)
* [Streaming](ai-stack/model-as-a-service/api-reference/streaming.md)
* [Parameters](ai-stack/model-as-a-service/api-reference/parameters.md)
Expand Down
23 changes: 4 additions & 19 deletions English/ai-stack/model-as-a-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,18 @@ description: >-

# Model as a Service (MaaS)

Access the [Models ](https://aiplatform.console.greennode.ai/models)section in AI Platform:
Access the [Models ](https://aiplatform.console.greennode.ai/models)section in AI Platform. Your balance is shown at the top in **credits** (`1 credit = 1 VND`).

* To use and enable any model, you need an API key. [See more details](../ai-platform/getting-started-with-ai-platform.md).

You can filter models using the options on the left sidebar:

* Provider: Google, Anthropic, OpenAI, GreenNode, ...
* Model Type:
* Chat: Designed for interactive conversations. Called through Chat Completions, Messages (Anthropic) or Responses, depending on the model.
* Embedding: Converts data (text, images, audio, etc.) into high-dimensional vectors, allowing machines to understand and compare semantics for search, classification, or recommendation.
* Rerank: Reorders a list of documents by relevance to a query.
* OCR: Extracts text and data from images and documents.
* Use Case::
* Vietnamese: Optimized for Vietnamese language tasks.
* General Tasks: Suitable for a wide range of general-purpose tasks.
* Translation: Specialized for translation tasks.
* Research: Supports research-related tasks.
* Finance: Focused on financial domain applications.
* Marketing: Optimized for marketing use cases.
* Technology: Designed for technology-related tasks.
You can filter and sort models right on the Models page: **Context length**, **Hosting mode**, **API compatibility**, **Input modality**, **Provider**, plus **Sort by** and **Search models by name**. See [Models and Model detail pages](portal/models.md) for each filter, the model card and the detail page.

### Enable / Disable Models

1. Click the "Toggle models" button. Users must activate billing to enable models. For Prepaid users, quota must be added before enabling models, while Postpaid users can enable and use models immediately. Refer to [pricing details](pricing.md).\
1. Click the **Enable / disable models** button. Users must activate billing to enable models. For Prepaid users, quota must be added before enabling models, while Postpaid users can enable and use models immediately. Refer to [pricing details](pricing.md).\
![](<../../.gitbook/assets/image (390).png>)
2. Model Selection: A popup window will appear, allowing you to search and filter models by Provider, Status, or Type.
3. Enable/disable models individually or in bulk.
3. Enable/disable models individually or in bulk. You can also flip the switch on the right of a model card.
4. Save your changes.

<figure><img src="../../.gitbook/assets/image (391).png" alt=""><figcaption></figcaption></figure>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Pages in this section:
* [Responses](responses.md)
* [Embeddings](embeddings.md)
* [Rerank](rerank.md)
* [Models](models.md)
* [OCR API](ocr.md)
* [Streaming](streaming.md)
* [Parameters](parameters.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ description: "Errors produced by the gateway carry a machine-readable code in th
| --- | --- | --- | --- |
| `invalid_request` | 400 | No prompt (`messages` missing or empty — message "request body doesn't contain valid prompts"), unsupported parameter or value, `max_tokens` too large, unsupported content type. | No — fix the request |
| `request_denied` | 401 | API key missing, unknown, inactive or expired. | No |
| `invalid_api_key` | 401 | Missing or invalid API key on `/v1/models` — the model catalog endpoint. | No |
| `request_denied` | 403 | The model is not enabled for the account (“model not allowed for this key”). | No — enable the model |
| `request_denied` | 400 | A content-safety guardrail blocked the request. See [Content safety](../features/content-safety.md). | No |
| `request_denied` | 429 | Your rate limit is exceeded. The message names the limit and the seconds until it resets. See [Rate limits & limits](limits.md). | Yes, after the reset |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ description: "Anthropic-compatible Messages API, available on every chat model.
| `tool_choice` | object | Optional | auto · any · tool · none | auto | Anthropic tool-choice format. |

{% hint style="info" %}
**About ranges and defaults**

Ranges follow the API specification the endpoint is compatible with. Whether a given model accepts a parameter is listed in its `supported_parameters` (`GET /v1/models`); a parameter not on that list is ignored (no error). See [Parameters](parameters.md) for how many models support each one.
Ranges follow the API specification the endpoint is compatible with; a parameter the model does not accept is ignored (no error). See [Parameters](parameters.md).
{% endhint %}

## Example
Expand Down
104 changes: 104 additions & 0 deletions English/ai-stack/model-as-a-service/api-reference/models.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
---
description: "Read the model catalog that your API key can use, with full OpenAI/OpenRouter-compatible metadata — context length, modality, pricing and supported parameters."
---

# Models

`GET /v1/models` returns the models your API key can use. `GET /v1/models/{id}` returns one model. The metadata follows the OpenAI/OpenRouter schema, so existing tools, SDKs and price-comparison scripts can read it without manually checking the docs.

## Endpoints

| Method | Path | Returns |
| --- | --- | --- |
| `GET` | `/v1/models` | The models your key can use |
| `GET` | `/v1/models/{id}` | One model; `id` has the form `vendor/model`, for example `z-ai/glm-5.3` |
| `HEAD` | `/v1/models/{id}` | `200` if the model exists, with no body |

Send the API key as on every other endpoint — see [Authentication](overview.md#authentication). The list only contains models your key can use: models that are not enabled, or that belong to an expired package / sub-key, do not appear.

## Query parameter

| Parameter | Value | Description |
| --- | --- | --- |
| `view` | `basic` | Each item only has the 6 fields of the legacy shape (`id`, `object`, `created`, `owned_by`…), without `pricing`, `architecture` or `supported_parameters`. Kept unchanged so existing code does not break. |

## Fields of a model

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Model ID in the form `vendor/model`; use it as the `model` value when calling the API. |
| `object` | string | Object type, always `model`. |
| `created` | integer | When the model was added to the catalog (Unix timestamp). |
| `description` | string | Model description. |
| `context_length` | integer | Maximum tokens for input + output. |
| `architecture.modality` | string | Data direction, for example `text->text`, `text+image->text`. |
| `architecture.tokenizer` | string | Tokenizer used to count tokens. |
| `pricing.prompt` | number | Price per input token, in credits. |
| `pricing.completion` | number | Price per output token, in credits. |
| `pricing.cache` | number | Price per cache token, in credits. |
| `supported_parameters` | array | Parameters the model accepts, for example `temperature`, `tools`, `reasoning_effort`. Always an array, never `null`. |
| `top_provider.max_completion_tokens` | integer | Maximum output tokens. |
| `top_provider.is_moderated` | boolean | Whether the model goes through content moderation. |
| `reasoning.mandatory` | boolean | `true` = the model always reasons; it cannot be turned off. |
| `reasoning.default_enabled` | boolean | `true` = the model reasons when you pass nothing. |
| `reasoning.default_effort` | string | Effort level applied when you pass nothing. |
| `reasoning.supported_efforts` | array | `reasoning_effort` levels the model accepts. |
| `per_request_limits` | object | Per-model request limits (for example RPM) so clients can throttle before hitting a 429. |

`pricing` is the price **per token**. To get the familiar unit **credits / 1,000,000 tokens**, multiply the value by `1,000,000`. `1 credit = 1 VND`.

## Examples

List models:

```bash
curl https://maas-llm-aiplatform-hcm.api.vngcloud.vn/v1/models \
-H "Authorization: Bearer $GREENNODE_API_KEY"
```

```json
{
"object": "list",
"data": [
{
"id": "z-ai/glm-5.3",
"object": "model",
"created": 1751328000,
"description": "GLM-5.3 is Z.ai's open-weight flagship model ...",
"context_length": 1000000,
"architecture": { "modality": "text->text", "tokenizer": "glm" },
"pricing": { "prompt": 0.0000371, "completion": 0.0001166, "cache": 0.00000689 },
"supported_parameters": ["temperature", "tools", "reasoning_effort"],
"top_provider": { "max_completion_tokens": 131072, "is_moderated": false },
"reasoning": {
"mandatory": true,
"default_enabled": true,
"default_effort": "max",
"supported_efforts": ["minimal", "low", "medium", "high", "xhigh", "max"]
}
}
]
}
```

Get one model:

```bash
curl https://maas-llm-aiplatform-hcm.api.vngcloud.vn/v1/models/z-ai/glm-5.3 \
-H "Authorization: Bearer $GREENNODE_API_KEY"
```

The response is a single model object (not wrapped in `data`), with the same schema as an item above.

{% hint style="info" %}
`GET /v1/models` is the source to build against. The [Model list](../models/README.md) page is a human-readable view of the same catalog.
{% endhint %}

## Errors

| HTTP | Code | When |
| --- | --- | --- |
| `401` | `invalid_api_key` | The API key is missing or invalid. |
| `404` | `model_not_found` | The `id` does not exist, or you do not have access to that model. |

A `401` on generation endpoints (`/v1/chat/completions`, `/v1/messages`, `/v1/responses`) uses `request_denied`; `/v1/models` uses `invalid_api_key`. See [Errors](errors.md).
5 changes: 3 additions & 2 deletions English/ai-stack/model-as-a-service/api-reference/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ https://maas-llm-aiplatform-hcm.api.vngcloud.vn
| [`POST /v1/responses`](responses.md) | OpenAI Responses | ✓ |
| [`POST /v1/embeddings`](embeddings.md) | OpenAI Embeddings | — |
| [`POST /v1/rerank`](rerank.md) | Rerank (`query` + `documents`) | — |
| [`GET /v1/models`](../models/README.md) | Model catalog | — |
| [`GET /v1/models`](models.md) | Model catalog (OpenAI/OpenRouter) | — |
| [`GET /v1/models/{id}`](models.md) | One model | — |

## Authentication

Expand All @@ -30,7 +31,7 @@ Send your API key in one of these two headers:
| `Authorization: Bearer <key>` | OpenAI SDK, curl |
| `x-api-key: <key>` | Anthropic SDK, Claude Code |

Missing or unknown key → **401** `request_denied`. Model not enabled for the key → **403** `request_denied`.
Missing or unknown key → **401** `request_denied`. Model not enabled for the key → **403** `request_denied`. `/v1/models` alone returns **401** `invalid_api_key` for a missing or invalid key. See [Errors](errors.md).

## Selecting the model

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ description: "The same concept has a different field name on each endpoint. This
| Stop reason | `finish_reason` | `stop_reason` | `status` |

{% hint style="info" %}
Not every model supports every parameter. Check `supported_parameters` in [`GET /v1/models`](../models/README.md). `top_k`, `min_p` and `repetition_penalty` are accepted only by models that list them.
Not every model supports every parameter. Check `supported_parameters` in [`GET /v1/models`](models.md). `top_k`, `min_p` and `repetition_penalty` are accepted only by models that list them.
{% endhint %}

## Parameter support by model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ description: "OpenAI Responses API, available on every chat model. Used by Codex
| `previous_response_id` | string | Optional | — | — | **Not supported.** The gateway is stateless; send the full conversation in `input` every turn. |

{% hint style="info" %}
**About ranges and defaults**

Ranges follow the API specification the endpoint is compatible with. Whether a given model accepts a parameter is listed in its `supported_parameters` (`GET /v1/models`); a parameter not on that list is ignored (no error). See [Parameters](parameters.md) for how many models support each one.
Ranges follow the API specification the endpoint is compatible with; a parameter the model does not accept is ignored (no error). See [Parameters](parameters.md).
{% endhint %}

{% hint style="info" %}
Expand Down
17 changes: 3 additions & 14 deletions English/ai-stack/model-as-a-service/available-models.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,9 @@ The MaaS API provides access to model families such as Qwen, DeepSeek, GLM, Kimi
The model catalog below covers models self-hosted by GreenNode and third-party models under official contracts. See catalog changes in [Release Notes](../release-notes.md) and the billing rules in [Pricing](pricing.md).
{% endhint %}

### Rate limit
### Rate limits

Applies by default to **every new account** using the MaaS API, counted **separately for each model**:

| Limit | Default value (per model) |
| --- | --- |
| Requests | **10 RPM** — 10 requests/minute |
| Tokens | **1,000,000 TPM** — 1 million tokens/minute |

Each model has its own counter: calling model A does not consume the quota of model B. See [Rate limits](portal/rate-limits.md) for details.

{% hint style="info" %}
Need more? [Contact GreenNode](https://helpdesk.greennode.ai/portal/en/newticket) to be considered for the **whitelist**. Whitelisting is reviewed case by case.
{% endhint %}
**10 RPM** and **1,000,000 TPM** per model by default, counted separately per model. See [Rate limits](portal/rate-limits.md) for details and how to request more.

***

Expand All @@ -34,4 +23,4 @@ Models are offered in one of two ways:

Under the [SLA](sla.md), the commitment on Monthly Uptime Percentage applies to the availability of the Service for GreenNode Models; GreenNode does not commit to any SLA for Third-party Models. The list of available models and their classification are published and updated by GreenNode on the [Service Console](https://aiplatform.console.greennode.ai/models).

MaaS supports these model types: **Chat**, **Embedding**, **Rerank** and **OCR**.
MaaS supports these model types: **Chat**, **Embedding**, **Rerank** and **OCR**. Chat models can be called through one or more API standards: **Chat Completions**, **Messages** (Anthropic) and **Responses** — see the `API compatibility` row on a Model detail page.
2 changes: 1 addition & 1 deletion English/ai-stack/model-as-a-service/features/reasoning.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The **Reasoning** column of the [Model list](../models/README.md) has three valu

Accepted values: `none` · `minimal` · `low` · `medium` · `high` · `xhigh` · `max`. Any other value → 400.

* Each model supports a subset (see `reasoning.supported_efforts` on the [Models](../models/README.md) page). A value the model doesn't support natively is mapped to the closest level it does.
* Each model supports a subset (see `reasoning.supported_efforts` in the [Models API](../api-reference/models.md)). A value the model doesn't support natively is mapped to the closest level it does.
* If you don't set an effort, the model's `default_effort` applies — for several models that is `max`, which is slow and token-hungry.
* Models with `reasoning.mandatory: true` always reason; `none` lowers effort to the minimum rather than disabling it.

Expand Down
Loading
Loading