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.

ExampleDescription
Aimlapi BasicRun an AIMLAPI agent four ways: sync, async, and streaming variants of each.
Aimlapi Image AgentUse the current gateway adaptation to analyze an image URL through AIMLAPI.
Aimlapi Image Agent BytesUse the current gateway adaptation to analyze raw image bytes through AIMLAPI.
Aimlapi Image Agent With MemoryAnalyze an image through AIMLAPI and retain it for a follow-up using a database.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
Aimlapi Structured OutputReturn a typed MovieScript from AIML API using JSON mode and a Pydantic output schema.
Tool UseAnswer current-events questions with web search tools on an AIML API model, sync and async.