POST
/
model
curl --request POST \
  --url https://aiapi.scope3.com/model \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "gpt-4-turbo",
  "name": "GPT-4 Turbo",
  "family": "gpt",
  "hugging_face_path": "EleutherAI/gpt-neo-2.7B",
  "benchmark_model_id": "gpt-4-turbo",
  "estimated_use_life_days": 365,
  "estimated_requests_per_day": 1000,
  "fine_tuned_from_model_id": "gpt-4-turbo",
  "aliases": [
    "claude-latest"
  ],
  "total_params_billions": 175,
  "number_of_experts": 7,
  "number_of_active_experts": 2,
  "params_per_expert_billions": 8,
  "training_usage_energy_kwh": 1013.1,
  "training_usage_emissions_kgco2e": 1013.1,
  "training_usage_water_l": 1013.1,
  "training_embodied_emissions_kgco2e": 11013.1,
  "training_embodied_water_l": 11013.1
}'
{
  "id": "gpt-4-turbo",
  "aliases": [
    "claude-latest",
    "claude-3-sonnet-current"
  ],
  "name": "GPT-4 Turbo",
  "family": "gpt",
  "hugging_face_path": "EleutherAI/gpt-neo-2.7B",
  "benchmark_model_id": "GPTJ-6B",
  "total_params_billions": 175,
  "number_of_experts": 7,
  "number_of_active_experts": 2,
  "params_per_expert_billions": 8,
  "tensor_parallelism": 1,
  "datatype": "fp8",
  "task": "text-generation",
  "training_usage_energy_kwh": 1013.1,
  "training_usage_emissions_kgco2e": 1013.1,
  "training_usage_water_l": 1013.1,
  "training_embodied_emissions_kgco2e": 11013.1,
  "training_embodied_water_l": 11013.1,
  "estimated_use_life_days": 1013.1,
  "estimated_requests_per_day": 1013.1,
  "fine_tuned_from_model_id": "llama_31_8b",
  "customer_id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "created_by": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Create a new model Note on permissions:

  • Custom models are visible only to their owners
  • Global models are visible to all users
  • Admins can see and manage all models

Response

201
application/json

Model created successfully

The response is of type object.