| Example | Description |
|---|---|
| Aimlapi Basic | Run an AIMLAPI agent four ways: sync, async, and streaming variants of each. |
| Aimlapi Image Agent | Analyze an image from a URL with Llama 3.2 Vision through AIML API. |
| Aimlapi Image Agent Bytes | Pass an image as raw bytes to a Llama vision model served through AIMLAPI. |
| Aimlapi Image Agent With Memory | Analyze an image with a Llama vision model on AIMLAPI, then answer a follow-up using chat history. |
| 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. |
AIML API
Aimlapi
AIML API examples for basic runs, multimodal input, memory, retries, structured output, and tool use.