Portkey’s Universal API provides a consistent interface to integrate a wide range of modalities (text, vision, audio) and LLMs (hosted OR local) into your apps.
custom_host
parameter along with the provider
name, and Portkey will handle the communication with your local model.
custom_host
, include the version identifier (e.g., /v1
) in the URL. Portkey will append the actual endpoint path (/chat/completions
, /completions
, or /embeddings
) automatically. (For Ollama models, this works differently. Check here)