Scaleway logo
Commands

Documentation for `scw inference`

The CLI documentation pages are currently under construction

The content is up to date. We're making improvements to the site over the next few weeks for a better experience.

This API allows you to handle your Generative APIs - Dedicated Deployment services.

Deployment commands

Deployment commands.

Create a deployment

Create a new inference deployment related to a specific model.

Usage:

TerminalCode
scw inference deployment create [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
nameName of the deploymentRequired
Default: <generated>
project-idProject ID to use. If none is passed the default project ID will be used
model-idID of the model to useRequired
accept-eulaAccept the model's End User License Agreement (EULA).
node-type-nameName of the node type to useRequired
tags.{index}List of tags to apply to the deployment
min-sizeDefines the minimum size of the pool
max-sizeDefines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to min_size
endpoints.{index}.public-networkSet the endpoint as public
endpoints.{index}.is-publicWill configure your public endpoint if trueDefault: true
endpoints.{index}.private-network.private-network-id
endpoints.{index}.disable-authDisable the authentication on the endpoint.Default: false
quantization.bitsThe number of bits each model parameter should be quantized to. The quantization method is chosen based on this value.
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Delete a deployment

Delete an existing inference deployment.

Usage:

TerminalCode
scw inference deployment delete <deployment-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idID of the deployment to deleteRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Get a deployment

Get the deployment for the given ID.

Usage:

TerminalCode
scw inference deployment get <deployment-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idID of the deployment to getRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Get the CA certificate

Get the CA certificate used for the deployment of private endpoints. The CA certificate will be returned as a PEM file.

Usage:

TerminalCode
scw inference deployment get-certificate [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

List inference deployments

List all your inference deployments.

Usage:

TerminalCode
scw inference deployment list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byOrder in which to return resultsOne of: created_at_desc, created_at_asc, name_asc, name_desc
project-idFilter by Project ID
nameFilter by deployment name
tags.{index}Filter by tags
organization-idFilter by Organization ID
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all

Update a deployment

Update an existing inference deployment.

Usage:

TerminalCode
scw inference deployment update <deployment-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idID of the deployment to updateRequired
nameName of the deployment
tags.{index}List of tags to apply to the deployment
min-sizeDefines the new minimum size of the pool
max-sizeDefines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to min_size
model-idId of the model to set to the deployment
quantization.bitsThe number of bits each model parameter should be quantized to. The quantization method is chosen based on this value.
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Endpoint management commands

Endpoint management commands.

Create an endpoint

Create a new Endpoint related to a specific deployment.

Usage:

TerminalCode
scw inference endpoint create <deployment-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
deployment-idID of the deployment to create the endpoint forRequired
endpoint.public-networkSet the endpoint as public
endpoint.private-network.private-network-id
endpoint.disable-authDisable the authentication on the endpoint.Default: false
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Delete an endpoint

Delete an existing Endpoint.

Usage:

TerminalCode
scw inference endpoint delete <endpoint-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
endpoint-idID of the endpoint to deleteRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Update an endpoint

Update an existing Endpoint.

Usage:

TerminalCode
scw inference endpoint update <endpoint-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
endpoint-idID of the endpoint to updateRequired
disable-authDisable the authentication on the endpoint.
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Models commands

Models commands.

Delete a model

Delete an existing model from your model library.

Usage:

TerminalCode
scw inference model delete <model-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
model-idID of the model to deleteRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Get a model

Get the model for the given ID.

Usage:

TerminalCode
scw inference model get <model-id ...> [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
model-idID of the model to getRequired
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

Import a model

Import a new model to your model library.

Usage:

TerminalCode
scw inference model import [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
nameName of the modelRequired
Default: <generated>
project-idProject ID to use. If none is passed the default project ID will be used
source.url
source.secret
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par

List models

List all available models.

Usage:

TerminalCode
scw inference model list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
order-byOrder in which to return resultsOne of: display_rank_asc, created_at_asc, created_at_desc, name_asc, name_desc
project-idFilter by Project ID
nameFilter by model name
tags.{index}Filter by tags
organization-idFilter by Organization ID
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all

List available serverless models

List all available serverless models using the OpenAI-compatible API endpoint. Prices per million of tokens.

Usage:

TerminalCode
scw inference model list-serverless

Node types management commands

Node types management commands.

List available node types

List all available node types. By default, the node types returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.

Usage:

TerminalCode
scw inference node-type list [arg=value ...]

Arguments:

NameDescriptionArgument Specifications
include-disabled-typesInclude disabled node types in the response
regionRegion to target. If none is passed will use default region from the configDefault: fr-par
One of: fr-par, all