How to use an API Gateway

Hi all

im using alter ( Alter | Documentation ) and they have a cool benefit where you they provide you with:

an OpenAI-compatible endpoint that allows you to use Alter’s models and credits in other AI applications

i am lost though on how one would use this in DEVONthink 4. Does anyone have a clue on how to do so?

best

Z

That’s not yet possible but a future release will support OpenRouter and also OpenAI-compatible endpoints (but the integration is less powerful in this case as it’s basically the lowest common denominator).

1 Like

PS: These kind of services are cropping up all over the place at a dizzying pace. We logically won’t be pursuing integration of all of these (no matter how they all hype themselves as ‘the GAME CHANGER!!’) OpenRouter has been most often requested and was in more of a “first to market” situation than others for the AI community.

This is akin to the sync situation. Dropbox was first to market, had a ton of traction, in and out of tech circles, so logically was the most asked for.

Just something to think about.

1 Like

hi @cgrunenberg and @BLUEFROG

circeling back to this as i see 4.1 should now suport this?

i tried both using something like this

https://alterhq.com/api/v1?model=OpenAI#gpt-4o-mini `

or

https://alterhq.com/api/v1

but both wont work (and the specify mode is grayed out)

any clue what im doing wrong

thx!

Z

The OpenAI compatible option requires the API endpoint /v1/models/ to load the list of models and /v1/chat/completions for chat completions and that’s the URL that can be entered in Settings > AI > Chat. It’s not a URL to directly access an unknown API & model with unknown features.

thx!

got it to work with the help of the alter devs, this works in case anyone is also interested

best

Z