Skip to main content
Call the production environment of a model.
curl --request POST \
  --url https://model-{model_id}.api.baseten.co/production/predict \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{}

Documentation Index

Fetch the complete documentation index at: https://docs.baseten.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key with the Api-Key prefix, e.g. Authorization: Api-Key abcd1234.abcd1234.

Body

JSON-serializable model input. The shape is defined by the model's predict function.

Response

Successful synchronous prediction.

JSON-serializable output. The shape is defined by the model.