yieldingbear

Use Yielding Bear's unified LLM API for cost arbitrage and intelligent routing. Use when cutting AI costs, routing LLM requests, comparing model pricing, or setting up an OpenClaw agent to use multiple LLM providers. YB routes every request to the cheapest capable model automatically — saving 60-80% vs direct API calls.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "yieldingbear" with this command: npx skills add Yielding Bear/yieldingbear

Yielding Bear — Unified LLM Routing API

Yielding Bear provides a single unified API that routes every LLM request to the cheapest capable model across 16+ providers — saving 60-80% vs calling OpenAI, Anthropic, or Google directly.

Setup (First Time Only)

  1. Get an API key at https://yieldingbear.com/api

  2. Set environment variable:

    export YIELDINGBEAR_API_KEY="yb_live_your_key_here"
    
  3. Save to your shell profile (optional):

    echo 'export YIELDINGBEAR_API_KEY="yb_live_your_key_here"' >> ~/.zshrc
    source ~/.zshrc
    

Quick Start — OpenClaw Agents

Method 1: Direct API calls

curl -X POST https://api.yieldingbear.com/v1/chat/completions \
  -H "Authorization: Bearer $YIELDINGBEAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "auto",
    "messages": [{"role": "user", "content": "Summarize this email: ..."}],
    "max_tokens": 500
  }'

Method 2: OpenAI-compatible drop-in replacement

from openai import OpenAI

client = OpenAI(
    api_key="yb_live_your_key",
    base_url="https://api.yieldingbear.com/v1"
)
# Same SDK. Same code. 60-80% less cost.

Model Routing

Task TypeRoutes ToCost/1M
Summaries, classificationLlama 3.1 8B$0.04
Email drafting, formattingDeepSeek V3$0.07
General chat, codeGPT-4o-mini$0.15
Complex reasoningYB Sentinel 70B$0.06
Fast completionsGemini 2.0 Flash$0.10

Override routing:

{ "model": "claude-3.5-haiku", "routing": { "capabilities": ["reasoning"] } }

OpenClaw Agent Integration

For OpenClaw sub-agents

Set in environment before spawning:

export YIELDINGBEAR_API_KEY="yb_live_..."

The agent uses YB automatically when calling OpenAI-compatible endpoints.

For custom tools and scripts

RESULT=$(curl -s -X POST "https://api.yieldingbear.com/v1/chat/completions" \
  -H "Authorization: Bearer $YIELDINGBEAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"auto","messages":[{"role":"user","content":"Analyze: $1"}]}')
echo "$RESULT"

Cost Comparison

TaskDirect OpenAIVia YBSavings
1M simple summaries$150$4073%
1M email drafts$300$6080%
1M chat completions$500$15070%
1M reasoning tasks$3,000$30090%

Key Links

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Ephemeral Media Hosting

自動削除機能付き一時メディアホスティングシステム

Registry SourceRecently Updated
General

Ethereum Read Only

Foundry castを使用したウォレット不要のオンチェーン状態読み取り

Registry SourceRecently Updated
General

OpenClaw Memory

Manage, optimize, and troubleshoot the OpenClaw memory system — MEMORY.md curation, daily logs (memory/YYYY-MM-DD.md), memory_search tuning, compaction survi...

Registry SourceRecently Updated
General

ImageRouter

Generate AI images with any model using ImageRouter API (requires API key).

Registry SourceRecently Updated
2.6K2dawe35