-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplugin.json
More file actions
51 lines (51 loc) · 2.71 KB
/
Copy pathplugin.json
File metadata and controls
51 lines (51 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"uuid": "grok-image-gen-plugin-2025",
"id": "generate_image_grok",
"emoji": "🎨",
"title": "Generate Image Grok",
"iconURL": "https://custom.typingmind.com/assets/plugins/grok.webp",
"overviewMarkdown": "## Grok Image Generator\n\nGenerate stunning images using xAI's Grok image generation model. This plugin allows you to create images from text descriptions using the powerful grok-2-image model.\n\n### Features:\n- Generate high-quality images from text prompts\n- Support for multiple images per request\n- Fast generation using xAI's latest model\n- Images display directly in the chat interface\n\n### How to use:\n1. Enable the plugin in your conversation\n2. Set your xAI API key in User Settings\n3. Use commands like: \"Generate an image of a sunset over mountains\"\n4. The AI will automatically call the plugin when image generation is needed\n\n### Examples:\n- \"Create an image of a futuristic city\"\n- \"Generate a portrait of a cat wearing a hat\"\n- \"Make 3 images of a beach at sunset\"\n\n### Pricing:\n- $0.30 per image generation request (charged by xAI)\n- Get your API key from [https://console.x.ai](https://console.x.ai)",
"openaiSpec": {
"name": "generate_image_grok",
"description": "Generate images using xAI's Grok image generation model based on text descriptions",
"parameters": {
"type": "object",
"properties": {
"prompt": {
"type": "string",
"description": "A detailed text description of the image to generate"
},
"n": {
"type": "integer",
"description": "Number of images to generate (1-4)",
"minimum": 1,
"maximum": 4,
"default": 1
}
},
"required": ["prompt"]
}
},
"userSettings": [
{
"name": "xaiApiKey",
"label": "xAI API Key (Required)",
"description": "The images will be generated using this xAI API. Get your API key from https://console.x.ai",
"type": "password",
"required": true,
"placeholder": "xai-******"
},
{
"name": "defaultImageCount",
"label": "Default Image Count",
"description": "Number of images to generate by default (1-4). Enter a number between 1 and 4.",
"type": "number",
"required": false
}
],
"outputType": "cards",
"implementationType": "javascript",
"authenticationType": "AUTH_TYPE_NONE",
"code": "return await generate_image_grok(params, userSettings, authorizedResources);",
"syncedAt": null
}