Gradient API
Gradient API allows access to AI resources such as GPU Droplets, Knowledge Bases, Serverless Inference, and Agents. Developers can programatically create, update, and delete AI resources.
API Key
Section titled “API Key”You can generate a new API key in the console
Examples
Section titled “Examples”For example, you can list your available Agents, by using the SDK.
import osfrom do_gradientai import GradientAI
api_client = GradientAI( api_key=os.environ.get("GRADIENTAI_API_KEY"))
api_response = api_client.agents.list()if api_response.agents: print(api_response.agents[0].name)