/install aiml-llm-reasoning
AIMLAPI LLM + Reasoning
Overview
Use run_chat.py to call AIMLAPI chat completions with retries, optional API key file fallback, and a User-Agent header on every request.
Quick start
export AIMLAPI_API_KEY="sk-aimlapi-..."
python3 {baseDir}/scripts/run_chat.py --model aimlapi/openai/gpt-5-nano-2025-08-07 --user "Summarize this in 3 bullets."
Tasks
Run a basic chat completion
python3 {baseDir}/scripts/run_chat.py \
--model aimlapi/openai/gpt-5-nano-2025-08-07 \
--system "You are a concise assistant." \
--user "Draft a project kickoff checklist." \
--user-agent "openclaw-custom/1.0"
Add reasoning parameters
python3 {baseDir}/scripts/run_chat.py \
--model aimlapi/openai/gpt-5-nano-2025-08-07 \
--user "Plan a 5-step rollout for a new chatbot feature." \
--extra-json '{"reasoning": {"effort": "medium"}, "temperature": 0.3}'
Structured JSON output
python3 {baseDir}/scripts/run_chat.py \
--model aimlapi/openai/gpt-5-nano-2025-08-07 \
--user "Return a JSON array of 3 project risks with mitigation." \
--extra-json '{"response_format": {"type": "json_object"}}' \
--output ./out/risks.json
References
references/aimlapi-llm.md: payload and troubleshooting notes.README.md: changelog-style summary of new instructions.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install aiml-llm-reasoning - After installation, invoke the skill by name or use
/aiml-llm-reasoning - Provide required inputs per the skill's parameter spec and get structured output
What is AI/ML API LLM + Reasoning for OpenClaw?
Run AIMLAPI LLM and reasoning workflows through chat completions with retries, structured outputs, and explicit User-Agent headers. Use when Codex needs scripted prompting/reasoning calls against AIMLAPI models. It is an AI Agent Skill for Claude Code / OpenClaw, with 1314 downloads so far.
How do I install AI/ML API LLM + Reasoning for OpenClaw?
Run "/install aiml-llm-reasoning" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AI/ML API LLM + Reasoning for OpenClaw free?
Yes, AI/ML API LLM + Reasoning for OpenClaw is completely free (open-source). You can download, install and use it at no cost.
Which platforms does AI/ML API LLM + Reasoning for OpenClaw support?
AI/ML API LLM + Reasoning for OpenClaw is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AI/ML API LLM + Reasoning for OpenClaw?
It is built and maintained by AI/ML API (@aimlapihello); the current version is v1.0.1.