Skip to content

Example request: AIML API as an OpenAI-compatible multi-model provider #283

@D1m7asis

Description

@D1m7asis

Hi,

Would you be open to adding a short AIML API example or appendix to the production/provider section?

AIML API is OpenAI-compatible and provides access to multiple model families through one endpoint. For readers learning production AI engineering, it could be useful as a concise example of configuring an OpenAI-compatible multi-model provider without changing the rest of the application architecture.

Suggested scope:

  • Add a small docs/example section, not a new dependency
  • Base URL: https://api.aimlapi.com/v1
  • API key env var: AIMLAPI_API_KEY
  • Auth: Authorization: Bearer <key>
  • Use the existing OpenAI-compatible client pattern
  • Example models:
    • openai/gpt-4o-mini
    • anthropic/claude-sonnet-4.5
    • google/gemini-3-flash-preview

If this fits the repo scope, I can prepare the PR myself and keep it focused to docs/examples only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions