# Send Gradient Inference to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "gradient-inference",
    "name": "Gradient Inference",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/simondelorean/gradient-inference",
    "canonicalUrl": "https://clawhub.ai/simondelorean/gradient-inference",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/gradient-inference",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gradient-inference",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/gradient_chat.py",
      "scripts/gradient_image.py",
      "scripts/gradient_models.py",
      "scripts/gradient_pricing.py",
      "scripts/pricing_snapshot.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "gradient-inference",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T00:11:55.312Z",
      "expiresAt": "2026-05-11T00:11:55.312Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gradient-inference",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=gradient-inference",
        "contentDisposition": "attachment; filename=\"gradient-inference-0.1.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "gradient-inference"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/gradient-inference"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/gradient-inference",
    "downloadUrl": "https://openagent3.xyz/downloads/gradient-inference",
    "agentUrl": "https://openagent3.xyz/skills/gradient-inference/agent",
    "manifestUrl": "https://openagent3.xyz/skills/gradient-inference/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/gradient-inference/agent.md"
  }
}
```
## Documentation

### 🦞 Gradient AI — Serverless Inference

⚠️ This is an unofficial community skill, not maintained by DigitalOcean. Use at your own risk.

"Why manage GPUs when the ocean provides?" — ancient lobster proverb

Use DigitalOcean's Gradient Serverless Inference to call large language models without managing infrastructure. The API is OpenAI-compatible, so standard SDKs and patterns work — just point at https://inference.do-ai.run/v1 and swim.

### Authentication

All requests need a Model Access Key in the Authorization: Bearer header.

export GRADIENT_API_KEY="your-model-access-key"

Where to get one: DigitalOcean Console → Gradient AI → Model Access Keys → Create Key.

📖 Full auth docs

### 🔍 List Available Models

Window-shop for LLMs before you swipe the card.

python3 gradient_models.py                    # Pretty table
python3 gradient_models.py --json             # Machine-readable
python3 gradient_models.py --filter "llama"   # Search by name

Use this before hardcoding model IDs — models are added and deprecated over time.

Direct API call:

curl -s https://inference.do-ai.run/v1/models \\
  -H "Authorization: Bearer $GRADIENT_API_KEY" | python3 -m json.tool

📖 Models reference

### 💬 Chat Completions

The classic. Send structured messages (system/user/assistant roles), get a response. OpenAI-compatible, so you probably already know how this works.

python3 gradient_chat.py \\
  --model "openai-gpt-oss-120b" \\
  --system "You are a helpful assistant." \\
  --prompt "Explain serverless inference in one paragraph."

# Different model
python3 gradient_chat.py \\
  --model "llama3.3-70b-instruct" \\
  --prompt "Write a haiku about cloud computing."

Direct API call:

curl -s https://inference.do-ai.run/v1/chat/completions \\
  -H "Authorization: Bearer $GRADIENT_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "model": "openai-gpt-oss-120b",
    "messages": [
      {"role": "system", "content": "You are a helpful assistant."},
      {"role": "user", "content": "Hello!"}
    ],
    "temperature": 0.7,
    "max_tokens": 1000
  }'

📖 Chat Completions docs

### ⚡ Responses API (Recommended)

DigitalOcean's recommended endpoint for new integrations. Simpler request format and supports prompt caching — a.k.a. "stop paying twice for the same context."

# Basic usage
python3 gradient_chat.py \\
  --model "openai-gpt-oss-120b" \\
  --prompt "Summarize this earnings report." \\
  --responses-api

# With prompt caching (saves cost on follow-up queries)
python3 gradient_chat.py \\
  --model "openai-gpt-oss-120b" \\
  --prompt "Now compare it to last quarter." \\
  --responses-api --cache

Direct API call:

curl -s https://inference.do-ai.run/v1/responses \\
  -H "Authorization: Bearer $GRADIENT_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "model": "openai-gpt-oss-120b",
    "input": "Explain prompt caching.",
    "store": true
  }'

When to use which:

Chat CompletionsResponses APIRequest formatArray of messages with rolesSingle input stringPrompt caching❌✅ via store: trueMulti-step tool useManualBuilt-inBest forStructured conversationsSimple queries, cost savings

📖 Responses API docs

### 🖼️ Generate Images

Turn text prompts into images. Because sometimes a chart isn't enough.

python3 gradient_image.py --prompt "A lobster trading stocks on Wall Street"
python3 gradient_image.py --prompt "Sunset over the NYSE" --output sunset.png
python3 gradient_image.py --prompt "Fintech logo" --json

Direct API call:

curl -s https://inference.do-ai.run/v1/images/generations \\
  -H "Authorization: Bearer $GRADIENT_API_KEY" \\
  -H "Content-Type: application/json" \\
  -d '{
    "model": "dall-e-3",
    "prompt": "A lobster analyzing candlestick charts",
    "n": 1
  }'

📖 Image generation docs

### 🧠 Model Selection Guide

Not all models are created equal. Choose wisely, young crustacean:

ModelBest ForSpeedQualityContextopenai-gpt-oss-120bComplex reasoning, analysis, writingMedium★★★★★128Kllama3.3-70b-instructGeneral tasks, instruction followingFast★★★★128Kdeepseek-r1-distill-llama-70bMath, code, step-by-step reasoningSlow★★★★★128Kqwen3-32bQuick triage, short tasksFastest★★★32K

🦞 Pro tip: Cost-aware routing. Use a fast model (e.g., qwen3-32b) to score or triage, then only escalate to a strong model (e.g., openai-gpt-oss-120b) when depth is needed. Enable prompt caching for repeated context.

Always run python3 gradient_models.py to check what's currently available — the menu changes.

📖 Available models

### 💰 Model Pricing Lookup

Check what models cost before you rack up a bill. Scrapes the official DigitalOcean pricing page — no API key needed.

python3 gradient_pricing.py                    # Pretty table
python3 gradient_pricing.py --json             # Machine-readable
python3 gradient_pricing.py --model "llama"    # Filter by model name
python3 gradient_pricing.py --no-cache         # Skip cache, fetch live

How it works:

Fetches live pricing from DigitalOcean's docs (public page, no auth)
Caches results for 24 hours in /tmp/gradient_pricing_cache.json
Falls back to a bundled snapshot if the live fetch fails

🦞 Pro tip: Run python3 gradient_pricing.py --model "gpt-oss" before choosing a model to see the cost difference between gpt-oss-120b ($0.10/$0.70) and gpt-oss-20b ($0.05/$0.45) per 1M tokens.

📖 Pricing docs

### CLI Reference

All scripts accept --json for machine-readable output.

gradient_models.py   [--json] [--filter QUERY]
gradient_chat.py     --prompt TEXT [--model ID] [--system TEXT]
                     [--responses-api] [--cache] [--temperature F]
                     [--max-tokens N] [--json]
gradient_image.py    --prompt TEXT [--model ID] [--output PATH]
                     [--size WxH] [--json]
gradient_pricing.py  [--json] [--model QUERY] [--no-cache]

### External Endpoints

EndpointPurposehttps://inference.do-ai.run/v1/modelsList available modelshttps://inference.do-ai.run/v1/chat/completionsChat Completions APIhttps://inference.do-ai.run/v1/responsesResponses API (recommended)https://inference.do-ai.run/v1/images/generationsImage generationhttps://docs.digitalocean.com/.../pricing/Pricing page (scraped, public)

### Security & Privacy

All requests go to inference.do-ai.run — DigitalOcean's own endpoint
Your GRADIENT_API_KEY is sent as a Bearer token in the Authorization header
No other credentials or local data leave the machine
Model Access Keys are scoped to inference only — they can't manage your DO account
Prompt caching entries are scoped to your account and automatically expire

### Trust Statement

By using this skill, prompts and data are sent to DigitalOcean's Gradient Inference API.
Only install if you trust DigitalOcean with the content you send to their LLMs.

### Important Notes

Run python3 gradient_models.py before assuming a model exists — they rotate
All scripts exit with code 1 and print errors to stderr on failure
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: simondelorean
- Version: 0.1.3
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T00:11:55.312Z
- Expires at: 2026-05-11T00:11:55.312Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/gradient-inference)
- [Send to Agent page](https://openagent3.xyz/skills/gradient-inference/agent)
- [JSON manifest](https://openagent3.xyz/skills/gradient-inference/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/gradient-inference/agent.md)
- [Download page](https://openagent3.xyz/downloads/gradient-inference)