← 返回
未分类 Key 中文

Agnic AI Gateway

Access 340+ AI models via the Agnic AI Gateway -- chat, image generation, model listing. Use when the user wants to chat with AI, generate images, ask GPT, u...
通过 Agnic AI 网关访问 340+ AI 模型,可进行聊天、图像生成、模型列表查询。用户想与 AI 对话、生成图像或提问 GPT 时使用。
agnicpay-prog agnicpay-prog 来源
未分类 clawhub v2.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 388
下载
💾 0
安装
1
版本
#latest

概述

AI Gateway

Access 340+ AI models (OpenAI, Anthropic, Google, Meta, Mistral, DeepSeek, and more) through the Agnic AI Gateway. Costs are deducted from your USDC balance per token. Free models available for development.

Authentication

Run npx agnic@latest status --json to verify. If not authenticated:

  • Headless (CI/server/agent): Set AGNIC_TOKEN env var or pass --token
  • Interactive (has browser): Run npx agnic@latest auth login

See the authenticate-wallet skill for details.

Commands

List models

npx agnic@latest ai models [--provider <name>] [--search <term>] [--json]

Chat with a model

npx agnic@latest ai chat --model <provider/model-name> --prompt "<text>" [--system "<text>"] [--json]

Generate an image

npx agnic@latest ai image --prompt "<text>" [--aspect-ratio 16:9] [--output file.png] [--json]

Models use provider/model-name format (e.g., openai/gpt-4o, meta-llama/llama-3.3-70b).

See reference/models-and-options.md for full model list, all options, and input validation rules.

Examples

# List OpenAI models
npx agnic@latest ai models --provider openai --json

# Chat with GPT-4o
npx agnic@latest ai chat --model openai/gpt-4o --prompt 'Explain quantum computing in one sentence'

# Use a free model
npx agnic@latest ai chat --model meta-llama/llama-3.3-70b --prompt 'What is 2+2?' --json

# Generate an image
npx agnic@latest ai image --prompt 'A sunset over mountains' --output sunset.png

# Generate widescreen image
npx agnic@latest ai image --prompt 'Cyberpunk cityscape' --aspect-ratio 16:9 --output city.png

Prerequisites

  • Must be authenticated (npx agnic@latest status to check)
  • Wallet must have USDC balance (free models available for testing)

Error Handling

Common errors:

  • "Not authenticated" -- Run npx agnic@latest auth login or set AGNIC_TOKEN
  • "Insufficient balance" -- Fund wallet at app.agnic.ai
  • "Model not found" -- Check available models with npx agnic@latest ai models
  • "No image returned" -- Try a different model or rephrase the prompt
  • "Rate limit exceeded" -- Wait a moment and retry

版本历史

共 1 个版本

  • v2.0.2 当前
    2026-05-07 05:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

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

Self-Improving + Proactive Agent

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

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,460 📥 514,983