All functions on Cerebrium are accessible via authenticated POST requests by default, unless marked private by prefixing the function name with an underscore (e.g.Documentation Index
Fetch the complete documentation index at: https://cerebrium.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
_private_function()). Authenticate using the JWT token from the API Keys section of the dashboard.
Request format
The POST request follows the structure below, where{function} is the name of the function to invoke. In this example, predict() from main.py is called.
Response format
Responses follow this format:Status codes
200→ the function completed successfully401/403→ authentication or authorization failed404→ the app or function path could not be found5xx→ either your app raised an exception or the platform could not complete the request
422 or 404, include a status_code field in the JSON response from main.py.
When debugging a failed request, check the HTTP status code and the app logs
in the Cerebrium dashboard. Inspecting the request payload, logs, and
run_id
together speeds up diagnosis.