Skip to main content
POST
/
v1
/
models
/
resolve
Resolve Model Aliases
const options = {
  method: 'POST',
  headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({model: '<string>', models: ['<string>']})
};

fetch('https://api.decart.ai/v1/models/resolve', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "model_id": "<string>",
  "model_ids": {}
}

Authorizations

x-api-key
string
header
required

Body

application/json
model
string | null
models
string[] | null

Response

Successful Response

model_id
string | null
model_ids
Model Ids · object