baidu/cobuddyClosed APIBaidu Qianfan model optimized for code generation and tool-using coding agents
TECHNICAL SPECIFICATIONS
MODEL CONTEXT PROTOCOL (MCP) READINESS
✓ CoBuddy natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.
MCP Context Window Recommendations
With a context capacity of 131,072 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.
API CALL INVOCATION EXAMPLE
// Example: Calling CoBuddy via OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.BAIDU_API_KEY,
});
const response = await client.chat.completions.create({
model: "baidu/cobuddy",
messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});
console.log(response.choices[0].message.content);PRICING BY PROVIDER
Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.
This model supports prompt caching at $0.07 / 1M tokens, saving up to 75% on repetitive MCP tool definitions and system instructions.
MODEL RESOURCES
More Models by Baidu
Alternative and family models from the same lab
Open ERNIE text MoE with 300B total and 47B active parameters
Open ERNIE text MoE with 21B total and 3B active parameters
Multimodal reasoning model for visual analysis, planning, and tool use