AgnesAI-Models README

The project's README from github.com/AgnesAI-Labs/AgnesAI-Models. As one markdown file: README.md.

Agnes AI

English 简体中文 Error Codes | 常见错误码

Official gateway and model catalog for Agnes AI.

Agnes AI gives developers OpenAI-compatible access to multimodal models for text, image, video, and agent workflows through a unified API gateway.

About Agnes AI

Agnes AI is a frontier AI company focused on full-modality foundation models. We train models in-house across text, image, video, and reasoning. Our mission is to make high-quality AI more accessible, scalable, and easy to plug into any product or platform.

Our model suite features high-precision models ranked on PinchBench and is purpose-built to power agentic tools such as OpenClaw and Hermes. Alongside text-to-image, image-to-image, and image-to-video models, it delivers cinematic-quality visuals, synchronized audio-visual generation, and fast performance for seamless creation, transformation, and deployment of rich AI-generated content.

Documentation Status

Field Value
Public documentation version 2026.07.30
Last updated 2026-07-30 00:00 Asia/Singapore
Source of truth Official website and API platform
Change notice Model availability, rate limits, pricing, and quota rules may change over time. Always confirm production-critical values in the official docs or platform console.
Resource URL
International site https://agnes-ai.com/
China site https://agnes-ai.cn/
Developer Docs https://agnes-ai.com/doc/overview
API Platform https://platform.agnes-ai.com/
API Base URL https://apihub.agnes-ai.com/v1

Agnes AI provides two official sites: the International site and the China site. Choose the site that matches your region and service needs.

Developer Resources

Resource Purpose
MODEL_CATALOG.md Model families, endpoints, current reference limits, and compatibility notes.
CHANGELOG.md Public documentation, model, quota, and integration updates.
SUPPORT.md Where to ask for help, what belongs in issues, and what belongs in discussions.
docs/TROUBLESHOOTING.md API error codes, debugging checklist, and retry guidance.
docs/ERROR_CODES.md Bilingual common API status codes, causes, and recommended fixes.
docs/FAQ.md Common questions about access, limits, models, and video polling.
docs/TOKEN_PLAN_FAQ.md Token Plan access types, RPM limits, subscription quotas, and API key limit pools.
docs/DISCUSSIONS.md Recommended discussion categories and community workflow.
examples/ Minimal curl, Python, and Node.js examples.

Models

Model Type Endpoint Highlights
agnes-2.5-flash Text and vision-language /v1/chat/completions Upgraded coding, agent workflows, tool calling, multi-turn dialogue, reasoning, and image understanding
agnes-2.0-flash Text and vision-language /v1/chat/completions Reasoning, coding, tool calling, streaming, image understanding, agent workflows
agnes-image-2.0-flash Image generation and editing /v1/images/generations Text-to-image, image-to-image, URL or Base64 output
agnes-image-2.1-flash Image generation and editing /v1/images/generations High-density visual generation, image editing, flexible sizes, URL or Base64 output
agnes-video-v2.0 Video generation /v1/videos Text-to-video, image-to-video, multi-image video, keyframe animation, async task API

Python Quick Start

Install the example dependencies:

pip install -r requirements.txt
export AGNES_API_KEY="your_api_key_here"

Run a streaming chat completion:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_AGNES_API_KEY",
    base_url="https://apihub.agnes-ai.com/v1",
)

response = client.chat.completions.create(
    model="agnes-2.5-flash",
    messages=[
        {"role": "user", "content": "Write a short intro to Agnes AI."}
    ],
    stream=True,
)

for chunk in response:
    delta = chunk.choices[0].delta.content
    if delta:
        print(delta, end="")

Python examples:

Example Purpose
examples/python/chat.py Streaming chat completion with agnes-2.5-flash.
examples/python/openai_compatible.py Minimal OpenAI-compatible client configuration.
examples/python/image_generation.py Text-to-image request with agnes-image-2.1-flash.
examples/python/video_generation.py Text-to-video task creation and video_id polling.
examples/python/agent_workflow.py Tool-calling style agent workflow example.

Current Access and Limits

The values below are current public reference values as of 2026-06-28. Base Token Plan quotas were published on 2026-06-22; video RPM limits were updated on 2026-06-28. These are operational limits, not permanent guarantees.

User Plans

User plan Text model RPM Image model RPM Video model RPM and quota
Free / default 20 actual RPM Resolution-specific RPM limits apply 1 actual RPM
Enterprise 40 actual RPM Higher resolution-specific RPM limits apply 2 actual RPM
Token Plan 1,000 actual RPM for text models Higher 1K and 2K image RPM limits apply 5 actual RPM; 500 seconds per day

Subscription Quotas

Plan agnes-2.0-flash agnes-image-2.0/2.1-flash agnes-video-v2.0
Starter 1,500 requests per 5 hours; 15,000 requests per week 4,000 images per day 500 seconds per day
Plus 7,500 requests per 5 hours; 75,000 requests per week 4,000 images per day 500 seconds per day
Pro 30,000 requests per 5 hours; 300,000 requests per week 4,000 images per day 500 seconds per day

For detailed per-model RPM tables, quota rules, and API key pool behavior, see MODEL_CATALOG.md and docs/TOKEN_PLAN_FAQ.md.

Chat Example

curl https://apihub.agnes-ai.com/v1/chat/completions \
  -H "Authorization: Bearer $AGNES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "agnes-2.0-flash",
    "messages": [
      {
        "role": "user",
        "content": "Explain how to integrate an OpenAI-compatible API gateway."
      }
    ],
    "stream": true
  }'

Image Example

curl https://apihub.agnes-ai.com/v1/images/generations \
  -H "Authorization: Bearer $AGNES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "agnes-image-2.1-flash",
    "prompt": "A luminous floating city above a misty canyon at sunrise, cinematic realism",
    "size": "1024x768"
  }'

Video Example

curl -X POST https://apihub.agnes-ai.com/v1/videos \
  -H "Authorization: Bearer $AGNES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "agnes-video-v2.0",
    "prompt": "A cinematic shot of a cat walking on the beach at sunset, soft ocean waves, warm golden lighting, realistic motion",
    "height": 768,
    "width": 1152,
    "num_frames": 121,
    "frame_rate": 24
  }'

Video generation is asynchronous. Create a task first, then query the result with the returned video_id.

GET https://apihub.agnes-ai.com/agnesapi?video_id=<VIDEO_ID>

Use video_id for video result polling. Do not use task_id for current video result queries unless a specific legacy workflow explicitly requires it.

Common Integration Notes

Security

Never commit API keys, tokens, .env files, screenshots containing secrets, or private data.

Use environment variables for local development:

export AGNES_API_KEY="your_api_key_here"

Documentation

See the official docs for model-specific parameters, response formats, pricing, limits, and troubleshooting:

AgnesAI-Models (AgnesAI-Labs/AgnesAI-Models)

Searching Database…

这是什么?Agnes AI 是 Agnes AI 官方的网关和模型目录,为开发者提供与 OpenAI 兼容的接口,通过统一的 API 即可调用支持文本、图像、视频和智能体工作流的多模态模型。
这是需要安装的库,还是托管的 API 服务?这是托管的 API 服务:你可以调用网关的 REST 端点来进行对话、图像和视频生成。本仓库主要提供文档、模型目录和示例客户端代码,而不是可安装的软件包。
我该如何开始向模型发送请求?安装示例所需的依赖,然后用你的 API 密钥发送请求。仓库中已提供现成的 curl、Python 和 Node.js 示例,例如 examples/ 目录下的 chat.py、imagegeneration.py 和 videogeneration.py。
调用任何模型之前都需要 API 密钥吗?需要。每个请求都必须以 Bearer 令牌的形式携带 Agnes API 密钥,并且应将密钥保存在服务端,而不要暴露在客户端代码中。
如果触发了频率限制会怎样?免费版账户的文本模型仅有 20 RPM,视频模型仅有 1 RPM,因此经常会出现 429 错误。文档建议添加带退避机制的重试,并检查你所用套餐的 RPM 限制。
目录中有哪些模型可用?目录包括用于文本和视觉语言对话的 agnes-2.5-flash 和 agnes-2.0-flash,用于图像生成和编辑的 agnes-image-2.0-flash 和 agnes-image-2.1-flash,以及用于文生视频、图生视频和关键帧动画的 agnes-video-v2.0。
视频生成是如何工作的?视频生成是异步的:你需要先创建一个任务,然后使用返回的 videoid(而不是旧的 taskid)轮询结果。
我现有的 OpenAI 客户端代码能在这里复用吗?可以。agnes-2.5-flash 和 agnes-2.0-flash 与 OpenAI 兼容,其 base URL、端点、请求格式、流式输出和工具调用行为都与 OpenAI 的 API 保持一致。
为什么有国际站和中国站两个不同的站点?Agnes AI 设有两个官方站点,方便开发者根据所在地区和服务需求选择合适的站点,因为各站点的服务可用性可能有所不同。
Size
0.1 MB
Stars
5.2K
Updated
CommitAug 18
Age
5mo
Commits · 90 Days