-
Install the Buf CLI for macOS or Linux, for example, by using Homebrew:
-
Clone the Nebius AI Cloud API repository and go to the Nebius AI Cloud Buf configuration:
-
Edit the configuration to keep only the programming languages you support. For example, for Java only:
-
To generate the client code, run the following command:
-
To get the generated client code, go to the
gen/<language>directory. For example, if you generated a Java client, go togen/java.
Invoking methods
Generating clients for the Nebius AI Cloud API from the proto files
To make gRPC API calls to Nebius AI Cloud services in your code, you can generate API clients from the Protocol Buffer specifications hosted on GitHub.
The proto files come with a configuration file for Buf. To generate an API client by using the Buf CLI: