LlamaIndex's OpenAI integration accepts a custom api_base. Use it to route every embedding, completion, and chat call through AIgateway.
Use the OpenAI LLM class with the AIgateway base.
Same pattern — OpenAIEmbedding with api_base set, then any embedding model from our catalog (e.g. baai/bge-m3).