---
title: "Create Model"
method: POST
path: "/ai/model"
tags: ["model"]
---

# Create Model

`POST /ai/model`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/ai/model`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/ai/model/post.ts> (a function with typed inputs; its response is checked against the schema)

Model files will be downloaded from Huggingface.

Name must be the exact name of the model on huggingface (ex: openai/gpt-oss-120b or ggml-org/gpt-oss-120b-GGUF).

If the model is under a license then you must provide a Huggingface access token for an account that signed the license agreement

## Request body

- CreateModelRequest: AI model
  - `name` string, required: Model name
  - `huggingface-token` string: Huggingface Token

## Response `200`

OK

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Other responses

- `403`: Forbidden

## Changes

- **2026-11-06** `63da6f74c845`: 1 info
  - added the non-success response with the status `403`
- **2026-03-16** `e05707a7b346`: 1 breaking, 2 info
  - the request property `name` became required
  - api tag `model` added
  - api tag `dedicated-inference` removed
- **2025-11-14** `352cae63dff6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/ai/model/post.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
