curl "https://api.mixroute.ai/v1/images/generations" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-imagine-image", "prompt": "A minimal red circle centered on a white background", "size": "1024x1024", "n": 1}'
import requestsresponse = requests.post( "https://api.mixroute.ai/v1/images/generations", headers={"Authorization": "Bearer YOUR_API_KEY"}, json={'model': 'grok-imagine-image', 'prompt': 'A minimal red circle centered on a white background', 'size': '1024x1024', 'n': 1},)print(response.json())