Skip to content
  • Auto
  • Light
  • Dark

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.

You can generate a new API key in the console

For example, you can list your available Agents, by using the SDK.

Python
import os
from 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)