← 返回
未分类 中文

Blueai Models

Configure and manage AI models from BlueAI unified proxy service for OpenClaw. Use when: (1) adding new models to openclaw.json, (2) choosing the right model...
通过 BlueAI 统一代理服务配置和管理 OpenClaw 的 AI 模型。适用于:(1) 在 openclaw.json中添加新模型;(2) 选取合适的模型。
dr-xiaoming dr-xiaoming 来源
未分类 clawhub v1.1.0 2 版本 99715.9 Key: 无需
★ 0
Stars
📥 351
下载
💾 0
安装
2
版本
#latest

概述

BlueAI Models for OpenClaw

Quick Start

Add a model to OpenClaw:

python3 scripts/add_model.py gemini-2.5-flash --alias flash
python3 scripts/add_model.py claude-sonnet-4-6 --alias sonnet
openclaw gateway restart

Test connectivity:

python3 scripts/test_model.py gemini-2.5-flash
python3 scripts/test_model.py --all-configured

List available models:

python3 scripts/add_model.py --list

Image Generation

Gemini image models generate images via Chat Completions (/v1/chat/completions), not the Images API. Send a prompt as a normal message; the model returns base64-encoded images in Markdown.

# Add image models
python3 scripts/add_model.py gemini-3.1-flash-image-preview
python3 scripts/add_model.py gemini-3-pro-image-preview
openclaw gateway restart

# Test image generation
python3 scripts/test_model.py gemini-3.1-flash-image-preview --image-gen
python3 scripts/test_model.py gemini-3-pro-image-preview --image-gen --save ./test-output
ModelSpeedQualityEdit SupportBest For
----------------------------------------------
gemini-3.1-flash-image-preview⚡ FastGoodQuick prototypes, batch
gemini-3-pro-image-previewMedium⭐ BestHigh-quality creative
gemini-2.5-flash-image⚡ FastGoodImage editing

For detailed usage, prompt tips, Python examples, and edit workflows: read references/image-generation.md.

Endpoints

TypeBase URLNote
----------------------
Claude (Anthropic)https://bmc-llm-relay.bluemediagroup.cnNo /v1
Everything else (OpenAI)https://bmc-llm-relay.bluemediagroup.cn/v1With /v1

Same API key works for all models.

Model Selection Quick Guide

NeedModelWhy
------------------
Cheapest + goodgemini-2.5-flash$0.15/M in, 1M context
Best ChineseDeepSeek-V3.2Top Chinese quality, cheap
Vision + cheapgpt-4o-mini or gemini-2.5-flashImage input, low cost
Strong reasoningo4-mini or DeepSeek-R1CoT reasoning
Best overallclaude-opus-4-6-v1128K output, Agent coding
Balancedclaude-sonnet-4-61/5 Opus price, most tasks
Code specialistgpt-5.2-codex128K output, code focused
Ultra-long contextxai.grok-4-fast-non-reasoning2M tokens
Image gen (fast)gemini-3.1-flash-image-previewChat-based, cheap
Image gen (quality)gemini-3-pro-image-previewBest Gemini quality
Image editgemini-2.5-flash-imageSend image + edit instruction

References

  • Full model catalog: Read references/model-catalog.md for all 100+ models with specs
  • OpenClaw config guide: Read references/openclaw-config.md for JSON structure and examples
  • Model selection decision tree: Read references/model-selection.md for task-based recommendations
  • Image generation guide: Read references/image-generation.md for Gemini image gen usage, prompts, and code examples

Key Rules

  1. Claude models use api: "anthropic-messages", baseUrl without /v1
  2. All other models use api: "openai-completions", baseUrl with /v1
  3. DeepSeek/Qwen text models: set input: ["text"] only (no image)
  4. MiniMax: must use OpenAI endpoint, does not support Claude endpoint
  5. gemini-3-pro-preview deprecated 2026-03-26 → use gemini-3.1-pro-preview
  6. Gemini image models use chat completions, not images API — output is base64 in Markdown
  7. After config changes: openclaw gateway restart

版本历史

共 2 个版本

  • v1.1.0 当前
    2026-05-03 11:16 安全 安全
  • v1.0.0
    2026-03-31 10:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 320,936
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,232 📥 268,219
ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,214