changedInput schema / $schema
Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
removedInput schema / additionalProperties
Removed value: -false
changedInput schema / properties / aspect_ratio / description
Previous value: -"Aspect ratio of the generated image (default: auto)"New value: +"Generation defaults to auto; editing follows the first input. 21:9 and 5:2 require image 2.0"
changedInput schema / properties / aspect_ratio / enum
Previous value: -[
- "1:1",
- "16:9",
- "9:16",
- "4:3",
- "3:4",
- "3:2",
- "2:3",
- "2:1",
- "1:2",
- "19.5:9",
- "9:19.5",
- "20:9",
- "9:20",
- "auto"
-]New value: +[
+ "1:1",
+ "16:9",
+ "9:16",
+ "4:3",
+ "3:4",
+ "3:2",
+ "2:3",
+ "2:1",
+ "1:2",
+ "19.5:9",
+ "9:19.5",
+ "20:9",
+ "9:20",
+ "21:9",
+ "5:2",
+ "auto"
+]
addedInput schema / properties / model
Added value: +{
+ "description": "Overrides XAI_IMAGE_MODEL (default: grok-imagine-image). Choose grok-imagine-image-2.0 for quality control and up to 5 inputs",
+ "enum": [
+ "grok-imagine-image",
+ "grok-imagine-image-2.0"
+ ],
+ "type": "string"
+}
changedInput schema / properties / n / description
Previous value: -"Number of images to generate (1-10, default 1)"New value: +"Number of output images (default: 1)"
changedInput schema / properties / prompt / description
Previous value: -"Text description of the image to generate"New value: +"Describe the image to generate or the desired edits"
addedInput schema / properties / prompt / minLength
Added value: +1
addedInput schema / properties / quality
Added value: +{
+ "description": "Image 2.0 only. Auto uses low for generation and medium for editing; billing follows the served quality",
+ "enum": [
+ "low",
+ "medium",
+ "auto"
+ ],
+ "type": "string"
+}
changedInput schema / properties / resolution / description
Previous value: -"Resolution of the generated image (default: 1k)"New value: +"Output resolution (default: 1k)"
addedInput schema / properties / response_format
Added value: +{
+ "description": "url returns temporary links (default); b64_json returns MCP image content",
+ "enum": [
+ "url",
+ "b64_json"
+ ],
+ "type": "string"
+}
addedInput schema / properties / storage_options
Added value: +{
+ "description": "Persist outputs in the Files API; private unless public_url is explicitly enabled",
+ "properties": {
+ "expires_after": {
+ "description": "File lifetime in seconds; omitted means permanent storage",
+ "maximum": 2592000,
+ "minimum": 3600,
+ "type": "integer"
+ },
+ "filename": {
+ "description": "Filename for the stored image, e.g. landscape.jpg",
+ "minLength": 1,
+ "type": "string"
+ },
+ "public_url": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "properties": {
+ "expires_after": {
+ "maximum": 2592000,
+ "minimum": 3600,
+ "type": "integer"
+ }
+ },
+ "type": "object"
+ }
+ ],
+ "description": "Explicitly create a public link; omitted means private storage"
+ }
+ },
+ "required": [
+ "filename"
+ ],
+ "type": "object"
+}
changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
+ "additionalProperties": false,
+ "properties": {
+ "images": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "file_output": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "expires_at": {
+ "type": "number"
+ },
+ "file_id": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "filename": {
+ "type": "string"
+ },
+ "public_url": {
+ "type": "string"
+ },
+ "public_url_error": {
+ "type": "string"
+ },
+ "public_url_expires_at": {
+ "type": "number"
+ }
+ },
+ "required": [
+ "file_id"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "inline": {
+ "description": "Image bytes are in the corresponding MCP image content block",
+ "type": "boolean"
+ },
+ "mime_type": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "respect_moderation": {
+ "type": "boolean"
+ },
+ "revised_prompt": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "url": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "type": "object"
+ },
+ "minItems": 1,
+ "type": "array"
+ },
+ "model": {
+ "type": "string"
+ },
+ "quality": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "usage": {
+ "additionalProperties": {},
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "images"
+ ],
+ "type": "object"
+}