|
Download tools/models_get.md from StarpowerTechnology/HiggsfieldMCP: direct link, hf CLI and curl.
- Browser
- Download file 4.05 kB
-
https://huggingface.co/datasets/StarpowerTechnology/HiggsfieldMCP/resolve/main/tools/models_get.md
- Command line
-
hf download hf://datasets/StarpowerTechnology/HiggsfieldMCP/tools/models_get.md
-
curl -L -o models_get.md https://huggingface.co/datasets/StarpowerTechnology/HiggsfieldMCP/resolve/main/tools/models_get.md
4.05 kB
| Read-only fetch of one generation model's constraints, parameters, media roles, aspect ratios, and durations. | |
| ```ts | |
| mcp__Higgsfield__models_get(args: { | |
| // Model ID from models_list, models_search, or models_recommend. | |
| model_id: string, | |
| }): Promise<{ | |
| aspect_ratios?: string[], | |
| credit_unit?: "per_image" | "per_second", | |
| credits_per_unit?: number, | |
| description?: string, | |
| duration_range?: { max: number, min: number }, | |
| durations?: number[], | |
| error?: string, | |
| // Free generations the caller can spend right now, one entry per counter with the model ids that share it. Answer "what free generations do I have" from this; pass use_free_gens:true to generate_video for Higgsfield Genjutsu or execute_preset for Viral when the user asks to use one. For ai_influencer_sheet, prepare with ai_influencer_prepare, then use ai_influencer_generate with use_free_gens:true and max_credits:0, never generate_image. | |
| free_gens?: Array< | |
| { | |
| // Job-set types sharing this counter. viral_hub_video covers all Viral chain presets; one preset execution spends one attempt. ai_influencer_sheet is spent through ai_influencer_generate with use_free_gens:true or the AI Influencer Builder’s Use free gens toggle. | |
| job_set_types: string[], | |
| // Upper bound in seconds for a free run, or null. | |
| max_duration: number | null, | |
| // Allowed values per request parameter for a free run; an absent parameter is uncapped. | |
| // Additional JSON Schema constraints: propertyNames={"type": "string"} | |
| parameters: { [key: string]: Array<string | number> }, | |
| // Free generations left on the counter. 0 = granted and spent. | |
| remaining: number, | |
| } | |
| >, | |
| has_more?: boolean, | |
| id?: string, | |
| items?: Array< | |
| { | |
| aspect_ratios: string[], | |
| credit_unit?: "per_image" | "per_second", | |
| credits_per_unit?: number, | |
| description: string, | |
| duration_range?: { max: number, min: number }, | |
| durations?: number[], | |
| id: string, | |
| match_reason?: string, | |
| medias: { description?: string, max?: number, name: string, required?: boolean, roles?: string[], type: "image" }[], | |
| name: string, | |
| output_type: "image" | "video" | "audio" | "3d", | |
| parameters: Array< | |
| { | |
| default?: string | number | boolean, | |
| description?: string, | |
| // Format constraint for scalar string parameters, e.g. hex_color. | |
| format?: string, | |
| // Format constraint for string_array items, e.g. hex_color. | |
| item_format?: string, | |
| // Regex source for string_array items. | |
| item_pattern?: string, | |
| max?: number, | |
| min?: number, | |
| name: string, | |
| nullable?: boolean, | |
| options?: Array<string | number>, | |
| // Regex source for scalar string parameters. | |
| pattern?: string, | |
| required: "required" | "optional", | |
| type: "string" | "number" | "bool" | "string_array" | "object_array", | |
| } | |
| >, | |
| provider_name: string, | |
| score?: number, | |
| supports_free_gens?: boolean, | |
| supports_unlim?: boolean, | |
| tags?: string[], | |
| } | |
| >, | |
| medias?: { description?: string, max?: number, name: string, required?: boolean, roles?: string[], type: "image" }[], | |
| message?: string, | |
| name?: string, | |
| next_page_token?: string, | |
| output_type?: "image" | "video" | "audio" | "3d", | |
| parameters?: Array< | |
| { | |
| default?: string | number | boolean, | |
| description?: string, | |
| // Format constraint for scalar string parameters, e.g. hex_color. | |
| format?: string, | |
| // Format constraint for string_array items, e.g. hex_color. | |
| item_format?: string, | |
| // Regex source for string_array items. | |
| item_pattern?: string, | |
| max?: number, | |
| min?: number, | |
| name: string, | |
| nullable?: boolean, | |
| options?: Array<string | number>, | |
| // Regex source for scalar string parameters. | |
| pattern?: string, | |
| required: "required" | "optional", | |
| type: "string" | "number" | "bool" | "string_array" | "object_array", | |
| } | |
| >, | |
| provider_name?: string, | |
| // Standalone tools (not catalog models) relevant to the recommend query — e.g. motion_control for recast/puppeteer, upscale_image/upscale_video for enhance, outpaint_image for expand/uncrop, reframe for a video aspect-ratio change, remove_background for cutout. Call the named tool directly; it will not appear in items. | |
| related_tools?: { tool: string, use_when: string }[], | |
| status?: string, | |
| supports_free_gens?: boolean, | |
| supports_unlim?: boolean, | |
| tags?: string[], | |
| }>; | |
| ``` |