LaunchKit · 2026
Back to Skills

gradient-inference

Community skill (unofficial) for DigitalOcean Gradient AI Serverless Inference.

0
478 downloads
by @simondelorean

Setup & Installation

openclaw skills install @simondelorean/gradient-inference

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install gradient-inference

Version History

v0.1.3Feb 16, 2026 - Version note by skill developer:

Fix path traversal vulnerability in save_image (VirusTotal finding)

What This Skill Does

Connects to DigitalOcean's Gradient AI Serverless Inference API to run chat completions, generate images, and look up available models and pricing. The endpoint is OpenAI-compatible. Prompt caching is available via the Responses API to reduce costs on repeated context.

Because the endpoint is OpenAI-compatible, existing SDK code works with only a base URL change, and prompt caching via the Responses API reduces spend on follow-up queries that reuse the same context.

When to use it

  • Running LLM queries without managing GPU servers
  • Checking model pricing before committing to a workload
  • Generating images from text prompts via serverless API
  • Using prompt caching to cut costs on repeated context
  • Browsing and filtering available models before hardcoding an ID

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: summarize this earnings report and compare it to last quarter

AGENT
  1. 1Run gradient_pricing.py to check model costs before choosing
  2. 2Select a model based on context length and cost requirements
  3. 3Send the earnings report via the Responses API with store: true to cache the context
  4. 4Send the follow-up comparison query, reusing the cached context
OUTPUT

Summary of the earnings report, then a cost-efficient comparison to last quarter with shared context billed only once due to prompt caching

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

GRADIENT_API_KEY environment variable (DigitalOcean Model Access Key from cloud.digitalocean.com)DigitalOcean account