Agnes Ai Models logo

Agnes Ai Models

Organization
AgnesAI-Labs
agnes-ai-models

Agnes AI model integration skill for OpenAI-compatible text, image, video, and agent workflows. Use when Codex needs to configure Agnes AI API access, select or document Agnes models including agnes-2.5-flash, agnes-image-2.5-flash, agnes-video-2.5, and agnes-video-2.5-flash, write Python/Node/curl examples, debug common API errors, poll video results with video_id, adapt OpenAI-compatible clients to the Agnes API gateway, or prepare guidance for other agent software such as OpenClaw, Hermes, Manus, and custom agents.

Overview

PublisherAgnesAI-Labs
Repositoryskills
Skill nameagnes-ai-models
Stars
69
Forks
12
Bundled files
5
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by AgnesAI-Labs on GitHub. Read the source before you install it.

Installation

Install the Agnes Ai Models AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/AgnesAI-Labs/skills/tree/main/agnes-ai-models
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgnesAI-Labs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/agnes-ai-models .claude/skills/agnes-ai-models
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Agnes Ai Models in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Agnes Ai Models on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Agnes Ai Models is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Agnes AI Models

Use this skill to help developers integrate Agnes AI models through the OpenAI-compatible API gateway.

Users must register at https://platform.agnes-ai.com/ and apply for an API key before making requests. Never invent, expose, or ask the user to paste secrets into public files.

Core Defaults

  • API base URL: https://apihub.agnes-ai.com/v1
  • Optional base URL override: AGNES_BASE_URL
  • API key env var: AGNES_API_KEY
  • Auth header: Authorization: Bearer $AGNES_API_KEY
  • Official docs: https://agnes-ai.com/en/docs/overview
  • Platform: https://platform.agnes-ai.com/

Regional Endpoint Routing

Choose the service route before configuring a client. Do not automatically rotate an API key across services after an authentication or quota error.

Service routeBase URLWhen to use it
International service (primary)https://apihub.agnes-ai.com/v1Default route for the international service
International service (alternate)https://apihub.agnes-ai.cn/v1Only when the primary route has a network, DNS, TLS, or connection-timeout failure
China servicehttps://api.agnes-ai.cn/v1Use for the China service

If the base URL cannot connect, confirm /v1 is present, identify the intended service, and test at most one minimal alternate-route request. Do not switch routes to solve 400, 401, 403, 422, or 429 responses.

Model Selection

Use these defaults unless the user specifies a different model:

WorkflowModelEndpoint
Chat, coding, reasoning, tools, streaming, vision inputagnes-2.5-flashPOST /v1/chat/completions
Image generation, editing, and multi-image compositionagnes-image-2.5-flashPOST /v1/images/generations
Text-to-video, keyframes, and multimodal referencesagnes-video-2.5POST /v1/videos
Fast 720P text-to-video and reference generationagnes-video-2.5-flashPOST /v1/videos

For detailed model notes, read references/model_catalog.md.

For OpenClaw, Hermes, Manus, or other non-Codex agent setup, read references/agent_compatibility.md.

Integration Workflow

  1. Confirm the user has an Agnes Platform account and API key for the selected service.
  2. Store the key in AGNES_API_KEY; do not hardcode it.
  3. Set AGNES_BASE_URL when using an alternate or China route.
  4. Use the OpenAI SDK when the workflow is chat or image generation.
  5. Use direct HTTP requests for video creation and polling if the SDK does not expose the video endpoint.
  6. For image-to-image or multi-image requests, pass input images in extra_body.image (public URLs or Data URI Base64). Put response_format in extra_body, not at the top level.
  7. For video results, always poll with the returned video_id and the model name:
text
GET https://apihub.agnes-ai.com/agnesapi?video_id=<VIDEO_ID>&model_name=<MODEL_ID>
  1. Treat the video response's top-level status and url as the source of truth. Stop on completed or failed; use backoff for 429 responses.
  2. Add retries with exponential backoff for 408, 429, 500, 502, 503, 504, 520, 522, and 524.
  3. When writing public docs or examples, state that limits and model availability may change and users should confirm production-critical values in official docs or the platform console.

Image Generation Pattern

python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AGNES_API_KEY"],
    base_url=os.getenv("AGNES_BASE_URL", "https://apihub.agnes-ai.com/v1"),
)

result = client.images.generate(
    model="agnes-image-2.5-flash",
    prompt="A cinematic product hero image for a desktop monitor wallpaper",
    size="2K",
    extra_body={"ratio": "16:9", "response_format": "url"},
)
print(result.data[0].url)

Use size tiers 1K, 2K, 3K, or 4K with a supported ratio. For image-to-image and multi-image composition, add extra_body={"image": ["<PUBLIC_URL_OR_DATA_URI>"]}. Do not add a legacy tags field.

Video Generation Pattern

Create a video with agnes-video-2.5 or agnes-video-2.5-flash at POST /v1/videos, then poll /agnesapi with both video_id and model_name. The base model supports 720P, 1080P, 1K, and 2K; Flash is limited to 720P and does not accept reference videos.

Minimal Python Pattern

python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AGNES_API_KEY"],
    base_url=os.getenv("AGNES_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="")

Debugging

For common errors, read references/troubleshooting.md.

Required issue/debug fields:

  • model
  • endpoint
  • SDK or client
  • sanitized request body
  • timestamp and request ID if available
  • status code and response body
  • expected behavior
  • actual behavior

Never include API keys, bearer tokens, private logs, or customer data.

Optional Smoke Test

Use scripts/smoke_chat.py to test whether AGNES_API_KEY and the chat endpoint are configured correctly:

bash
python scripts/smoke_chat.py

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Agnes Ai Models AI skill do?

Agnes AI model integration skill for OpenAI-compatible text, image, video, and agent workflows. Use when Codex needs to configure Agnes AI API access, select or document Agnes models including agnes-2.5-flash, agnes-image-2.5-flash, agnes-video-2.5, and agnes-video-2.5-flash, write Python/Node/curl examples, debug common API errors, poll video results with video_id, adapt OpenAI-compatible clients to the Agnes API gateway, or prepare guidance for other agent software such as OpenClaw, Hermes, Manus, and custom agents.

Why use Agnes Ai Models on TypingMind?

Because you install it once and use it with any model. Agnes Ai Models is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Agnes Ai Models in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/AgnesAI-Labs/skills/tree/main/agnes-ai-models. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Agnes Ai Models?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Agnes Ai Models?

As many as you like. As long as a model supports skills, you can use Agnes Ai Models with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Agnes Ai Models AI skill free?

It is published on GitHub by AgnesAI-Labs. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇