Interface: BaseArgs

Properties

accessToken

Optional accessToken: string

The access token to use. Without it, you’ll get rate-limited quickly.

Can be created for free in hf.co/settings/token

Defined in

inference/src/types.ts:48


model

Optional model: string

The model to use. Can be a full URL for a dedicated inference endpoint.

If not specified, will call huggingface.co/api/tasks to get the default model for the task.

Defined in

inference/src/types.ts:54