For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect OpenAI-compatible Clients to GreenNode MaaS

Configure tools, SDKs, and IDE extensions that use the OpenAI API format to call models through GreenNode MaaS, billed via internal credit-tokens.


Prerequisites

  • An active AI Platform account

  • An API key with status ACTIVE

  • A tool or SDK that supports a custom base URL (OpenAI SDK, LiteLLM, Cursor, Continue.dev, etc.)

The LLM URL for OpenAI-compatible clients is https://maas-llm-aiplatform-hcm.api.vngcloud.vn/v1 (with /v1). This differs from Claude Code, which uses the Anthropic protocol (no /v1).


Step 1 β€” Get an API key from AI Platform

  1. Go to API Keys β†’ Create API Key

  2. Name the key (5–50 chars, lowercase letters, numbers, and hyphens)

  3. Copy the API key β€” it is shown only once


Step 2 β€” List available models

Fetch available models via the OpenAI-compatible endpoint:

Use the id value from the response as the model parameter in your API calls.


Step 3 β€” Configure the client

OpenAI Python SDK

OpenAI Node.js SDK

Environment variables (for OpenAI-compatible tools and CLIs)

LiteLLM

Cursor / Continue.dev

In the tool's settings, fill in:

Field
Value

Base URL

https://maas-llm-aiplatform-hcm.api.vngcloud.vn/v1

API Key

<your-api-key>

Model

openai/gpt-4o, gemini/gemini-2.5-flash, qwen/qwen3-27b (or the model ID from Step 2)


Step 4 β€” Verify the connection

Send a test request with curl:

Expected result: a JSON response containing choices[0].message.content.


Billing & Usage

  • Requests through GreenNode MaaS are billed in credit-tokens (1 credit = 1 VND)

  • View real-time usage on AI Platform Console β†’ Usage

  • Prepaid: credits are deducted every 5-minute collection cycle β€” when credits run out, the model is automatically disabled

  • Postpaid: usage is recorded as a debt with no quota limit


Troubleshooting

Symptom
Cause
Fix

401 Unauthorized

Wrong or inactive API key

Verify the key

404 Not Found

Missing /v1 in the URL

Ensure the base URL ends with /v1

Model not responding

Credits exhausted, model disabled

Add credits in AI Platform Console

OPENAI_BASE_URL not recognized

Tool uses its own config variable

Check the tool's docs for setting a custom base URL

Response parse error

Tool auto-appends /v1 to base URL

Try removing /v1 from the base URL if the tool handles it


Result

After configuration, the tool or SDK calls models through GreenNode MaaS instead of OpenAI directly. Usage is recorded in AI Platform Console and billed via internal credit-tokens.

I want to...
Go to

Use Claude Code with MaaS

View usage and billing

Last updated