#62·ViMax

Example request: AIML API as OpenAI-compatible provider config

Author: D1m7asisCreated Jun 12, 2026Updated Jun 12, 2026

Hi, thanks for open-sourcing ViMax.

Would you be open to a small AIML API configuration example for the existing provider settings?

From a quick pass over the repo, ViMax already has provider-neutral config surfaces such as:

  • llm.model_provider
  • llm.model
  • llm.base_url
  • llm.api_key
  • image/video base_url and api_key fields in the example configs

AIML API exposes an OpenAI-compatible LLM endpoint at:

https://api.aimlapi.com/v1

Auth is standard bearer token auth:

Authorization: Bearer <AIMLAPI_API_KEY>

A focused PR could avoid changing core runtime logic and only add a documented/config example, for example:

yaml
llm:
  model_provider: openai
  model: openai/gpt-4o-mini
  base_url: https://api.aimlapi.com/v1
  api_key: ${AIMLAPI_API_KEY}

Potential scope:

  • add configs/*_aimlapi.yaml or a README section showing AIML API as an OpenAI-compatible LLM provider
  • document the env var/key setup path (AIMLAPI_API_KEY, https://aimlapi.com/app/keys)
  • keep image/video generation examples separate unless their endpoint contracts match ViMax's current adapters cleanly
  • add no new dependency and avoid changing the default provider behavior

If this would be useful, I can prepare a small docs/config PR.