Aimlapi
AIML API examples for basic runs, multimodal input, memory, retries, structured output, and tool use.
The current adapter has a local formatting error; each guide supplies a working OpenAILike adaptation.
| Example | Description |
|---|---|
| Aimlapi Basic | Run an AIMLAPI agent four ways: sync, async, and streaming variants of each. |
| Aimlapi Image Agent | Use the current gateway adaptation to analyze an image URL through AIMLAPI. |
| Aimlapi Image Agent Bytes | Use the current gateway adaptation to analyze raw image bytes through AIMLAPI. |
| Aimlapi Image Agent With Memory | Analyze an image through AIMLAPI and retain it for a follow-up using a database. |
| Retry | Review retry settings and why invalid model IDs cannot reliably exercise the retry path. |
| Aimlapi Structured Output | Return a typed MovieScript from AIML API using JSON mode and a Pydantic output schema. |
| Tool Use | Answer current-events questions with web search tools on an AIML API model, sync and async. |