MCP server và công cụ dòng lệnh
Dùng model chat, ảnh và video từ AI agent qua MCP server, hoặc từ terminal bằng công cụ dòng lệnh apistore.
MCP
Dùng các model từ AI agent qua MCP server của chúng tôi (Streamable HTTP). Thêm URL bên dưới vào Claude Code, Cursor, Windsurf, VS Code hoặc bất kỳ MCP client nào, kèm API key trong header Authorization. Lượt gọi trừ vào số dư với cùng giá như API.
URL: https://api.apistore.cloud/mcp Authorization: Bearer sk-...
# Claude Code
claude mcp add --transport http apistore https://api.apistore.cloud/mcp \
--header "Authorization: Bearer sk-..."
# Cursor (~/.cursor/mcp.json), Windsurf, VS Code and other MCP clients
{
"mcpServers": {
"apistore": {
"url": "https://api.apistore.cloud/mcp",
"headers": { "Authorization": "Bearer sk-..." }
}
}
}Công cụ: list_models (danh sách model và giá của bạn), chat (gửi prompt hoặc messages tới model và nhận câu trả lời), create_image (tạo ảnh và nhận link), create_video (tạo video và nhận id) và get_video (trạng thái, rồi link tải file khi hoàn tất).
Hướng dẫn cài đặt: Cursor · Cline · Claude Code
CLI
Lệnh apistore chạy các model chat, ảnh và video từ terminal hoặc shell script: văn bản vào, câu trả lời ra, file lưu vào nơi bạn chỉ định. Cần Node 20 trở lên.
npm install -g @apistorecloud/apistore apistore login --key sk-... apistore chat -m deepseek-v4-1-flash "Hello!" apistore chat "Summarize this" < notes.md apistore image "a red bicycle on a white wall" -o bike.png apistore video "waves at sunset, slow pan" --resolution 720p --seconds 5
Mọi lệnh đều có --json để nhận phản hồi API thô, và key cũng có thể lấy từ APISTORE_API_KEY cho script và CI. Chạy apistore --help để xem mọi tuỳ chọn.
