
โบราณว่าไว้: ของฟรีและดีไม่มีในโลก API AI ฟรีมักจะมีข้อจำกัดเสมอ หากคุณมีงบประมาณเล็กน้อย การเลือกสมัครบริการที่คุ้มค่าจะช่วยเพิ่มประสิทธิภาพในการทำงานได้ดียิ่งขึ้น OpenCode Go คือหนึ่งในตัวเลือกที่ดีที่สุดสำหรับการเขียนโค้ดด้วย Agent และโมเดล LLM ประสิทธิภาพสูง
สร้างโดยทีมงาน OpenCode ให้บริการสมัครสมาชิกในราคา $5 ในเดือนแรก ($10/เดือน หลังจากนั้น) รับสิทธิ์ใช้งานโมเดลสูงสุด $60/เดือน เมื่อใช้งานร่วมกับ DeepSeek V4 Flash (0731) และ DeepSeek V4 Pro โควต้า Token สูงและใช้งานร่วมกับมาตรฐาน OpenAI ได้ทันที
ทีมงาน OpenCode ปรับลดราคา Token ภายในสำหรับ DeepSeek V4 Flash ลงอย่างมาก:
API อย่างเป็นทางการของ DeepSeek คิดราคา 2 เท่าในช่วงเวลาเร่งด่วน OpenCode Go ใช้โควต้าตามช่วงเวลาที่ยืดหยุ่น:
ใช้งาน DeepSeek-V4-Flash, DeepSeek-V4-Pro, Grok, Kimi และ Qwen
*คำแนะนำจาก @meathill:* แนะนำให้ใช้ DeepSeek V4 Flash เป็นหลักสำหรับการทำงานจริง
https://opencode.ai/zen/v1ไปที่: หน้าสมัครสมาชิก OpenCode Go (เข้าสู่ระบบด้วย GitHub หรือ Google)
เลือกแพ็กเกจ OpenCode Go ในคอนโซลพร้อมรับส่วนลด $5 ในเดือนแรกโดยอัตโนมัติ
ไปที่แท็บ API Keys คลิก Create New Key แล้วคัดลอกคีย์ของคุณ
curl https://opencode.ai/zen/v1/chat/completions \
-H "Authorization: Bearer YOUR_OPENCODE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [
{"role": "user", "content": "Write an async queue in Python."}
]
}'from openai import OpenAI
client = OpenAI(
base_url="https://opencode.ai/zen/v1",
api_key="YOUR_OPENCODE_API_KEY",
)
response = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[
{"role": "system", "content": "You are a senior system architect."},
{"role": "user", "content": "Explain the advantages of DeepSeek-V4-Flash with code."}
],
temperature=0.7,
)
print(response.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://opencode.ai/zen/v1",
apiKey: process.env.OPENCODE_API_KEY || "YOUR_OPENCODE_API_KEY",
});
async function main() {
const response = await client.chat.completions.create({
model: "deepseek-v4-flash",
messages: [
{ role: "system", content: "You are a senior Node.js architect." },
{ role: "user", content: "Implement an async scheduler in TypeScript." },
],
temperature=0.7,
});
console.log(response.choices[0].message.content);
}
main();
ความคิดเห็นจากชุมชน
ความคิดเห็นผูกกับบัญชี GitHub ของคุณ — เข้าสู่ระบบเพื่อร่วมพูดคุย