Palbase ai · API
/ai/v1/modelsList live models (OpenAI-compatible)
Returns the live DB-backed model catalog in OpenAI-compatible list format.
Called by your server, with the project's secret key.
Query
modalitystring · optionalvendorstring · optionalinclude_deprecatedboolean · optionalcurl -X GET "https://<your-ref>.palbase.studio/ai/v1/models" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200Model list
401No valid credential
403A publishable key or a user's session: everything here is the project's server's, called with the secret key
429The project's request rate, or the provider's for its connection, is used up — or the project holds as much as it may at once: 32 open streams at one of the module's servers (too_many_streams), 2 pictures being made (too_many_images), 512 MiB of pictures kept here for their day (image_storage_full), or the service — or the project's share of it — holds as much of its requests at once as it takes: their bodies, an embedding request's vectors, the pictures being made (busy). Retry-After says when to try again
503The model service or the database did not answer; retry shortly
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation GatewayListModels of ai's contract.