شعار Agnes Ai Models

Agnes Ai Models

مؤسسة
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.

نظرة عامة

الناشرAgnesAI-Labs
المستودعskills
اسم المهارةagnes-ai-models
النجوم
69
التفريعات
12
الملفات المرفقة
5
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 5

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها AgnesAI-Labs على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Agnes Ai Models في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/AgnesAI-Labs/skills/tree/main/agnes-ai-models
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Agnes Ai Models في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Agnes Ai Models تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Agnes Ai Models بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Agnes Ai Models على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Agnes Ai Models عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Agnes Ai Models في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/AgnesAI-Labs/skills/tree/main/agnes-ai-models. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Agnes Ai Models؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Agnes Ai Models؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Agnes Ai Models معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Agnes Ai Models مجانية؟

نشرها AgnesAI-Labs على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇