Download tools/gpu_rent.md from StarpowerTechnology/HiggsfieldMCP: direct link, hf CLI and curl.
- Browser
- Download file 2.32 kB
-
https://huggingface.co/datasets/StarpowerTechnology/HiggsfieldMCP/resolve/main/tools/gpu_rent.md
- Command line
-
hf download hf://datasets/StarpowerTechnology/HiggsfieldMCP/tools/gpu_rent.md
-
curl -L -o gpu_rent.md https://huggingface.co/datasets/StarpowerTechnology/HiggsfieldMCP/resolve/main/tools/gpu_rent.md
Rent a GPU box for the user, like Rent on the Higgsfield GPU page. It bills credits by the second from when the box is ready (no minimum) until gpu_rental_stop is called, credits run out, or it sits idle for auto_pause_minutes (default 10). Call only after the user explicitly approved the box's hourly price (credits_per_gpu_hour from gpu_list_gpus times gpu_count); pass it as max_credits_per_hour. Nothing is rented above it. If the user wants to rent but has not picked a box and price, open gpu_explore instead of asking in text. Then wait for it with gpu_rental, load a model with gpu_rental_prepare and generate with gpu_rental_generate. For a one-off generation gpu_generate rents and loads in one call. If the GPU limit is reached nothing is rented: wait and call again.
mcp__Higgsfield__gpu_rent(args: {
// Minutes of inactivity before the box stops by itself; omit for the default 10. null never auto-pauses: the box bills until stopped, credits run out or 24 hours pass.
auto_pause_minutes?:
| integer // minimum: 5, maximum: 1440
| null
,
// GPUs in the box, up to max_count from gpu_list_gpus.
gpu_count?: integer, // default: 1, minimum: 1, maximum: 8
// gpu_type from gpu_list_gpus.
gpu_type: string, // minLength: 1, maxLength: 64
// A new unique string (e.g. a UUID) per rental. Reuse it unchanged on every repeat call for the same rental.
idempotency_key: string, // minLength: 1, maxLength: 200
// The hourly price the user explicitly approved for renting the box: credits_per_gpu_hour from gpu_list_gpus times the GPU count.
max_credits_per_hour: number, // minimum: 0.0
}): Promise<{
auto_pause_minutes?: number | null,
billing: { credits_per_hour?: number | null, credits_spent?: number | null, [key: string]: any },
end_reason?: string | null,
error?: string | null,
generation: { error?: string | null, ready: boolean, state?: string | null, [key: string]: any },
gpu: { count: number, label?: string | null, type: string, [key: string]: any },
id: string,
model?:
// Additional JSON Schema constraints: propertyNames={"type": "string"}
| { [key: string]: any }
| null
,
next_step: string,
session_id: string,
status: "starting" | "working" | "ended",
timing: { ended_at?: string | null, requested_at: string, started_at?: string | null, [key: string]: any },
[key: string]: any,
}>;