Scaleway v1.37.0 published on Friday, Nov 7, 2025 by pulumiverse
scaleway.inference.getModel
Start a Neo task
Explain and create a scaleway.inference.getModel resource
The scaleway.inference.Model data source allows you to retrieve information about an inference model available in the Scaleway Inference API, either by providing the model’s name or its model_id.
Example Usage
Basic
import * as pulumi from "@pulumi/pulumi";
import * as scaleway from "@pulumiverse/scaleway";
const myModel = scaleway.inference.getModel({
name: "meta/llama-3.1-8b-instruct:fp8",
});
import pulumi
import pulumi_scaleway as scaleway
my_model = scaleway.inference.get_model(name="meta/llama-3.1-8b-instruct:fp8")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/inference"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := inference.LookupModel(ctx, &inference.LookupModelArgs{
Name: pulumi.StringRef("meta/llama-3.1-8b-instruct:fp8"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumi.Scaleway;
return await Deployment.RunAsync(() =>
{
var myModel = Scaleway.Inference.GetModel.Invoke(new()
{
Name = "meta/llama-3.1-8b-instruct:fp8",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.inference.InferenceFunctions;
import com.pulumi.scaleway.inference.inputs.GetModelArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var myModel = InferenceFunctions.getModel(GetModelArgs.builder()
.name("meta/llama-3.1-8b-instruct:fp8")
.build());
}
}
variables:
myModel:
fn::invoke:
function: scaleway:inference:getModel
arguments:
name: meta/llama-3.1-8b-instruct:fp8
Using getModel
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getModel(args: GetModelArgs, opts?: InvokeOptions): Promise<GetModelResult>
function getModelOutput(args: GetModelOutputArgs, opts?: InvokeOptions): Output<GetModelResult>def get_model(model_id: Optional[str] = None,
name: Optional[str] = None,
url: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetModelResult
def get_model_output(model_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
url: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetModelResult]func LookupModel(ctx *Context, args *LookupModelArgs, opts ...InvokeOption) (*LookupModelResult, error)
func LookupModelOutput(ctx *Context, args *LookupModelOutputArgs, opts ...InvokeOption) LookupModelResultOutput> Note: This function is named LookupModel in the Go SDK.
public static class GetModel
{
public static Task<GetModelResult> InvokeAsync(GetModelArgs args, InvokeOptions? opts = null)
public static Output<GetModelResult> Invoke(GetModelInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
public static Output<GetModelResult> getModel(GetModelArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:inference/getModel:getModel
arguments:
# arguments dictionaryThe following arguments are supported:
- Model
Id string - The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
- Name string
- The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
- Url string
- Model
Id string - The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
- Name string
- The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
- Url string
- model
Id String - The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
- name String
- The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
- url String
- model
Id string - The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
- name string
- The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
- url string
- model_
id str - The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
- name str
- The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
- url str
- model
Id String - The ID of the model to retrieve. Must be a valid UUID with locality (i.e., Scaleway's zoned UUID format).
- name String
- The fully qualified name of the model to look up (e.g., "meta/llama-3.1-8b-instruct:fp8"). The provider will search for a model with an exact name match in the selected region and project.
- url String
getModel Result
The following output properties are available:
- Created
At string - Description string
- A textual description of the model (if available).
- Has
Eula bool - Whether the model requires end-user license agreement acceptance before use.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
Supports List<Pulumiverse.Scaleway. Inference. Outputs. Get Model Nodes Support> - List of supported node types and their quantization options. Each entry contains:
- Parameter
Size intBits - Size, in bits, of the model parameters.
- Project
Id string - Region string
- Secret string
- Size
Bytes int - Total size, in bytes, of the model archive.
- Status string
- The current status of the model (e.g., ready, error, etc.).
- List<string>
- Tags associated with the model.
- Updated
At string - Model
Id string - Name string
- Url string
- Created
At string - Description string
- A textual description of the model (if available).
- Has
Eula bool - Whether the model requires end-user license agreement acceptance before use.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
Supports []GetModel Nodes Support - List of supported node types and their quantization options. Each entry contains:
- Parameter
Size intBits - Size, in bits, of the model parameters.
- Project
Id string - Region string
- Secret string
- Size
Bytes int - Total size, in bytes, of the model archive.
- Status string
- The current status of the model (e.g., ready, error, etc.).
- []string
- Tags associated with the model.
- Updated
At string - Model
Id string - Name string
- Url string
- created
At String - description String
- A textual description of the model (if available).
- has
Eula Boolean - Whether the model requires end-user license agreement acceptance before use.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes
Supports List<GetModel Nodes Support> - List of supported node types and their quantization options. Each entry contains:
- parameter
Size IntegerBits - Size, in bits, of the model parameters.
- project
Id String - region String
- secret String
- size
Bytes Integer - Total size, in bytes, of the model archive.
- status String
- The current status of the model (e.g., ready, error, etc.).
- List<String>
- Tags associated with the model.
- updated
At String - model
Id String - name String
- url String
- created
At string - description string
- A textual description of the model (if available).
- has
Eula boolean - Whether the model requires end-user license agreement acceptance before use.
- id string
- The provider-assigned unique ID for this managed resource.
- nodes
Supports GetModel Nodes Support[] - List of supported node types and their quantization options. Each entry contains:
- parameter
Size numberBits - Size, in bits, of the model parameters.
- project
Id string - region string
- secret string
- size
Bytes number - Total size, in bytes, of the model archive.
- status string
- The current status of the model (e.g., ready, error, etc.).
- string[]
- Tags associated with the model.
- updated
At string - model
Id string - name string
- url string
- created_
at str - description str
- A textual description of the model (if available).
- has_
eula bool - Whether the model requires end-user license agreement acceptance before use.
- id str
- The provider-assigned unique ID for this managed resource.
- nodes_
supports Sequence[GetModel Nodes Support] - List of supported node types and their quantization options. Each entry contains:
- parameter_
size_ intbits - Size, in bits, of the model parameters.
- project_
id str - region str
- secret str
- size_
bytes int - Total size, in bytes, of the model archive.
- status str
- The current status of the model (e.g., ready, error, etc.).
- Sequence[str]
- Tags associated with the model.
- updated_
at str - model_
id str - name str
- url str
- created
At String - description String
- A textual description of the model (if available).
- has
Eula Boolean - Whether the model requires end-user license agreement acceptance before use.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes
Supports List<Property Map> - List of supported node types and their quantization options. Each entry contains:
- parameter
Size NumberBits - Size, in bits, of the model parameters.
- project
Id String - region String
- secret String
- size
Bytes Number - Total size, in bytes, of the model archive.
- status String
- The current status of the model (e.g., ready, error, etc.).
- List<String>
- Tags associated with the model.
- updated
At String - model
Id String - name String
- url String
Supporting Types
GetModelNodesSupport
- Node
Type stringName - The type of node supported.
- Quantizations
List<Pulumiverse.
Scaleway. Inference. Inputs. Get Model Nodes Support Quantization> - A list of supported quantization options, including:
- Node
Type stringName - The type of node supported.
- Quantizations
[]Get
Model Nodes Support Quantization - A list of supported quantization options, including:
- node
Type StringName - The type of node supported.
- quantizations
List<Get
Model Nodes Support Quantization> - A list of supported quantization options, including:
- node
Type stringName - The type of node supported.
- quantizations
Get
Model Nodes Support Quantization[] - A list of supported quantization options, including:
- node_
type_ strname - The type of node supported.
- quantizations
Sequence[Get
Model Nodes Support Quantization] - A list of supported quantization options, including:
- node
Type StringName - The type of node supported.
- quantizations List<Property Map>
- A list of supported quantization options, including:
GetModelNodesSupportQuantization
- Allowed bool
- Whether this quantization is allowed.
- Max
Context intSize - Maximum context length supported by this quantization.
- Quantization
Bits int - Number of bits used for quantization (e.g., 8, 16).
- Allowed bool
- Whether this quantization is allowed.
- Max
Context intSize - Maximum context length supported by this quantization.
- Quantization
Bits int - Number of bits used for quantization (e.g., 8, 16).
- allowed Boolean
- Whether this quantization is allowed.
- max
Context IntegerSize - Maximum context length supported by this quantization.
- quantization
Bits Integer - Number of bits used for quantization (e.g., 8, 16).
- allowed boolean
- Whether this quantization is allowed.
- max
Context numberSize - Maximum context length supported by this quantization.
- quantization
Bits number - Number of bits used for quantization (e.g., 8, 16).
- allowed bool
- Whether this quantization is allowed.
- max_
context_ intsize - Maximum context length supported by this quantization.
- quantization_
bits int - Number of bits used for quantization (e.g., 8, 16).
- allowed Boolean
- Whether this quantization is allowed.
- max
Context NumberSize - Maximum context length supported by this quantization.
- quantization
Bits Number - Number of bits used for quantization (e.g., 8, 16).
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
