{"version":"1","model":{"id":"xai/grok-imagine-image/edit","name":"Grok Imagine (Edit)","kind":"image","availability":"available","available":true,"restricted":false,"api_key_only":false,"description":"Grok Imagine Edit — instruction-based image editing powered by xAI's Grok model.","categories":["edit"],"prompt_required":true,"prompt_supported":true,"supports":{"referenceImage":true},"requires":{"referenceImage":true},"aspect_ratios":["1:1","16:9","9:16","4:3","3:4","3:2","2:3"],"resolutions":["1k","2k"],"durations":[],"output_formats":["jpeg","png","webp"],"max_images":4,"max_reference_images":3,"base_credits":4,"api_gross_margin_percent":20,"added_at":"2026-05-04","popularity_rank":249,"example_prompt":"Change the sky to a dramatic stormy sunset with deep crimson and violet clouds, keep all foreground elements exactly the same","preview":{"image":"https://cdn.artemotion.ai/file/artemotion-ai-bckt/model-previews/grok-imagine-edit-sm.webp"},"schema_url":"/api/v1/models?id=xai%2Fgrok-imagine-image%2Fedit","input_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://www.artemotion.ai/api/v1/models?id=xai%2Fgrok-imagine-image%2Fedit","title":"Grok Imagine (Edit) generation request","description":"Request body accepted by POST /api/v1/generate for xai/grok-imagine-image/edit.","type":"object","properties":{"model_id":{"type":"string","const":"xai/grok-imagine-image/edit","description":"ArtEmotion model identifier."},"extra":{"type":"object","additionalProperties":true,"description":"Model-specific settings may also be nested here."},"max_credits":{"type":"number","minimum":1,"description":"Reject before submission if the estimated list price exceeds this cap."},"webhook_url":{"type":"string","format":"uri","maxLength":2048},"webhook_secret":{"type":"string","maxLength":512},"folder_id":{"type":"string"},"prompt":{"type":"string"},"aspect_ratio":{"type":"string","enum":["1:1","16:9","9:16","4:3","3:4","3:2","2:3"]},"resolution":{"type":"string","enum":["1k","2k"]},"output_format":{"type":"string","enum":["jpeg","png","webp"]},"num_images":{"type":"integer","minimum":1,"maximum":4},"reference_image_urls":{"type":"array","items":{"type":"string","format":"uri"},"maxItems":3}},"required":["model_id","prompt","reference_image_urls"],"additionalProperties":false},"parameters":[]}}