GreenNode MaaS provides an
OpenAI-compatible API for seamless model inference. You can integrate it easily using Python, JavaScript SDK, or directly via the terminal with cURL.
Use GreenNode MaaS API with OpenAI client libraries
Install the library
Run the command below to install OpenAI client
pip install openai
Switching to GreenNode MaaS with OpenAI-compatible libraries is simple. You only need to configure two settings:
- base_url: Set this to http://maas.greennode.ai/v1
- api_key: Use your GreenNode API key (store it securely)
To get started, create a client instance in a new file:
- import os
- from openai import OpenAI
- client = OpenAI(base_url="http://maas.greennode.ai/v1", api_key=os.environ.get("GREENNODE_API_KEY"))
- response = client.chat.completions.create(
- model="GreenNode/GreenMind-Medium-14B-R1",
- messages=[
- {"role": "user",
- "content": "Hello, who are you?"}]
- )
- print(response.to_json())
Use GreenNode MaaS API with GreenNode client libraries
Install the library
Run the command below to install OpenAI client
- pip install greennode
To get started, create a client instance in a new file:
- import os
- from greennode import GreenNode
- client = GreenNode(api_key=os.environ.get("GREENNODE_API_KEY"))
- response = client.chat.completions.create(
- model="GreenNode/GreenMind-Medium-14B-R1",
- messages=[
- {"role": "user",
- "content": "Hello, who are you?"}]
- )
- print(response.choices[0].message.content)
Related Articles
Connecting to GreenNode AI Platform
GreenNode offers flexible connection options to manage your compute resources efficiently. Choose the method that best aligns with your workflow: Web Interface The GreenNode web portal offers a user-friendly interface to: Launch and manage notebook ...
Manage API keys
This guide will show you how to create, copy, and delete API keys in the GreenNode AI Platform. Creating an API Key To generate a new API key: Go to the API Keys section in the GreenNode Portal. Click on the Add Key button. Enter a name for your key ...
GreenNode AI Platform Release Note 2024
This central hub provides comprehensive information about the latest updates, new features, enhancements, and bug fixes introduced in each release of the GreenNode AI Platform in 2024. Our goal is to keep you informed and empowered to make the most ...
GreenNode AI Platform Release Notes 2025
This central hub provides comprehensive information about the latest updates, new features, enhancements, and bug fixes introduced in each release of the GreenNode AI Platform in 2025. Our goal is to keep you informed and empowered to make the most ...
Overview
GreenNode offers Model as a Service (MaaS) to help developers and businesses integrate powerful AI capabilities into their applications with ease. Whether you're working with language models, vision models, or multi-modal AI systems, GreenNode ...